discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OOT unit testing: ImportError: cannot import name '<custom_module>' GNU


From: Marcin Puchlik
Subject: OOT unit testing: ImportError: cannot import name '<custom_module>' GNU Radio 3.9.3
Date: Fri, 3 Jun 2022 12:17:52 +0200

Hello,
I know that this issue was posted in the past but I haven't found any information about if it was fixed in any of the 3.9.x versions of GNU Radio. So the problem is with importing my custom module while running unit tests. While running ctest -VV -R square I got the output:

UpdateCTestConfiguration  from :/home/ubuntu/prefixes/gnuradio39/OOTs/gr-hornet/build/DartConfiguration.tcl

UpdateCTestConfiguration  from :/home/ubuntu/prefixes/gnuradio39/OOTs/gr-hornet/build/DartConfiguration.tcl
Test project /home/ubuntu/prefixes/gnuradio39/OOTs/gr-hornet/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 4
    Start 4: qa_square_ff

4: Test command: /usr/bin/sh "/home/ubuntu/prefixes/gnuradio39/OOTs/gr-hornet/build/python/qa_square_ff_test.sh"
4: Test timeout computed to be: 10000000
4: Traceback (most recent call last):
4:   File "/home/ubuntu/prefixes/gnuradio39/OOTs/gr-hornet/python/qa_square_ff.py", line 12, in <module>
4:     from hornet import square_ff
4: ImportError: cannot import name 'square_ff' from 'hornet' (unknown location)
4: 
4: During handling of the above exception, another exception occurred:
4: 
4: Traceback (most recent call last):
4:   File "/home/ubuntu/prefixes/gnuradio39/OOTs/gr-hornet/python/qa_square_ff.py", line 18, in <module>
4:     from hornet import square_ff
4: ImportError: cannot import name 'square_ff' from 'hornet' (unknown location)
1/1 Test #4: qa_square_ff .....................***Failed    0.28 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.29 sec

The following tests FAILED:
      4 - qa_square_ff (Failed)


Anyone know how to solve that issue? Or does anyone know which version of GNU Radio has a fix for that issue? I am kinda forced to use 3.9.x version in my dev work. 
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]