Hello All,

 

I am trying to get some old modules/OOT blocks working in gnuradio 3.8 and I
am having some issues.  

 

I sent out an email regarding some blocks that I have made, but I am having
the same issue when I am trying to run gr-ais (which I tried to use as a
"simple" first step before porting my own blocks)

 

I just reinstalled gnuradio(3.8) using the instructions found in the pybombs
readme, found here <https://github.com/gnuradio/pybombs#pybombs> .

 

After that I used pybombs to install gr-ais, and then used <gr_modtool
update -complete> in order to try to convert resources to gnuradio 3.8

 

I was able to build without errors, but when running the block I got the
error:

                

Traceback (most recent call last):

                File
"/home/superuser/prefix/default/src/gr-ais/build/testing_gr_ais.py", line 27
in <module>

                                From ais import gmsk_sync

ModuleNotFoundError: No module named 'ais'

 

When I try to import ais, or .ais_swig in the python interpreter I get the
following errors:

 

 

Try to import ais

>>>From ais import *

Traceback (most recent call last):

                File "<stdin>", line 1, in <module>

ModuleNotFoundError: No module named 'ais'

 

 

>From .ais_swig try to import all

>>>from .ais_swig import *

Traceback (most recent call last):

                File "<stdin>", line 1, in <module>

ModuleNotFoundError: No module named '__main__.ais_swig'; '__main__' is not
a package

 

 

And again without the dot, as I have seen recommended

>>>from ais_swig import *

Traceback (most recent call last):

                File
"/home/superuser/prefix/default/src/gr-ais/build/swig/ais_swig.py", line 14
in swig_import_helper

                    return importlib.import_module(mname)

                File "/usr/lib/python3.6/importlib/__init__.py", line 126,
in import_module

                    return _bootstrap._gcd_import(name[level:], package,
level)

                File "<frozen importlib._bootstrap>", line 994, in
_gcd_import

                File "<frozen importlib._bootstrap>", line 971, in
_find_and_load

                File "<frozen importlib._bootstrap>", line 955, in
_find_and_load_unlocked

                File "<frozen importlib._bootstrap>", line 658, in
_load_unlocked

                File "<frozen importlib._bootstrap>", line 571, in
module_from_spec

                File "<frozen importlib._booststrap_external>", line 922, in
create_modle

                File "<frozen importlib._bootstrap>", line 219, in
_call_with_frames_removed

ImportError: dynamic module does not define module export function
(PyInit__ais_swig)

 

During handling of the above exception, another exception occurred:

 

Traceback (most recent call last):

                File "<stdin>", line 1, in <module>

                File
"/home/superuser/prefix/default/src/gr-ais/build/swig/ais_swig.py", line 17,
in <module>

                    _ais_swig = swig_import_helper()

                File
"/home/superuser/prefix/default/src/gr-ais/build/swig/ais_swig.py", line 16,
in swig_import_helper

                    Return importlib.import_module('_ais_swig')

                File "/usr/lib/python3.6/importlib/__init__.py", line 126,
in import_module

                    Return _bootstrap._gcd_import(name[level:], package,
level)

ImportError: dynamic module does not define module export function
(PyInit__ais_swig)

 

                

 

All the errors I have found anything about:

 

*       The '__main__' is not a package errors points to the directory
structure having something set up wrong, and that the module is getting
renamed to __main__, I am not sure where or why this is (if it is) happening

 

*       The File "<stdin>", line 1, in <module> I think comes from using
<print "foo"> rather than <print("foo")> since "print" was changed to a
function instead of a statement in python3. I also am not sure where this is
happening, or if that is the issue specific issue.  

 

 

 

Thank you!

 

 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to