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

  • FreePBX 17 How To Add a Trunk
  • Docker Container Onboot Policy - How to make sure a container is always running
  • FreePBX 17 How To Add Phones / Extensions and Register
  • Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. solution
  • Cisco How To Use a Third Party SIP Phone (eg. Avaya, 3CX)
  • Cisco Unified Communication Manager (CUCM) - How To Add Phones
  • pptp / pptpd not working in DD-WRT iptables / router
  • systemd-journald high memory usage solution
  • How to Install FreePBX 17 in Linux Debian Ubuntu Mint Guide
  • How To Install Cisco's CUCM (Cisco Unified Communication Manager) 12 Guide
  • Linux Ubuntu Redhat How To Extract Images from PDF
  • Linux and Windows Dual Boot Issue NIC Won't work After Booting Windows
  • Cisco CME How To Enable ACD hunt groups
  • How to install gns3 on Linux Ubuntu Mint
  • How to convert audio for Asterisk .wav format
  • Using Cisco CME Router with Asterisk as a dial-peer
  • Cisco CME How To Configure SIP Trunk VOIP
  • Virtualbox host Only Network Error Failed to save host network interface parameter - Cannot change gateway IP of host only network
  • Cisco CME and C7200 Router Testing and Learning Environment on Ubuntu 20+ Setup Tutorial Guide
  • Abusive IP ranges blacklist