ModuleNotFoundError: Difference between revisions
Jump to navigation
Jump to search
(reorganize and clarify) |
IndianaM1ke (talk | contribs) (tweak for OSX) |
||
Line 10: | Line 10: | ||
* on a terminal screen, enter <code>gnuradio-config-info --prefix</code> | * on a terminal screen, enter <code>gnuradio-config-info --prefix</code> | ||
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 | ||
= Mac OS X / macOS = | |||
See the [https://wiki.gnuradio.org/index.php/MacInstall#Typical_Errors_and_Warnings MacInstall] guide for issues and settings on that OS. | |||
= Setting PYTHONPATH = | = Setting PYTHONPATH = | ||
== Linux-based systems | == Linux-based systems == | ||
- For | - For most Debian / Ubuntu (and derivative) systems, and most other 32-bit Unix/Linux systems, use: | ||
<pre> | <pre> | ||
export PYTHONPATH={prefix}/lib/python3/dist-packages:{prefix}/lib/python3/site-packages:$PYTHONPATH | export PYTHONPATH={prefix}/lib/python3/dist-packages:{prefix}/lib/python3/site-packages:$PYTHONPATH | ||
Line 36: | Line 40: | ||
export LD_LIBRARY_PATH={prefix}/lib64:$LD_LIBRARY_PATH | export LD_LIBRARY_PATH={prefix}/lib64:$LD_LIBRARY_PATH | ||
</pre> | </pre> | ||
Revision as of 16:25, 28 January 2020
When you start gnuradio-companion or execute grcc, 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
Mac OS X / macOS
See the MacInstall guide for issues and settings on that OS.
Setting PYTHONPATH
Linux-based systems
- For most Debian / Ubuntu (and derivative) systems, and most other 32-bit Unix/Linux systems, use:
export PYTHONPATH={prefix}/lib/python3/dist-packages:{prefix}/lib/python3/site-packages:$PYTHONPATH
- For other 64-bit systems, use:
export PYTHONPATH={prefix}/lib64/python3/site-packages:$PYTHONPATH
Setting LD_LIBRARY_PATH
Linux-based systems
- For most 32-bit systems and most Debian / Ubuntu (and derivative) systems, use:
export LD_LIBRARY_PATH={prefix}/lib:$LD_LIBRARY_PATH
- For other 64-bit systems, use:
export LD_LIBRARY_PATH={prefix}/lib64:$LD_LIBRARY_PATH