Hi all, We didn't have any issues updating to 4.7.0 when using the old easybuild for bootstrapping on Centos7. We did so with by making sure the shell environment was clean (bar the modules system) and then working with:
#!/usr/bin/env bash > module use /opt/apps/testapps/common/modules/all > module load Easybuild > export EASYBUILD_INSTALLPATH_MODULES=/opt/apps/testapps/common/modules > export EASYBUILD_INSTALLPATH_SOFTWARE=/opt/apps/testapps/common/easybuild/ > export EASYBUILD_MODULE_SYNTAX=Lua > export EASYBUILD_MODULES_TOOL=Lmod > eb --install-latest-eb-release > We also went from 4.6.2 so I wonder if you have any amendments in your Easybuild module files to set the configuration which might be causing trouble? We try to avoid that pollution by using Easybuild config files with: alias eb='echo NO EB!' # You aren't normally allowed to call it without > some config! > alias eb-bootstrap='"eb" --configfiles > /opt/apps/testapps/common/module-system/easybuild-config-module-system-bootstrap-only.cfg > ' > alias eb-staging='"eb" --configfiles > /opt/apps/testapps/el7/easybuild-configs/staging/easybuild-config-native.cfg > ' > alias eb-live='"eb" --configfiles > /opt/apps/testapps/el7/easybuild-configs/live/easybuild-config-native.cfg ' The bootstrap alias effectively does what the script above does. Ta! James. ------------------------------ [image: photo-logo] <https://www.sheffield.ac.uk/it-services/research> Dr James Moore Research Platforms System Administrator The University of Sheffield IT-Services | Research and Innovation IT p: 0114 222 3110 ext: 23110 a: IT Services, 10-12 Brunswick Street, Sheffield, S10 2FN w: https://www.sheffield.ac.uk/it-services/research tw: @RIT_Sheffield <https://twitter.com/rit_sheffield> @DrJKWMoore <https://twitter.com/DrJKWMoore> mast: @[email protected] <https://mast.hpc.social/@jkwmoore> e-alt: [email protected] e: [email protected] PGP keys @: https://keyserver.ubuntu.com/ <https://keyserver.ubuntu.com/pks/lookup?search=j.k.moore%40sheffield.ac.uk&fingerprint=on&op=index> [image: linkedin] <https://www.linkedin.com/in/jkwmoore> [image: github] <https://github.com/jkwmoore> [image: twitter] <https://twitter.com/rit_sheffield?lang=en> ------------------------------ Need a meeting with me? <https://calendar.app.google/mHDxS2gdnUHXfau37> On Wed, 22 Feb 2023 at 14:05, Loris Bennett <[email protected]> wrote: > Hi Sebastian, > > Sebastian Potthoff <[email protected]> writes: > > > Hi there, > > > > I am trying to upgrade our EB installation from 4.6.2 to the latest > 4.7.0, using > > > > eb --install-latest > > > > and in doing so, come across this error: > > > > > > > > == 2023-02-22 14:16:59,395 build_log.py:171 ERROR EasyBuild crashed with > an error (at easybuild/base/exceptions.py:126 in __init__): cmd " > /usr/bin/python3 -m pip install > --prefix=/easybuild/software/EasyBuild/4.7.0 --no-deps > --ignore-installed ." exited with exit code 1 and output: > > Exception: > > Traceback (most recent call last): > > File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 215, > in main > > status = self.run(options, args) > > File "/usr/lib/python3.6/site-packages/pip/commands/install.py", line > 294, in run > > with self._build_session(options) as session: > > File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 69, > in _build_session > > if options.cache_dir else None > > File "/usr/lib64/python3.6/posixpath.py", line 80, in join > > a = os.fspath(a) > > TypeError: expected str, bytes or os.PathLike object, not int > > > > > > > > Now this seems to be caused by the fairly old pip3 version 9.0.3 which > comes with CentOS-7.9. I tried to upgrade the systems' pip3 installation as > root by hand (pip install pip --upgrade) but EB is still (intentionally?) > using the original one. > > > > ... > > == 2023-02-22 14:16:58,553 pythonpackage.py:212 INFO Determining pip > version... > > == 2023-02-22 14:16:58,553 run.py:236 INFO running cmd: /usr/bin/python3 > -m pip --version > > == 2023-02-22 14:16:58,878 pythonpackage.py:220 INFO Found pip version: > 9.0.3 > > == 2023-02-22 14:16:58,879 pythonpackage.py:481 INFO Found pip version > 9.0.3, OK > > … > > > > > > > > > > Python packages installed via *yum* live in > > /usr/lib/python3.6/site-packages/ > > > > while „pip“ installed packages (with root) live in > > /usr/local/lib/python3.6/site-packages/ > > > > Did anyone else experience this behaviour? And wouldn’t this kind of > error have been caught by one of the unit tests while in testing? > > We have installed EasyBuild 4.7.0 successfully on CentOS 7.9. > > Does it still fail if you do > > PYTHONPATH= eb --install-latest > > ? > > Cheers, > > Loris > > -- > Dr. Loris Bennett (Herr/Mr) > ZEDAT, Freie Universität Berlin >

