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

auto-clean to prevent pip can't proceed with requirement 'xxx' due to a pre-existing build directory. #1935

Closed
ssbarnea opened this Issue Jul 16, 2014 · 5 comments

Comments

Projects
None yet
3 participants
@ssbarnea
Contributor

ssbarnea commented Jul 16, 2014

I seems that I am seeing the famous message more often then ever:

pip can't proceed with requirement 'xxx' due to a pre-existing build directory.

Can we use pip in such way that if the package installation fails I do not have to manually remove the random-generated temp directory?
Just exemplify the extend of the problem try this:

pip install --target=/tmp/xxx  module
pip install --target=/tmp/yyy module

Second command will fail for sure because of the already existing due to "due to a pre-existing build directory."

Does it makes sense? For me not at all.

@ssbarnea

This comment has been minimized.

Show comment
Hide comment
@ssbarnea

ssbarnea Jul 17, 2014

Contributor

Can someone take a look at this? Requirement management with pip became impossible to deal with.
I cannot run any of these more than once:

pip install -r requirements.txt
pip2.6 install -r requirements.txt
pip2.7 install -r requirements.txt
pip3.4 install -r requirements.txt
``
Machine: OS X 10.9
Contributor

ssbarnea commented Jul 17, 2014

Can someone take a look at this? Requirement management with pip became impossible to deal with.
I cannot run any of these more than once:

pip install -r requirements.txt
pip2.6 install -r requirements.txt
pip2.7 install -r requirements.txt
pip3.4 install -r requirements.txt
``
Machine: OS X 10.9
@Ivoz

This comment has been minimized.

Show comment
Hide comment
@Ivoz

Ivoz Jul 17, 2014

Member

What version of pip are you using? This worked ok for me.

[py26] C:\Users\Matthew\Desktop\t\ve>pip install --target t initools
Downloading/unpacking initools
  Downloading INITools-0.3.1.tar.gz
  Running setup.py (path:c:\users\matthew\appdata\local\temp\pip_build_Matthew\initools\setup.py) egg_info for package initools
Installing collected packages: initools
  Running setup.py install for initools
    SyntaxError: ('invalid syntax', ('c:\\users\\matthew\\appdata\\local\\temp\\tmpdpnjab\\lib\\python\\initools\\lazyloader.py', 190, 20, '                elif
 isinstance(item, Item):\n'))

Successfully installed initools
Cleaning up...

[py26] C:\Users\Matthew\Desktop\t\ve>pip install --target t initools
Downloading/unpacking initools
  Downloading INITools-0.3.1.tar.gz
  Running setup.py (path:c:\users\matthew\appdata\local\temp\pip_build_Matthew\initools\setup.py) egg_info for package initools
Installing collected packages: initools
  Running setup.py install for initools
    SyntaxError: ('invalid syntax', ('c:\\users\\matthew\\appdata\\local\\temp\\tmp2eawmd\\lib\\python\\initools\\lazyloader.py', 190, 20, '                elif
 isinstance(item, Item):\n'))

Successfully installed initools
Cleaning up...

[py26] C:\Users\Matthew\Desktop\t\ve>
Member

Ivoz commented Jul 17, 2014

What version of pip are you using? This worked ok for me.

[py26] C:\Users\Matthew\Desktop\t\ve>pip install --target t initools
Downloading/unpacking initools
  Downloading INITools-0.3.1.tar.gz
  Running setup.py (path:c:\users\matthew\appdata\local\temp\pip_build_Matthew\initools\setup.py) egg_info for package initools
Installing collected packages: initools
  Running setup.py install for initools
    SyntaxError: ('invalid syntax', ('c:\\users\\matthew\\appdata\\local\\temp\\tmpdpnjab\\lib\\python\\initools\\lazyloader.py', 190, 20, '                elif
 isinstance(item, Item):\n'))

Successfully installed initools
Cleaning up...

[py26] C:\Users\Matthew\Desktop\t\ve>pip install --target t initools
Downloading/unpacking initools
  Downloading INITools-0.3.1.tar.gz
  Running setup.py (path:c:\users\matthew\appdata\local\temp\pip_build_Matthew\initools\setup.py) egg_info for package initools
Installing collected packages: initools
  Running setup.py install for initools
    SyntaxError: ('invalid syntax', ('c:\\users\\matthew\\appdata\\local\\temp\\tmp2eawmd\\lib\\python\\initools\\lazyloader.py', 190, 20, '                elif
 isinstance(item, Item):\n'))

Successfully installed initools
Cleaning up...

[py26] C:\Users\Matthew\Desktop\t\ve>
@ssbarnea

This comment has been minimized.

Show comment
Hide comment
@ssbarnea

ssbarnea Jul 23, 2014

Contributor

pip 1.5.6 from /Library/Python/2.6/site-packages/pip-1.5.6-py2.6.egg (python 2.6)

and the command failing is
pip install --user --upgrade -r requirements.txt

Contributor

ssbarnea commented Jul 23, 2014

pip 1.5.6 from /Library/Python/2.6/site-packages/pip-1.5.6-py2.6.egg (python 2.6)

and the command failing is
pip install --user --upgrade -r requirements.txt

@ssbarnea

This comment has been minimized.

Show comment
Hide comment
@ssbarnea

ssbarnea Jan 6, 2015

Contributor

This is marked as closed by #2122 but that issue is not fixed itself which means that this should still be open.

Contributor

ssbarnea commented Jan 6, 2015

This is marked as closed by #2122 but that issue is not fixed itself which means that this should still be open.

@dstufft

This comment has been minimized.

Show comment
Hide comment
@dstufft

dstufft Jan 6, 2015

Member

Using what version of pip?

Member

dstufft commented Jan 6, 2015

Using what version of pip?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment