ModuleNotFoundError: Difference between revisions
(add .profile) |
(add MacOSX / macOS section) |
||
Line 1: | Line 1: | ||
These instructions apply to installations for [[InstallingGR#To_install_system_wide|To install system wide]] and for [https://github.com/gnuradio/pybombs#pybombs PyBOMBS] | These instructions apply to installations for [[InstallingGR#To_install_system_wide|To install system wide]] and for [https://github.com/gnuradio/pybombs#pybombs PyBOMBS] | ||
Line 9: | Line 7: | ||
then put the following 'export' commands in your <code>~/.bashrc</code> or <code>~/.profile</code> or <code>~/.bash_aliases</code> file and restart your terminal.<br> | then put the following 'export' commands in your <code>~/.bashrc</code> or <code>~/.profile</code> or <code>~/.bash_aliases</code> file and restart your terminal.<br> | ||
= Determine your installation prefix = | |||
If you don't know or remember your installation prefix, perform the following step: | If you don't know or remember your installation prefix, perform the following step: | ||
Line 15: | Line 13: | ||
then use that prefix in place of <code>{prefix}</code> in the following commands | then use that prefix in place of <code>{prefix}</code> in the following commands | ||
= Linux-based systems = | |||
- For <b>ALL</b> 32-bit systems and <b>ALL</b> Debian / Ubuntu (and derivative) systems, use: | - For <b>ALL</b> 32-bit systems and <b>ALL</b> Debian / Ubuntu (and derivative) systems, use: | ||
<pre> | <pre> | ||
Line 27: | Line 25: | ||
export LD_LIBRARY_PATH={prefix}/lib64:$LD_LIBRARY_PATH | export LD_LIBRARY_PATH={prefix}/lib64:$LD_LIBRARY_PATH | ||
</pre> | </pre> | ||
= MacOSX / macOS = | |||
On MacOSX / macOS, the library search path is set primarily by the environment variable DYLD_LIBRARY_PATH. Because of the way the OSX dynamic library loader works, this variable works differently than on Linux. It's primary purpose is in finding libraries in a local path, such as when testing software before installing it, or inside an application. <b>We strongly recommend against setting this variable globally.</b> |
Revision as of 12:56, 25 January 2020
These instructions apply to installations for To install system wide and for PyBOMBS
When you start gnuradio-companion, if you get this, or a similar, error message:
then put the following 'export' commands in your ~/.bashrc
or ~/.profile
or ~/.bash_aliases
file and restart your terminal.
Determine your installation prefix
If you don't know or remember your installation prefix, perform the following step:
- on a terminal screen, enter
gnuradio-config-info --prefix
then use that prefix in place of {prefix}
in the following commands
Linux-based systems
- For ALL 32-bit systems and ALL Debian / Ubuntu (and derivative) systems, use:
export PYTHONPATH={prefix}/lib/python3/dist-packages:{prefix}/lib/python3/site-packages:$PYTHONPATH export LD_LIBRARY_PATH={prefix}/lib:$LD_LIBRARY_PATH
- For other 64-bit systems, use:
export PYTHONPATH={prefix}/lib64/python3/site-packages:$PYTHONPATH export LD_LIBRARY_PATH={prefix}/lib64:$LD_LIBRARY_PATH
MacOSX / macOS
On MacOSX / macOS, the library search path is set primarily by the environment variable DYLD_LIBRARY_PATH. Because of the way the OSX dynamic library loader works, this variable works differently than on Linux. It's primary purpose is in finding libraries in a local path, such as when testing software before installing it, or inside an application. We strongly recommend against setting this variable globally.