You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@charlie:# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"
root@charlie:# uname -a
Linux charlie 3.5.0-40-generic #62precise1-Ubuntu SMP Fri Aug 23 17:38:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
root@charlie:# python --version
Python 2.7.3
root@charlie:# pip --version
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)
root@charlie:# pip install coro
Downloading/unpacking coro
Downloading master (unknown size): 479Kb downloaded
Cannot determine compression type for file /tmp/pip-aM4spZ-unpack/master
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 955, in prepare_files
self.unpack_url(url, location, self.is_download)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1072, in unpack_url
return unpack_http_url(link, location, self.download_cache, only_download)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 447, in unpack_http_url
unpack_file(temp_location, location, content_type, link)
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 468, in unpack_file
untar_file(filename, location)
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 435, in untar_file
shutil.copyfileobj(fp, destfp)
File "/usr/lib/python2.7/shutil.py", line 49, in copyfileobj
buf = fsrc.read(length)
AttributeError: 'NoneType' object has no attribute 'read'
Storing complete log in /root/.pip/pip.log
root@charlie:~# cat .pip/pip.log
/usr/bin/pip run on Tue Sep 10 20:23:41 2013
Downloading/unpacking coro
Getting page http://pypi.python.org/simple/coro
URLs to search for versions for coro:
No idea what the problem is there, but it looks like a setup.py/pip/git/etc intersection issue. It wasn't easy figuring out how to get that to work a couple of years ago, and it's most likely borken in the meanwhile. My advice would be to check out the head/master and build from the source: "python setup.py build".
It's not an ubuntu/linux problem, I was running shrapnel just today on 12.04.
[I'd like to promise to fix it soon but I'm insanely busy for the next few weeks]
I got this exact error from pip when installing another package, and it turned out to be a bug with my old pip (1.0) in handling tarballs containing symlinks. You can upgrade your pip, or extract the tarball and run setup.py yourself.
log:
root@charlie:
# cat /etc/lsb-release# uname -aDISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"
root@charlie:
Linux charlie 3.5.0-40-generic #62
precise1-Ubuntu SMP Fri Aug 23 17:38:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux# python --versionroot@charlie:
Python 2.7.3
root@charlie:
# pip --version# pip install coropip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)
root@charlie:
Downloading/unpacking coro
Downloading master (unknown size): 479Kb downloaded
Cannot determine compression type for file /tmp/pip-aM4spZ-unpack/master
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 955, in prepare_files
self.unpack_url(url, location, self.is_download)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1072, in unpack_url
return unpack_http_url(link, location, self.download_cache, only_download)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 447, in unpack_http_url
unpack_file(temp_location, location, content_type, link)
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 468, in unpack_file
untar_file(filename, location)
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 435, in untar_file
shutil.copyfileobj(fp, destfp)
File "/usr/lib/python2.7/shutil.py", line 49, in copyfileobj
buf = fsrc.read(length)
AttributeError: 'NoneType' object has no attribute 'read'
Storing complete log in /root/.pip/pip.log
root@charlie:~# cat .pip/pip.log
/usr/bin/pip run on Tue Sep 10 20:23:41 2013
Downloading/unpacking coro
Getting page http://pypi.python.org/simple/coro
URLs to search for versions for coro:
Getting page http://pypi.python.org/simple/coro/
Analyzing links from page https://pypi.python.org/simple/coro/
Skipping link http://github.com/ironport/shrapnel (from https://pypi.python.org/simple/coro/); not a file
Found link http://github.com/ironport/shrapnel/tarball/master#egg=coro-1.0.2 (from https://pypi.python.org/simple/coro/), version: 1.0.2
Found link http://github.com/samrushing/shrapnel/tarball/master#egg=coro-1.0.1 (from https://pypi.python.org/simple/coro/), version: 1.0.1
Found link http://github.com/ironport/shrapnel/tarball/master#egg=coro-1.0.1 (from https://pypi.python.org/simple/coro/), version: 1.0.1
Using version 1.0.2 (newest of versions: 1.0.2, 1.0.1, 1.0.1)
Downloading from URL http://github.com/ironport/shrapnel/tarball/master#egg=coro-1.0.2 (from https://pypi.python.org/simple/coro/)
Cannot determine compression type for file /tmp/pip-aM4spZ-unpack/master
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 955, in prepare_files
self.unpack_url(url, location, self.is_download)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1072, in unpack_url
return unpack_http_url(link, location, self.download_cache, only_download)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 447, in unpack_http_url
unpack_file(temp_location, location, content_type, link)
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 468, in unpack_file
untar_file(filename, location)
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 435, in untar_file
shutil.copyfileobj(fp, destfp)
File "/usr/lib/python2.7/shutil.py", line 49, in copyfileobj
buf = fsrc.read(length)
AttributeError: 'NoneType' object has no attribute 'read'
root@charlie:~#
The text was updated successfully, but these errors were encountered: