discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] ImportError: No module named howto_swig


From: Cindy Zhang
Subject: [Discuss-gnuradio] ImportError: No module named howto_swig
Date: Wed, 16 May 2018 16:06:14 -0400

I am trying to follow the example of adding a square_ff module (https://wiki.gnuradio.org/index.php/OutOfTreeModules). I didn't modify the python/CMakeList.txt file because it didn't do so in the youtube tutorial (https://www.youtube.com/watch?v=BW8o9ZgFJ5I). The 'Cmake' and 'make' command went smoothly. However, when I issued 'make test' in the build folder, the test failed with an error message "Errors while running CTest: Makefile:85 recipe for target 'test' failed". I then checked back all the files, and I found python/CMakeList.txt had been modified automatically with all the required lines being added. Besides, everything else looks OK as well.

P.S. 1. Here is the relevant result running 'ctest -V -R square':

        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 2
        Start 2: qa_square_ff

        2: Test command: /bin/sh "/home/ubuntu/Documents/GRCFiles/gr- 
        howto/build/python/qa_square_ff_test.sh"
        2: Test timeout computed to be: 9.99988e+06
        2: Traceback (most recent call last):
        2:   File "/home/ubuntu/Documents/GRCFiles/gr-
        howto/python/qa_square_ff.py", line 24, in <module>
        2:     import howto_swig as howto
        2: ImportError: No module named howto_swig
        1/1 Test #2: qa_square_ff .....................***Failed    0.35 sec
    2. I tried to make sure 'import howto_swig as howto' in qa_square_ff.py be 
        in this file by deleting this statement and then adding it back. However, 
        I got the following warning:
        (gedit:10845): Gtk-WARNING **: 22:47:45.238: Attempting to read the  recently 
        used resources file at '/home/ubuntu/.local/share/recently- used.xbel', but the parser 
        failed: Failed to open  file “/home/ubuntu/.local/share/recently-used.xbel”: Permission denied.

        3. If I try to edit the file qa_square_ff from fresh via 'sudo H gedit qa_square_ff' and save the changes, the following warning occurs:

        ** (gedit:10790): WARNING **: 22:43:16.086: Set document metadata failed: 
        Setting attribute metadata::gedit-spell-language not supported

The OS I am using is Ubuntu18. Any help on solving this problem would be appreciated!



reply via email to

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