Skip to content

Error in sitecustomize; set PYTHONVERBOSE for traceback: #16

Open

Description

@viferga

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions