@apalazzi
Just tried to install quantities inside the container using an overlay.
Importantly, my originally tested image version was:
salome_meca-lgpl-2022.1.0-1-20221225-scibian-9, which runs Python 3.6.5
It works:
Singularity> pip install quantities
Collecting quantities
Downloading quantities-0.13.0.tar.gz (85 kB)
|████████████████████████████████| 85 kB 2.6 MB/s
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for quantities, since package 'wheel' is not installed.
Installing collected packages: quantities
Running setup.py install for quantities ... done
Successfully installed quantities-0.13.0
Runningpip freeze inside the container returns at some point:
qtconsole==4.6.0
quantities==0.13.0
requests==2.13.0
Another attempt with (usedpip3 instead of pip this time):
salome_meca-lgpl-2023.1.0-4-20240327-scibian-10, which runs Python 3.7.3. frezee output:
qtconsole==4.6.0
quantities==0.13.0
requests==2.21.0
Yet another try with salome_meca-lgpl-2024.1.0-1-20240327-scibian-11, which runs Python 3.9.2: this gives the error message about network errors. But I think I found a solution. Please run:
pip config debug
you should receive:
env_var:
PIP_INDEX='https://nexus.retd.edf.fr/repository/pypi-all/pypi'
PIP_INDEX_URL='https://nexus.retd.edf.fr/repository/pypi-all/simple'
PIP_TRUSTED_HOST='nexus.retd.edf.fr'
...
Please back them up up, if you want to restore them later. These route pip to (i believe) an internal edf repo. so just unset them:
unset PIP_INDEX
unset PIP_INDEX_URL
unset PIP_TRUSTED_HOST
run:
pip install quantitities
and it should work. check this as well pip frezee:
pyzmq==20.0.0
quantities==0.16.1
requests==2.25.1
Do check the image's numpy version (should be 1.19.5), which is going to be replaced by 2.0.2 after installing your package. This may raise compatibility issues with other default image Python packages. Proceed with care.
If the above does not work for you, I don't know what will 🙂
Best