Skip to content

pip bundle throws OSError when installing from a git repo #438

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

Closed
minism opened this issue Jan 23, 2012 · 5 comments
Closed

pip bundle throws OSError when installing from a git repo #438

minism opened this issue Jan 23, 2012 · 5 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@minism
Copy link

minism commented Jan 23, 2012

I get this error every time on this specific git repo for some reason, no matter what the build directory (still fails if the build directory is clean). My pip version is 1.0.2.

$ pip bundle /tmp/test.bundle git+https://github.com/concentricsky/jingo.git#egg=jingo

Putting temporary build files in ./build-bundle and source/develop files in ./src-bundle
Downloading/unpacking jingo from git+https://github.com/concentricsky/jingo.git
Cloning https://github.com/concentricsky/jingo.git to ./build-bundle/jingo
Running setup.py egg_info for package jingo

no previously-included directories found matching 'examples'
Running setup.py egg_info for package jingo

no previously-included directories found matching 'examples'
Exception:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/commands/bundle.py", line 29, in run
requirement_set = super(BundleCommand, self).run(options, args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req.py", line 994, in prepare_files
self.copy_to_build_dir(req_to_install)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req.py", line 1065, in copy_to_build_dir
copytree(req_to_install.source_dir, dest)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/backwardcompat.py", line 104, in copytree
shutil.copytree(src, dst)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 174, in copytree
os.makedirs(dst)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '/Users/josh/work/proj/paesmem/code/build-bundle/jingo'

@ghost ghost assigned pnasrat Jan 30, 2012
@pnasrat
Copy link
Contributor

pnasrat commented Jan 30, 2012

Replicated on develop

@pnasrat
Copy link
Contributor

pnasrat commented Jan 30, 2012

@minism can you confirm if

pip bundle /tmp/test.bundle -e git+https://github.com/concentricsky/jingo.git#egg=jingo

Works for you (note additional -e arg).

@minism
Copy link
Author

minism commented Jan 30, 2012

@pnasrat yes, the command is successful with -e.

@pnasrat
Copy link
Contributor

pnasrat commented Feb 2, 2012

OK that should give you a work around for now - will investigate root cause.

@sreedom
Copy link

sreedom commented Mar 14, 2013

upgrading pip worked for me
version >1.2

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 5, 2019
@lock lock bot unassigned pnasrat Jun 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

3 participants