Pip install psutil fails occassionally

531 views
Skip to first unread message

nandhakum...@gmail.com

unread,
Jan 26, 2017, 11:16:00 PM1/26/17
to psutil
Collecting psutil
  Downloading psutil-5.0.1.tar.gz (326kB)
Building wheels for collected packages: psutil
  Running setup.py bdist_wheel for psutil: started
  Running setup.py bdist_wheel for psutil: finished with status 'done'
  Stored in directory: /home/jenkins/.cache/pip/wheels/f1/41/93/910ab597b78286fb8685f314a8e9daa9dc35085f5d861589c4
Exception:
Traceback (most recent call last):
  File "/data/users/jenkins/workspace/project/tseries-1.0/tseries-1.0-cdci-qemu-t300/VIRT/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/data/users/jenkins/workspace/project/tseries-1.0/tseries-1.0-cdci-qemu-t300/VIRT/lib/python2.7/site-packages/pip/commands/install.py", line 335, in run
    wb.build(autobuilding=True)
  File "/data/users/jenkins/workspace/project/tseries-1.0/tseries-1.0-cdci-qemu-t300/VIRT/lib/python2.7/site-packages/pip/wheel.py", line 837, in build
    session=self.requirement_set.session)
  File "/data/users/jenkins/workspace/project/tseries-1.0/tseries-1.0-cdci-qemu-t300/VIRT/lib/python2.7/site-packages/pip/download.py", line 809, in unpack_url
    unpack_file_url(link, location, download_dir, hashes=hashes)
  File "/data/users/jenkins/workspace/project/tseries-1.0/tseries-1.0-cdci-qemu-t300/VIRT/lib/python2.7/site-packages/pip/download.py", line 715, in unpack_file_url
    unpack_file(from_path, location, content_type, link)
  File "/data/users/jenkins/workspace/project/tseries-1.0/tseries-1.0-cdci-qemu-t300/VIRT/lib/python2.7/site-packages/pip/utils/__init__.py", line 599, in unpack_file
    flatten=not filename.endswith('.whl')
  File "/data/users/jenkins/workspace/project/tseries-1.0/tseries-1.0-cdci-qemu-t300/VIRT/lib/python2.7/site-packages/pip/utils/__init__.py", line 488, in unzip_file
    data = zip.read(name)
  File "/usr/lib64/python2.7/zipfile.py", line 931, in read
    return self.open(name, "r", pwd).read()
  File "/usr/lib64/python2.7/zipfile.py", line 626, in read
    data = self.read1(n)
  File "/usr/lib64/python2.7/zipfile.py", line 680, in read1
    max(n - len_readbuffer, self.MIN_READ_SIZE)
error: Error -3 while decompressing: invalid distance too far back

I don't know why this specifically occurs only with psutil.while other modules get installed correctly while psutil fails sometimes.
Any reply at the earliest is appreciable..

Regards,
Nandha Kumar S

Giampaolo Rodola'

unread,
Jan 26, 2017, 11:21:14 PM1/26/17
to psu...@googlegroups.com
Wow! I've never seen that. 
I'm not sure why it happens or why it uses zipfile module since it says it downloads a tar.gz file.
AFAIC it may as well be a bug with pip. Have you tried using latest pip version (python -m pip install -U pip)?
Really not sure how else to help, sorry. 

--
You received this message because you are subscribed to the "Python process utilities (psutil)" project group:
http://code.google.com/p/psutil
To post to this group, send email to psu...@googlegroups.com
To unsubscribe from this group, send email to psutil-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/psutil
---
You received this message because you are subscribed to the Google Groups "psutil" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psutil+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Nandha Kumar

unread,
Jan 26, 2017, 11:27:38 PM1/26/17
to psutil
We always upgrade the pip module before installing all the modules in our virtualenv and also this error occurs 1 in 10 times and only with psutil not other modules.
What the actual reason would be.
To unsubscribe from this group, send email to psutil-un...@googlegroups.com

For more options, visit this group at http://groups.google.com/group/psutil
---
You received this message because you are subscribed to the Google Groups "psutil" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psutil+un...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Giampaolo Rodola'

unread,
Jan 26, 2017, 11:37:45 PM1/26/17
to psu...@googlegroups.com
Have no idea, sorry. Perhaps you can try to install a different psutil version and see if that solves it?

To unsubscribe from this group, send email to psutil-unsubscribe@googlegroups.com

For more options, visit this group at http://groups.google.com/group/psutil
---
You received this message because you are subscribed to the Google Groups "psutil" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psutil+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages