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

When trying to run Python 3.10 in the container it errors #86

Open
OCopping opened this issue Mar 23, 2023 · 5 comments
Open

When trying to run Python 3.10 in the container it errors #86

OCopping opened this issue Mar 23, 2023 · 5 comments

Comments

@OCopping
Copy link
Contributor

OCopping commented Mar 23, 2023

❯ python
python: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by python)
python: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by python)
python: /lib64/libc.so.6: version `GLIBC_2.26' not found (required by python)
python: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by python)
@OCopping OCopping changed the title When trying to run a Python 3.10 in the container it errors When trying to run Python 3.10 in the container it errors Mar 23, 2023
@gilesknap
Copy link
Contributor

@OCopping

The following worked for me:

[hgv27681@pc0116 ~]$ bin/c7 -pd
78970713a05bc38614fc90ebd508bc44784d7c3e2d55f48a1435f1a6a8ff19e8
Trying to pull ghcr.io/dls-controls/dev-c7:latest...
Getting image source signatures
Copying blob ff407a6a5cdf skipped: already exists  
Copying blob 28aa2e19d1a5 skipped: already exists  
Copying blob 9e93b3dd5c5e skipped: already exists  
Copying blob 588460e8ece0 skipped: already exists  
Copying blob 8ea8588268a2 skipped: already exists  
Copying blob 2d473b07cdd5 skipped: already exists  
Copying blob 46e4c59638d2 skipped: already exists  
Copying config c160a1fff8 done  
Writing manifest to image destination
Storing signatures
c160a1fff88d8d1dc8f07845088a306eb0be44f762e389ac8c1dbfa9641a02be

Creating new dev-c7 container version latest ...
e322a35478a8e09773ca221cfbcb9a6baeacb318188280e8d25324bd2ac75e95
bash-4.2$ module load python/3.10

    Loading a conda environment for Python 3.10
    If there are any problems, please contact [email protected]

    Need a 3rd party Python package installing? First, consider using the
    user-based install option of pip to test it. (I.e., use
    $ pip install --user ... For further details, see $ pip help install)

    This will install the package in ~/.local
    If a site-wide installation is required, contact Data Analysis.
    For further details, see $ pip help install

(python3.10) bash-4.2$ python 
Python 3.10.4 | packaged by conda-forge | (main, Mar 24 2022, 17:38:57) [GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 


'''

@gilesknap
Copy link
Contributor

@OCopping is this working for you?

I think I need to document that c7 -pd is the equivalent of turning it off and turning it back on again

@OCopping
Copy link
Contributor Author

OCopping commented Apr 3, 2023

@MJGaughran mentioned it could be down to me compiling Python 3.10 on my RHEL 8 system (pc0127), so the libraries aren't available to c7

@gilesknap
Copy link
Contributor

Hi Ollie, yes that sounds like a thing. Could you just use module load 3.10 instead?

If not then you need to do that compilation of 3.10 inside of dev C7 for it to work in dev C7 I would guess (but then it won't work outside)

You also MIGHT be able to yum install the missing GLIBC versions inside your dev-c7 container. You could make your own image based off of dev-c7 to do so (if you want to try this and need some help then let me know)

@gilesknap
Copy link
Contributor

@OCopping is this issue resolved?

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