-
Notifications
You must be signed in to change notification settings - Fork 283
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
Python packages are being installed to local/lib/python*/dist-packages due to tweaks to sysconfig.py in OS (Ubuntu 22.04) #2976
Comments
@anselmicz Can you share the contents of |
I have also tried lowering the @boegel I have updated the gist with a directory tree of the
Same goes for the temporary EasyBuild installation, instead of installing under the prefix, I remember dealing with this problem before, but the issue has always been exclusively with the temporary installation of EasyBuild that could have always been fixed by accommodating the |
Here is a Dockerfile to reproduce the error using Ubuntu 22.04 LTS:
When you @anselmicz, is it the latest Ubuntu LTS for you, too? Any ideas? Is there a fix or config change needed in Ubuntu, or with EasyBuild? |
@crubb my report deals with Debian Unstable I confirm I can reproduce the error in |
root cause of the problems seems to be the following: https://discuss.python.org/t/linux-distro-patches-to-sysconfig-are-changing-pip-install-prefix-outside-virtual-environments/18240/14 Essentially, some distros patched Python's sysconfig to change the default installation scheme from I found a bug report for Ubuntu, which essentially sits dormant after more or less stating that it's a design choice: https://bugs.launchpad.net/ubuntu/+source/python3.10/+bug/1967920 |
@crubb I can see how that affect the installation of EasyBuild with EasyBuild (since that's done with the system Python), but how does that affect installing Python packages with a Python that was installed with EasyBuild?! |
@crubb Good catch! This (temporary) workaround seems to work for me:
@boegel, looking at the links @crubb provided, it seems like in Debian, |
I actually borrowed from Debian and stole their
|
I just run into the same problem while generating a test-report on a With the described workaround I was able to build it successfully. |
Did some more digging, found some more info:
|
Updates to the |
@boegel redirected me here about the problem on Ubuntu 22.04. I could not follow easybuild installation guide on Installing EasyBuild tutorial. The procedure fails at step 2 with the error:
and no other obvious information. The solution discussed here seem to be used with the flag
and it worked immediately as expected on my system. |
@akesandgren mentioned that he was hitting some problems when testing #2977, so I'm re-opening this issue to try and figure out what was overlooked (I haven't been able to reproduce this problem):
|
I did a quick debugging session on this with @akesandgren, and it's now clear why he was hitting the In @akesandgren's Ubuntu 22.04 container, Python 3.10 is installed, but Apparently whether the active Python naming scheme of the system Python is The changes in #2977 make |
…s when using 'pip install' in PythonPackage easyblock (fixes easybuilders#2976)
#2988 should fix the issue that @akesandgren observed... |
…s when using 'pip install' in PythonPackage easyblock (fixes easybuilders#2976)
Problem description
Hi. Recently, one of my machines started experiencing problems with installing EasyBuild via the bootstrap method.
I use a custom build script I wrote based on the official instructions in the Lua, Lmod and EasyBuild documentations:
https://github.com/anselmicz/easybuild-installer/blob/main/easybuild.sh
My current builds fail during the sanity check phase, I'm enclosing the build log, environment at the time of installation, and trace output as a gist:
https://gist.github.com/anselmicz/72d1a0239cf67b685ed878aef2f61359
The error itself comes from https://github.com/boegel/easybuild-easyblocks/blob/develop/easybuild/easyblocks/e/easybuildmeta.py#L235
In a Slack conversation, @ocaisa mentioned that the error may be somehow connected to
#2805
System
OS
Debian bookworm/sid
Custom dependencies
System packages
Python packages
Do you have any thoughts on this? I tried lowering both the temporary and to-be-installed versions of EasyBuild, but the issue persists both on
4.6.1
and4.6.0
, and I can't try4.5.4
because then thesetuptools
andsetup.py
problems arise.The text was updated successfully, but these errors were encountered: