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

  • Microsoft Teams Linux - Calendar Doesn't Work Missed Meetings!
  • Scanner not working in Linux Ubuntu Fedora Mint Debian over the network? Use sane-airscan!
  • How To Boot, Install and Run Windows 2000 on QEMU-KVM
  • bash cannot execute permission denied
  • Huion and Wacom Tablets How To Install in Linux Mint / Ubuntu and make the stylus work properly
  • ffmpeg how to cut certain parts of video out
  • ffmpeg how to concat and join two video clips
  • mencoder instead of ffmpeg to join or concatenate video files with different audio streams
  • Linux How To Stop Missing Drive from Halting Boot Process in fstab
  • How To Replace Audio Track of Video using ffmpeg
  • qemu-img convert formats vdi vmdk raw qcow2
  • Linux and Windows Dual Boot Crazy Time Issues
  • dynagen / dynamips 100% high CPU usage solution - how to set the idlepc value
  • How To Setup a Cisco CME (Cisco Manager Express) Virtual Router under Linux using dynamips and dynagen
  • Linux Mint Ubuntu Debian CentOS Dual Boot Install Issues
  • Linux Mint Ubuntu Debian Centos RHEL no sound solution
  • Linux Mint/Debian/Ubuntu/Centos Installer black grub screen and blank screen after trying to boot installer or main OS
  • Linux Mint Dual Boot Install Avoid Wiping our your Main C: drive /dev/sda MBR and EFI
  • QEMU-KVM soundhw deprecated how to enable sound in QEMU 4.x series
  • Virtualbox Error Cannot register the hard disk because a hard disk with UUID already exists solution