python import docx error

sudo pip3 install python-docx
[sudo] password for :
Downloading/unpacking python-docx
  Downloading python-docx-0.8.10.tar.gz (5.5MB): 5.5MB downloaded
  Running setup.py (path:/tmp/pip_build_root/python-docx/setup.py) egg_info for package python-docx
   
    no previously-included directories found matching 'docs/.build'
    warning: no previously-included files matching '.DS_Store' found anywhere in distribution
    warning: no previously-included files matching '__pycache__' found anywhere in distribution
    warning: no previously-included files matching '*.py[co]' found anywhere in distribution
Requirement already satisfied (use --upgrade to upgrade): lxml>=2.3.2 in /usr/lib/python3/dist-packages (from python-docx)
Installing collected packages: python-docx
  Running setup.py install for python-docx
    error: can't copy 'docx/templates/default-docx-template': doesn't exist or not a regular file
    Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/python-docx/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-wih17ymp-record/install-record.txt --single-version-externally-managed --compile:
    running install

running build

running build_py

creating build

creating build/lib

creating build/lib/docx

copying docx/blkcntnr.py -> build/lib/docx

copying docx/settings.py -> build/lib/docx

copying docx/table.py -> build/lib/docx

copying docx/package.py -> build/lib/docx

copying docx/shared.py -> build/lib/docx

copying docx/exceptions.py -> build/lib/docx

copying docx/api.py -> build/lib/docx

copying docx/section.py -> build/lib/docx

copying docx/document.py -> build/lib/docx

copying docx/__init__.py -> build/lib/docx

copying docx/compat.py -> build/lib/docx

copying docx/shape.py -> build/lib/docx

creating build/lib/docx/styles

copying docx/styles/style.py -> build/lib/docx/styles

copying docx/styles/styles.py -> build/lib/docx/styles

copying docx/styles/latent.py -> build/lib/docx/styles

copying docx/styles/__init__.py -> build/lib/docx/styles

creating build/lib/docx/parts

copying docx/parts/settings.py -> build/lib/docx/parts

copying docx/parts/hdrftr.py -> build/lib/docx/parts

copying docx/parts/styles.py -> build/lib/docx/parts

copying docx/parts/story.py -> build/lib/docx/parts

copying docx/parts/document.py -> build/lib/docx/parts

copying docx/parts/__init__.py -> build/lib/docx/parts

copying docx/parts/numbering.py -> build/lib/docx/parts

copying docx/parts/image.py -> build/lib/docx/parts

creating build/lib/docx/oxml

copying docx/oxml/coreprops.py -> build/lib/docx/oxml

copying docx/oxml/settings.py -> build/lib/docx/oxml

copying docx/oxml/table.py -> build/lib/docx/oxml

copying docx/oxml/shared.py -> build/lib/docx/oxml

copying docx/oxml/exceptions.py -> build/lib/docx/oxml

copying docx/oxml/xmlchemy.py -> build/lib/docx/oxml

copying docx/oxml/styles.py -> build/lib/docx/oxml

copying docx/oxml/simpletypes.py -> build/lib/docx/oxml

copying docx/oxml/section.py -> build/lib/docx/oxml

copying docx/oxml/document.py -> build/lib/docx/oxml

copying docx/oxml/__init__.py -> build/lib/docx/oxml

copying docx/oxml/ns.py -> build/lib/docx/oxml

copying docx/oxml/shape.py -> build/lib/docx/oxml

copying docx/oxml/numbering.py -> build/lib/docx/oxml

creating build/lib/docx/dml

copying docx/dml/color.py -> build/lib/docx/dml

copying docx/dml/__init__.py -> build/lib/docx/dml

creating build/lib/docx/text

copying docx/text/parfmt.py -> build/lib/docx/text

copying docx/text/font.py -> build/lib/docx/text

copying docx/text/run.py -> build/lib/docx/text

copying docx/text/__init__.py -> build/lib/docx/text

copying docx/text/paragraph.py -> build/lib/docx/text

copying docx/text/tabstops.py -> build/lib/docx/text

creating build/lib/docx/image

copying docx/image/constants.py -> build/lib/docx/image

copying docx/image/gif.py -> build/lib/docx/image

copying docx/image/exceptions.py -> build/lib/docx/image

copying docx/image/bmp.py -> build/lib/docx/image

copying docx/image/png.py -> build/lib/docx/image

copying docx/image/__init__.py -> build/lib/docx/image

copying docx/image/tiff.py -> build/lib/docx/image

copying docx/image/helpers.py -> build/lib/docx/image

copying docx/image/jpeg.py -> build/lib/docx/image

copying docx/image/image.py -> build/lib/docx/image

creating build/lib/docx/opc

copying docx/opc/coreprops.py -> build/lib/docx/opc

copying docx/opc/constants.py -> build/lib/docx/opc

copying docx/opc/part.py -> build/lib/docx/opc

copying docx/opc/spec.py -> build/lib/docx/opc

copying docx/opc/pkgwriter.py -> build/lib/docx/opc

copying docx/opc/oxml.py -> build/lib/docx/opc

copying docx/opc/package.py -> build/lib/docx/opc

copying docx/opc/shared.py -> build/lib/docx/opc

copying docx/opc/exceptions.py -> build/lib/docx/opc

copying docx/opc/phys_pkg.py -> build/lib/docx/opc

copying docx/opc/rel.py -> build/lib/docx/opc

copying docx/opc/__init__.py -> build/lib/docx/opc

copying docx/opc/compat.py -> build/lib/docx/opc

copying docx/opc/pkgreader.py -> build/lib/docx/opc

copying docx/opc/packuri.py -> build/lib/docx/opc

creating build/lib/docx/enum

copying docx/enum/base.py -> build/lib/docx/enum

copying docx/enum/table.py -> build/lib/docx/enum

copying docx/enum/style.py -> build/lib/docx/enum

copying docx/enum/dml.py -> build/lib/docx/enum

copying docx/enum/text.py -> build/lib/docx/enum

copying docx/enum/section.py -> build/lib/docx/enum

copying docx/enum/__init__.py -> build/lib/docx/enum

copying docx/enum/shape.py -> build/lib/docx/enum

creating build/lib/docx/oxml/text

copying docx/oxml/text/parfmt.py -> build/lib/docx/oxml/text

copying docx/oxml/text/font.py -> build/lib/docx/oxml/text

copying docx/oxml/text/run.py -> build/lib/docx/oxml/text

copying docx/oxml/text/__init__.py -> build/lib/docx/oxml/text

copying docx/oxml/text/paragraph.py -> build/lib/docx/oxml/text

creating build/lib/docx/opc/parts

copying docx/opc/parts/coreprops.py -> build/lib/docx/opc/parts

copying docx/opc/parts/__init__.py -> build/lib/docx/opc/parts

creating build/lib/docx/templates

copying docx/templates/default-settings.xml -> build/lib/docx/templates

copying docx/templates/default-header.xml -> build/lib/docx/templates

copying docx/templates/default-footer.xml -> build/lib/docx/templates

copying docx/templates/default.docx -> build/lib/docx/templates

copying docx/templates/default-styles.xml -> build/lib/docx/templates

error: can't copy 'docx/templates/default-docx-template': doesn't exist or not a regular file

----------------------------------------
Cleaning up...
Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/python-docx/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-wih17ymp-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/python-docx
Storing debug log for failure in /home//.pip/pip.log



sudo pip3 install -U setuptools
Downloading/unpacking setuptools from https://files.pythonhosted.org/packages/6a/9a/50fadfd53ec909e4399b67c74cc7f4e883488035cfcdb90b685758fa8b34/setuptools-41.4.0-py2.py3-none-any.whl#sha256=8d01f7ee4191d9fdcd9cc5796f75199deccb25b154eba82d44d6a042cf873670
  Downloading setuptools-41.4.0-py2.py3-none-any.whl (580kB): 580kB downloaded
Installing collected packages: setuptools
  Found existing installation: setuptools 3.3
    Not uninstalling setuptools at /usr/lib/python3/dist-packages, owned by OS
Successfully installed setuptools
Cleaning up...



sudo pip3 install python-docx
Downloading/unpacking python-docx
  Downloading python-docx-0.8.10.tar.gz (5.5MB): 5.5MB downloaded
  Running setup.py (path:/tmp/pip_build_root/python-docx/setup.py) egg_info for package python-docx
    /tmp/pip_build_root/python-docx/setup.py:12: PkgResourcesDeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.
      this file.
    no previously-included directories found matching 'docs/.build'
    warning: no previously-included files matching '.DS_Store' found anywhere in distribution
    warning: no previously-included files matching '__pycache__' found anywhere in distribution
    warning: no previously-included files matching '*.py[co]' found anywhere in distribution
Requirement already satisfied (use --upgrade to upgrade): lxml>=2.3.2 in /usr/lib/python3/dist-packages (from python-docx)
Installing collected packages: python-docx
  Running setup.py install for python-docx
    no previously-included directories found matching 'docs/.build'
    warning: no previously-included files matching '.DS_Store' found anywhere in distribution
    warning: no previously-included files matching '__pycache__' found anywhere in distribution
    warning: no previously-included files matching '*.py[co]' found anywhere in distribution
  Could not find .egg-info directory in install record for python-docx
Successfully installed python-docx
Cleaning up...
 


Tags:

python, import, docx, errorsudo, pip, install, sudo, password, downloading, unpacking, tar, gz, mb, downloaded, py, tmp, pip_build_root, egg_info, previously, included, directories, matching, docs, ds_store, __pycache__, requirement, upgrade, lxml, usr, lib, dist, packages, installing, collected, templates, default, template, doesn, output, bin, quot, setuptools, tokenize, __file__, exec, compile, getattr, wih, ymp, txt, externally, build_py, creating, copying, blkcntnr, settings, exceptions, api, __init__, compat, styles, latent, hdrftr, numbering, oxml, coreprops, xmlchemy, simpletypes, ns, dml, text, parfmt, font, paragraph, tabstops, constants, gif, bmp, png, tiff, helpers, jpeg, opc, spec, pkgwriter, phys_pkg, rel, pkgreader, packuri, enum, xml, header, footer, storing, debug, https, pythonhosted, org, fadfd, ec, cc, cfcdb, fa, whl, sha, ee, fdcd, deccb, eba, cf, kb, existing, installation, uninstalling, os, successfully, installed, pkgresourcesdeprecationwarning, parameters, deprecated, resolve, separately, info, directory,

Latest Articles

  • virt-resize: error: libguestfs error: could not create appliance through libvirt.
  • Asterisk Does Not Retry When Authentication Fails
  • Linux Debian Ubuntu How To Install PEPPER Faster and Latest Adobe Flash Player in Firefox
  • How To Speed Up Linux Ubuntu and Debian Based Computers By Improving CPU Performance and Changing the CPU Governor
  • Convert data or file to base64 on a single line
  • Linux Mint Ubuntu Debian radeon slow 2D performance issues radeon_dp_aux_transfer_native: 158 callbacks suppressed
  • mdadm: super0.90 cannot open /dev/sdb1: Device or resource busy mdadm: /dev/sdb1 is not suitable for this array.
  • How To Install NextCloud on Centos 7 and Centos 8
  • AH01630: client denied by server configuration:
  • ERROR: Could not find a version that satisfies the requirement PIL (from versions: none) ERROR: No matching distribution found for PIL
  • ZTE Camera Cannot Work unable to connect to camera. Camera has been disabled becaue of security policies or is being used by other apps
  • QEMU KVM how to boot off a physical CD/DVD/BDROM Drive
  • How To Install OpenProject on Centos 7 Step-by-Step Guide
  • Ubuntu Debian Linux Cannot Install Wine Solution - wine1.6 : Depends: wine1.6-i386 (= 1:1.6.2-0ubuntu14.2) but it is not installable wine1.4 : Depends: wine1.6 but it is not going to be installed
  • How To Install python 3.4 3.5 and up on Linux with wine - Working Solution
  • using Xvfb on virtual remote ssh server to have X graphical programs work
  • ssh Received disconnect from port 22:2: Too many authentication failures
  • named bind errors - DNSKEY: unable to find a DNSKEY which verifies the DNSKEY RRset and also matches a trusted key for '.'
  • OpenVZ vs LXC DIR mode poor security in LXC
  • httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/php.conf: Cannot load modules/libphp5.so into server: /lib64/libresolv.so.2: symbol __h_errno, version GLIBC_PRIVATE not defined in file libc.s