Installation via pip on Python2.7 under Win 7: Problem with tar file?

Issue #344 invalid
Friend FX created an issue

I tried the "pip" way of installing openpyxl, but that failed with an exception as shown in the attached log file.

Not 100% sure if this bug report belongs here or to the pip project but since it seems the problem is openpyxl's tar file, I thought it should be solved here?

I was able to work around the issue downloading the tar file manually, untaring it and running

python setup.py install

from the untared directory.

Comments (5)

  1. CharlieC

    It says quite clearly in the documentation how to install the library: pip install openpyxl or python setup.py develop from a checkout. Do not use a repository download.

  2. CharlieC

    No, you're doing something wrong. Just ran this on Windows.

    C:\Python34>python.exe Tools\Scripts\pyvenv.py c:\sample
    
    C:\Python34>cd \sample
    
    C:\sample>scripts\python.exe
    Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> ^Z
    
    
    C:\sample>Scripts\pip install openpyxl
    Downloading/unpacking openpyxl
      Running setup.py (path:c:\sample\build\openpyxl\setup.py) egg_info for package openpyxl
    
        no previously-included directories found matching 'openpyxl\tests'
        no previously-included directories found matching 'openpyxl\sample'
        no previously-included directories found matching 'openpyxl\benchmarks'
        warning: no files found matching 'LICENCE'
        warning: no files found matching 'AUTHORS'
        warning: no files found matching 'README'
        warning: no files found matching 'CHANGES'
    Downloading/unpacking jdcal (from openpyxl)
      Downloading jdcal-1.0.tar.gz
      Running setup.py (path:c:\sample\build\jdcal\setup.py) egg_info for package jdcal
    
    Installing collected packages: openpyxl, jdcal
      Running setup.py install for openpyxl
    
        no previously-included directories found matching 'openpyxl\tests'
        no previously-included directories found matching 'openpyxl\sample'
        no previously-included directories found matching 'openpyxl\benchmarks'
        warning: no files found matching 'LICENCE'
        warning: no files found matching 'AUTHORS'
        warning: no files found matching 'README'
        warning: no files found matching 'CHANGES'
      Running setup.py install for jdcal
    
    Successfully installed openpyxl jdcal
    Cleaning up...
    
    C:\sample>
    
  3. Friend FX reporter

    Sorry, my bad. I realised I somehow had an old site-packages directory in my PYTHONPATH, which resulted in a outdated tarfile package (v0.6.4) being used, instead of a more recent (v0.9.0) one (I'm using python 2.7.2 at the moment). Using pip install openpyxl with this runs through like a charm.

  4. Log in to comment