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 gets broken(?) by pip install --upgrade pip virtualenv #3

Closed
vdmz opened this issue Aug 28, 2018 · 2 comments
Closed

pip gets broken(?) by pip install --upgrade pip virtualenv #3

vdmz opened this issue Aug 28, 2018 · 2 comments

Comments

@vdmz
Copy link

vdmz commented Aug 28, 2018

Thanks for this helpful little repo, btw.
I was trying to build a kern-3 image because some things I need are not yet in kern-4.
I wanted to add a further pip package, so I appended this line to the Singularity file

pip install astLib

and was rewarded with (at the end of a lengthy image build)

+ pip install astLib
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main
ABORT: Aborting with RETVAL=255
Cleaning up...

Why this is needed in the Singularity file?

pip install --upgrade pip virtualenv

Discussion of this issue here suggests it's not good practice:

I was able to add the extra module with

python -m pip install astLib
@gijzelaerr
Copy link
Member

What is missing in KERN-4 exactly? You can make an issue for that if you want.

Thanks for reporting, i'll remove the installation of pip, then the user can decide what needs to happen.

@gijzelaerr
Copy link
Member

btw it is a path issue, /usr/local/bin should be looked at before /usr/bin, but somehow that doesn't happen inside the container. If you do /usr/local/bin/pip install etc it works.

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

2 participants