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

Error in sitecustomize; set PYTHONVERBOSE for traceback: #16

Open
viferga opened this issue Feb 21, 2024 · 0 comments
Open

Error in sitecustomize; set PYTHONVERBOSE for traceback: #16

viferga opened this issue Feb 21, 2024 · 0 comments

Comments

@viferga
Copy link
Member

viferga commented Feb 21, 2024

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 <[email protected]>
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 <[email protected]>
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

1 participant