dls-controls / dev-c7

A container for running the DLS Controls RHEL7 developer environment on a RHEL8 workstation
Apache License 2.0
0 stars 2 forks source link

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

Open OCopping opened 1 year ago

OCopping commented 1 year ago
❯ 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)
gilesknap commented 1 year ago

@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 dataanalysis@diamond.ac.uk

    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 commented 1 year ago

@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 commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

@OCopping is this issue resolved?