I have successfully installed gnuradio on my windows machine and try to integrate the python environment that comes with it (Python 2.7) with PyCharm v2018. I create a new project and add a user-defined path for packages to point where all the gnuradio libraries are (C:\Program Files\GNURadio-3.7\lib\site-packages).
Everything seems to work fine in the sense that Pycharm can see all the gnuradio packages without complaining. But when I run the command "from gnuradio import uhd as uhd", or import any other sub-package for that matter, I get an error complaining about not being able to load the corresponding swig file, although it does exist in the expected location.
Traceback (most recent call last): File "C:/Users/ep29413/PycharmProjects/GnuRadio/junk.py", line 3, in from gnuradio import fft as uhd File "C:\junk\site-packages\gnuradio\fft__init__.py", line 32, in from fft_swig import * File "C:\junk\site-packages\gnuradio\fft\fft_swig.py", line 17, in _fft_swig = swig_import_helper() File "C:\junk\site-packages\gnuradio\fft\fft_swig.py", line 16, in swig_import_helper return importlib.import_module('_fft_swig') File "C:\Program Files\GNURadio-3.7\gr-python27\lib\importlib__init__.py", line 37, in import_module import(name) ImportError: No module named _fft_swig
Note that when I run the batch file that initializes the python environment for gnuradio outside PyCharm the above command works just fine.
Any help will be greatly appreciated.