In PyCharm, I’ve added the Python environment /usr/bin/python. However,
/usr/bin/python
from gnuradio import gr
fails as an undefined reference. However, it works fine in the Python interpreter from the command line.
GNURadio works fine with python outside of Pycharm. Everything is installed and configured how I want it.
Gnuradio is located at /usr/local/lib/python2.7/site-packages/gnuradio
/usr/local/lib/python2.7/site-packages/gnuradio
Also:
PYTHONPATH=/usr/local/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages/gnuradio
The issue you are facing seems to be related to the Python interpreter configured in PyCharm not being able to find the GNURadio libraries. Here are some steps you can try to resolve this issue:
PYTHONPATH
LD_LIBRARY_PATH
If the issue persists, you may need to dig deeper into the GNURadio installation and PyCharm’s interpreter configuration to ensure they are compatible. Additionally, you can try running PyCharm from the terminal where GNURadio works to see if there are any specific error messages related to library loading.
Remember that GNURadio might have dependencies and runtime requirements that are needed for correct operation. Ensure that all required libraries and paths are correctly set up for both the system and PyCharm.