metacall / distributable-linux

Linux redistributable for shipping MetaCall Core.
Apache License 2.0
10 stars 12 forks source link

Error in sitecustomize; set PYTHONVERBOSE for traceback: #16

Open viferga opened 9 months ago

viferga commented 9 months ago

The following error appears when loading a Python module:

Error in sitecustomize; set PYTHONVERBOSE for traceback:
ValueError: '/gnu/store/fh3601n59i6rbsri6a4lbnnc00n6fjjl-profile/bin/../../c81i9i54fgc2gya6948dxs4b61c86f9g-python-3.10.7R/lib/python3.10/site-packages' is not in list

This is a bug from Guix which has been solved in core-updates branch but it is not merged into master yet. Update it whenever it is available. Here's the commit:

commit d8875d76555faf1a11f6838312bfe4b7f6121d2c
Author: Konrad Hinsen <konrad.hinsen@fastmail.net>
Date:   Thu Jan 4 13:44:19 2024 +0100

    gnu: python: Normalize sys.prefix in sitecustomize.py.

    * gnu/packages/aux-files/python/sitecustomize.py: normalize sys.prefix to deal
    with situations where it contains "../", as can happen in relocatable packs.

    Change-Id: Ibfe13d7c2a14beaa199f599e64bc0b7bfb500fe8
    Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>