Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"pip install coro" fails on Ubuntu 12.04 #49

Open
mikegogulski opened this issue Sep 10, 2013 · 2 comments
Open

"pip install coro" fails on Ubuntu 12.04 #49

mikegogulski opened this issue Sep 10, 2013 · 2 comments

Comments

@mikegogulski
Copy link

log:

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:

@samrushing
Copy link
Member

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]

@jmuhlich
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants