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

Python module install path is incorrect #20

Open
samcrow opened this issue Mar 10, 2022 · 1 comment
Open

Python module install path is incorrect #20

samcrow opened this issue Mar 10, 2022 · 1 comment
Labels
bug Something isn't working cmake Problems with the CMake build system

Comments

@samcrow
Copy link
Collaborator

samcrow commented Mar 10, 2022

This applies when using GNU Radio 3.8.

For some Python installations, the path where the build system installs the Python modules is not the same as where the Python interpreter looks for modules.

The workaround is to set the PYTHONPATH environment variable when running scripts.

@samcrow samcrow added bug Something isn't working cmake Problems with the CMake build system labels Mar 10, 2022
@samcrow
Copy link
Collaborator Author

samcrow commented Mar 18, 2022

More detail: Debian 11 includes Python 3.9 by default. The Python 3.9 sys.path is ['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/usr/local/lib/python3.9/dist-packages', '/usr/lib/python3/dist-packages', '/usr/lib/python3.9/dist-packages']. The build system installs the Python module in /usr/local/lib/python3/dist-packages (python3 instead of python3.9).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cmake Problems with the CMake build system
Projects
None yet
Development

No branches or pull requests

1 participant