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 based install from source fails on RHEL 8 #3462

Closed
beraldoleal opened this issue Jan 8, 2020 · 3 comments
Closed

PIP based install from source fails on RHEL 8 #3462

beraldoleal opened this issue Jan 8, 2020 · 3 comments
Assignees
Labels

Comments

@beraldoleal
Copy link
Member

Based on:

https://github.com/avocado-framework/avocado-vt/pull/2221/files#diff-0f7067c31caedf7df2739c9b07efa122R34

      # When installing from source, pip tries to install at
      # /usr/local/lib/python3.6/site-packages/ and fails with:
      # [Errno 2] No such file or directory: '/usr/local/lib/python3.6/site-packages/test-easy-install-78.write-test'
      # workaround is to add "--prefix /"

Let's double check that this is an easy-install "condition" and file a bug in the appropriate place.

@beraldoleal beraldoleal added the bug label Jan 8, 2020
@beraldoleal
Copy link
Member Author

More information on our (deprecated) trello card:

https://trello.com/c/qj4tHbbp/1516-bug-pip-based-install-from-source-fails-on-rhel-8

@beraldoleal beraldoleal added this to Long Term Backlog in Avocado Kanban via automation Jan 8, 2020
@clebergnu clebergnu self-assigned this Jan 16, 2020
@willianrampazzo
Copy link
Contributor

Is it still valid? I could not reproduce.

clebergnu added a commit to clebergnu/avocado-vt that referenced this issue Aug 4, 2020
Turns out that the "-e" option is not a requirement for installations
from GIT.  The side effect of having that flag, is that a "python
setup.py develop" ended up being called, which did not create the
necessary directories and caused the failures in the comments:

   # When installing from source, pip tries to install at
   # /usr/local/lib/python3.6/site-packages/ and fails with:
   # [Errno 2] No such file or directory: '/usr/local/lib/python3.6/site-packages/test-easy-install-78.write-test'

Without '-e', a common installation occurs, and that failure is no
longer present.

Reference: avocado-framework/avocado#3462
Signed-off-by: Cleber Rosa <crosa@redhat.com>
@clebergnu
Copy link
Contributor

Closing as there's no fix needed here, as explained in avocado-framework/avocado-vt#2691

Avocado Kanban automation moved this from Long Term Backlog to Done #81 (Avengers: Infinity War) Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants