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

fix Python install issues #3041

Merged
merged 2 commits into from
Feb 14, 2020
Merged

fix Python install issues #3041

merged 2 commits into from
Feb 14, 2020

Conversation

vladak
Copy link
Member

@vladak vladak commented Feb 14, 2020

currently all Linux builds fail due to (from pep8 install):

Collecting distlib<1,>=0.3.0
  Downloading distlib-0.3.0.zip (571 kB)
     |████████████████████████████████| 571 kB 43.4 MB/s 
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n_2nuwn0/distlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n_2nuwn0/distlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-n_2nuwn0/distlib/pip-egg-info
         cwd: /tmp/pip-install-n_2nuwn0/distlib/
    Complete output (3 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named 'setuptools'

so evidently we need to install setuptools beforehand.

Further, pip install complains:

WARNING: The directory '/home/travis/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

so we need to let sudo to set HOME env var.

@vladak vladak merged commit 5050c4d into oracle:master Feb 14, 2020
@vladak vladak deleted the sudo_H branch February 14, 2020 15:05
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

Successfully merging this pull request may close these issues.

None yet

1 participant