Feb-17-2019, 09:51 PM
I have 6 files in the folder "analog" with analog_swig as part of their name. I can't find a way to insert the image here but all have extensions like .i or .py or..... There is no, "analog_swig" without an extension
There are a total of 38 files in that folder.
From the error message it seems the error happens in "_int_.py" which is one of the files in "analog". The snipit that throws the error is at the bottom of this post. So it looks like the statement:
from gnuradio import analog
tries to import and (maybe) execute all 38 files. When it hits _int_.py it throws the error.
Now, please understand I am a newbie trying to understand the process. But bottom line, when I double click on this .py file it executes correctly. Doesn't that imply that it finds all the imports?
Why can't the IDE find them?
I'll look into pip
There are a total of 38 files in that folder.
From the error message it seems the error happens in "_int_.py" which is one of the files in "analog". The snipit that throws the error is at the bottom of this post. So it looks like the statement:
from gnuradio import analog
tries to import and (maybe) execute all 38 files. When it hits _int_.py it throws the error.
Now, please understand I am a newbie trying to understand the process. But bottom line, when I double click on this .py file it executes correctly. Doesn't that imply that it finds all the imports?
Why can't the IDE find them?
I'll look into pip
try: from analog_swig import * except ImportError: dirname, filename = os.path.split(os.path.abspath(__file__)) __path__.append(os.path.join(dirname, "..", "..", "swig")) from analog_swig import *