So a 'sudo ldconfig' fixed the problem. On Tue, Apr 26, 2016 at 7:20 AM, Yile Ku <stiffst...@gmail.com> wrote:
> I am running Ubuntu 14.04 and used pybombs to build gnuradio. Whenever I > create a module and try and run it, I get the AttributeError shown at the > bottom. > > Y- > > > radio@ubuntu:~$ gr_modtool newmod tryit > Creating out-of-tree module in ./gr-tryit... Done. > Use 'gr_modtool add' to add a new block to this currently empty module. > radio@ubuntu:~$ cd gr-tryit/ > radio@ubuntu:~/gr-tryit$ gr_modtool add -t noblock thisis > GNU Radio module name identified: tryit > Language (python/cpp): cpp > Language: C++ > Block/code identifier: thisis > Enter valid argument list, including default arguments: > Add C++ QA code? [Y/n] > Adding file 'lib/thisis.cc'... > Adding file 'include/tryit/thisis.h'... > Adding file 'lib/qa_thisis.cc'... > Adding file 'lib/qa_thisis.h'... > Editing swig/tryit_swig.i... > Adding file 'grc/tryit_thisis.xml'... > Editing grc/CMakeLists.txt... > radio@ubuntu:~/gr-tryit$ ls > apps CMakeLists.txt examples include MANIFEST.md swig > cmake docs grc lib python > radio@ubuntu:~/gr-tryit$ mkdir build > radio@ubuntu:~/gr-tryit$ cd build > radio@ubuntu:~/gr-tryit/build$ cmake .. > -- The CXX compiler identification is GNU 4.8.4 > -- The C compiler identification is GNU 4.8.4 > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- Check for working C compiler: /usr/bin/cc > -- Check for working C compiler: /usr/bin/cc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Build type not specified: defaulting to release. > -- Boost version: 1.54.0 > -- Found the following Boost libraries: > -- filesystem > -- system > -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") > -- checking for module 'cppunit' > -- found cppunit, version 1.13.1 > -- Found CPPUNIT: /usr/lib/i386-linux-gnu/libcppunit.so;dl > -- Found Doxygen: /usr/bin/doxygen (found version "1.8.6") > Checking for GNU Radio Module: RUNTIME > -- checking for module 'gnuradio-runtime' > -- found gnuradio-runtime, version 3.7.9.2 > * INCLUDES=/usr/local/include > * > LIBS=/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so > -- Found GNURADIO_RUNTIME: > /usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so > GNURADIO_RUNTIME_FOUND = TRUE > -- > -- Checking for module SWIG > -- Found SWIG version 2.0.11. > -- Found SWIG: /usr/bin/swig2.0 > -- Found PythonLibs: /usr/lib/i386-linux-gnu/libpython2.7.so (found > suitable version "2.7.6", minimum required is "2") > -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.6", > minimum required is "2") > -- Looking for sys/types.h > -- Looking for sys/types.h - found > -- Looking for stdint.h > -- Looking for stdint.h - found > -- Looking for stddef.h > -- Looking for stddef.h - found > -- Check size of size_t > -- Check size of size_t - done > -- Check size of unsigned int > -- Check size of unsigned int - done > -- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE > -- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE - Success > -- Configuring done > -- Generating done > -- Build files have been written to: /home/radio/gr-tryit/build > radio@ubuntu:~/gr-tryit/build$ vi ../lib/ > CMakeLists.txt qa_thisis.h qa_tryit.h thisis.cc > qa_thisis.cc qa_tryit.cc test_tryit.cc > radio@ubuntu:~/gr-tryit/build$ vi ../lib/thisis.cc > radio@ubuntu:~/gr-tryit/build$ make > Scanning dependencies of target gnuradio-tryit > [ 6%] Building CXX object lib/CMakeFiles/gnuradio-tryit.dir/thisis.cc.o > Linking CXX shared library libgnuradio-tryit.so > [ 6%] Built target gnuradio-tryit > Scanning dependencies of target test-tryit > [ 12%] Building CXX object lib/CMakeFiles/test-tryit.dir/test_tryit.cc.o > [ 18%] Building CXX object lib/CMakeFiles/test-tryit.dir/qa_tryit.cc.o > [ 25%] Building CXX object lib/CMakeFiles/test-tryit.dir/qa_thisis.cc.o > Linking CXX executable test-tryit > [ 25%] Built target test-tryit > Scanning dependencies of target _tryit_swig_doc_tag > [ 31%] Building CXX object > swig/CMakeFiles/_tryit_swig_doc_tag.dir/_tryit_swig_doc_tag.cpp.o > Linking CXX executable _tryit_swig_doc_tag > [ 31%] Built target _tryit_swig_doc_tag > Scanning dependencies of target tryit_swig_swig_doc > [ 37%] Generating doxygen xml for tryit_swig_doc docs > [ 43%] Generating python docstrings for tryit_swig_doc > [ 43%] Built target tryit_swig_swig_doc > Scanning dependencies of target _tryit_swig_swig_tag > [ 50%] Building CXX object > swig/CMakeFiles/_tryit_swig_swig_tag.dir/_tryit_swig_swig_tag.cpp.o > Linking CXX executable _tryit_swig_swig_tag > [ 50%] Built target _tryit_swig_swig_tag > [ 56%] Generating tryit_swig.tag > Scanning dependencies of target tryit_swig_swig_2d0df > [ 62%] Building CXX object > swig/CMakeFiles/tryit_swig_swig_2d0df.dir/tryit_swig_swig_2d0df.cpp.o > Linking CXX executable tryit_swig_swig_2d0df > Swig source > [ 62%] Built target tryit_swig_swig_2d0df > Scanning dependencies of target _tryit_swig > [ 68%] Building CXX object > swig/CMakeFiles/_tryit_swig.dir/tryit_swigPYTHON_wrap.cxx.o > Linking CXX shared module _tryit_swig.so > [ 68%] Built target _tryit_swig > Scanning dependencies of target pygen_swig_2ef2d > [ 75%] Generating tryit_swig.pyc > [ 81%] Generating tryit_swig.pyo > [ 81%] Built target pygen_swig_2ef2d > Scanning dependencies of target pygen_python_0215e > [ 87%] Generating __init__.pyc > [ 93%] Generating __init__.pyo > [ 93%] Built target pygen_python_0215e > Scanning dependencies of target pygen_apps_9a6dd > [ 93%] Built target pygen_apps_9a6dd > Scanning dependencies of target doxygen_target > [100%] Generating documentation with doxygen > [100%] Built target doxygen_target > radio@ubuntu:~/gr-tryit/build$ vi ../lib/ > CMakeLists.txt qa_thisis.h qa_tryit.h thisis.cc > qa_thisis.cc qa_tryit.cc test_tryit.cc > radio@ubuntu:~/gr-tryit/build$ vi ../lib/ > CMakeLists.txt qa_thisis.h qa_tryit.h thisis.cc > qa_thisis.cc qa_tryit.cc test_tryit.cc > radio@ubuntu:~/gr-tryit/build$ vi ../lib/thisis.cc > radio@ubuntu:~/gr-tryit/build$ vi ../grc/ > CMakeLists.txt tryit_thisis.xml > radio@ubuntu:~/gr-tryit/build$ vi ../grc/tryit_thisis.xml > radio@ubuntu:~/gr-tryit/build$ make > [ 6%] Built target gnuradio-tryit > [ 25%] Built target test-tryit > [ 31%] Built target _tryit_swig_doc_tag > [ 43%] Built target tryit_swig_swig_doc > [ 50%] Built target _tryit_swig_swig_tag > [ 62%] Built target tryit_swig_swig_2d0df > [ 68%] Built target _tryit_swig > [ 81%] Built target pygen_swig_2ef2d > [ 93%] Built target pygen_python_0215e > [ 93%] Built target pygen_apps_9a6dd > [100%] Built target doxygen_target > radio@ubuntu:~/gr-tryit/build$ sudo make > [ 6%] Built target gnuradio-tryit > [ 25%] Built target test-tryit > [ 31%] Built target _tryit_swig_doc_tag > [ 43%] Built target tryit_swig_swig_doc > [ 50%] Built target _tryit_swig_swig_tag > [ 62%] Built target tryit_swig_swig_2d0df > [ 68%] Built target _tryit_swig > [ 81%] Built target pygen_swig_2ef2d > [ 93%] Built target pygen_python_0215e > [ 93%] Built target pygen_apps_9a6dd > [100%] Built target doxygen_target > radio@ubuntu:~/gr-tryit/build$ sudo make install > [ 6%] Built target gnuradio-tryit > [ 25%] Built target test-tryit > [ 31%] Built target _tryit_swig_doc_tag > [ 43%] Built target tryit_swig_swig_doc > [ 50%] Built target _tryit_swig_swig_tag > [ 62%] Built target tryit_swig_swig_2d0df > [ 68%] Built target _tryit_swig > [ 81%] Built target pygen_swig_2ef2d > [ 93%] Built target pygen_python_0215e > [ 93%] Built target pygen_apps_9a6dd > [100%] Built target doxygen_target > Install the project... > -- Install configuration: "Release" > -- Installing: /usr/local/lib/cmake/tryit/tryitConfig.cmake > -- Installing: /usr/local/include/tryit/api.h > -- Installing: /usr/local/include/tryit/thisis.h > -- Installing: /usr/local/lib/libgnuradio-tryit.so > -- Removed runtime path from "/usr/local/lib/libgnuradio-tryit.so" > -- Installing: /usr/local/lib/python2.7/dist-packages/tryit/_tryit_swig.so > -- Removed runtime path from > "/usr/local/lib/python2.7/dist-packages/tryit/_tryit_swig.so" > -- Installing: /usr/local/lib/python2.7/dist-packages/tryit/tryit_swig.py > -- Installing: /usr/local/lib/python2.7/dist-packages/tryit/tryit_swig.pyc > -- Installing: /usr/local/lib/python2.7/dist-packages/tryit/tryit_swig.pyo > -- Installing: /usr/local/include/tryit/tryit/swig/tryit_swig.i > -- Installing: /usr/local/include/tryit/tryit/swig/tryit_swig_doc.i > -- Installing: /usr/local/lib/python2.7/dist-packages/tryit/__init__.py > -- Installing: /usr/local/lib/python2.7/dist-packages/tryit/__init__.pyc > -- Installing: /usr/local/lib/python2.7/dist-packages/tryit/__init__.pyo > -- Installing: /usr/local/share/gnuradio/grc/blocks/tryit_thisis.xml > -- Installing: /usr/local/share/doc/gr-tryit/xml > -- Installing: > /usr/local/share/doc/gr-tryit/xml/dir_d44c64559bbebec7f509842c48db8b23.xml > -- Installing: /usr/local/share/doc/gr-tryit/xml/api_8h.xml > -- Installing: /usr/local/share/doc/gr-tryit/xml/group__block.xml > -- Installing: /usr/local/share/doc/gr-tryit/xml/combine.xslt > -- Installing: /usr/local/share/doc/gr-tryit/xml/namespacestd.xml > -- Installing: /usr/local/share/doc/gr-tryit/xml/index.xml > -- Installing: /usr/local/share/doc/gr-tryit/xml/namespacegr.xml > -- Installing: /usr/local/share/doc/gr-tryit/xml/compound.xsd > -- Installing: > /usr/local/share/doc/gr-tryit/xml/classgr_1_1tryit_1_1thisis.xml > -- Installing: /usr/local/share/doc/gr-tryit/xml/indexpage.xml > -- Installing: > /usr/local/share/doc/gr-tryit/xml/dir_4900e2bcb06589709304e928d288f226.xml > -- Installing: /usr/local/share/doc/gr-tryit/xml/main__page_8dox.xml > -- Installing: /usr/local/share/doc/gr-tryit/xml/group__defs_8dox.xml > -- Installing: /usr/local/share/doc/gr-tryit/xml/index.xsd > -- Installing: /usr/local/share/doc/gr-tryit/xml/thisis_8h.xml > -- Installing: /usr/local/share/doc/gr-tryit/xml/namespacegr_1_1tryit.xml > -- Installing: /usr/local/share/doc/gr-tryit/html > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2folderclosed.png > -- Installing: /usr/local/share/doc/gr-tryit/html/tab_h.png > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2cl.png > -- Installing: /usr/local/share/doc/gr-tryit/html/doxygen.png > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2doc.png > -- Installing: /usr/local/share/doc/gr-tryit/html/api_8h.html > -- Installing: /usr/local/share/doc/gr-tryit/html/navtreeindex0.js > -- Installing: /usr/local/share/doc/gr-tryit/html/files.html > -- Installing: /usr/local/share/doc/gr-tryit/html/tab_s.png > -- Installing: /usr/local/share/doc/gr-tryit/html/namespacegr_1_1tryit.js > -- Installing: /usr/local/share/doc/gr-tryit/html/classes.html > -- Installing: /usr/local/share/doc/gr-tryit/html/closed.png > -- Installing: > /usr/local/share/doc/gr-tryit/html/classgr_1_1tryit_1_1thisis.js > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2lastnode.png > -- Installing: /usr/local/share/doc/gr-tryit/html/api_8h.js > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2splitbar.png > -- Installing: /usr/local/share/doc/gr-tryit/html/tabs.css > -- Installing: /usr/local/share/doc/gr-tryit/html/tab_a.png > -- Installing: /usr/local/share/doc/gr-tryit/html/namespacegr.html > -- Installing: /usr/local/share/doc/gr-tryit/html/modules.js > -- Installing: /usr/local/share/doc/gr-tryit/html/functions.html > -- Installing: > /usr/local/share/doc/gr-tryit/html/dir_4900e2bcb06589709304e928d288f226.html > -- Installing: > /usr/local/share/doc/gr-tryit/html/classgr_1_1tryit_1_1thisis.html > -- Installing: /usr/local/share/doc/gr-tryit/html/tab_b.png > -- Installing: /usr/local/share/doc/gr-tryit/html/thisis_8h_source.html > -- Installing: /usr/local/share/doc/gr-tryit/html/open.png > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2mo.png > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2pnode.png > -- Installing: > /usr/local/share/doc/gr-tryit/html/classgr_1_1tryit_1_1thisis-members.html > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2node.png > -- Installing: /usr/local/share/doc/gr-tryit/html/bdwn.png > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2folderopen.png > -- Installing: /usr/local/share/doc/gr-tryit/html/bc_s.png > -- Installing: /usr/local/share/doc/gr-tryit/html/namespacegr.js > -- Installing: /usr/local/share/doc/gr-tryit/html/sync_on.png > -- Installing: /usr/local/share/doc/gr-tryit/html/group__block.html > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2mnode.png > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2ns.png > -- Installing: > /usr/local/share/doc/gr-tryit/html/dir_d44c64559bbebec7f509842c48db8b23.html > -- Installing: /usr/local/share/doc/gr-tryit/html/group__defs_8dox.html > -- Installing: /usr/local/share/doc/gr-tryit/html/index.html > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2vertline.png > -- Installing: /usr/local/share/doc/gr-tryit/html/annotated.js > -- Installing: /usr/local/share/doc/gr-tryit/html/dynsections.js > -- Installing: /usr/local/share/doc/gr-tryit/html/doxygen.css > -- Installing: /usr/local/share/doc/gr-tryit/html/navtree.js > -- Installing: /usr/local/share/doc/gr-tryit/html/globals.html > -- Installing: /usr/local/share/doc/gr-tryit/html/thisis_8h.html > -- Installing: /usr/local/share/doc/gr-tryit/html/jquery.js > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2link.png > -- Installing: /usr/local/share/doc/gr-tryit/html/annotated.html > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2mlastnode.png > -- Installing: /usr/local/share/doc/gr-tryit/html/navtree.css > -- Installing: /usr/local/share/doc/gr-tryit/html/modules.html > -- Installing: /usr/local/share/doc/gr-tryit/html/nav_f.png > -- Installing: /usr/local/share/doc/gr-tryit/html/resize.js > -- Installing: /usr/local/share/doc/gr-tryit/html/files.js > -- Installing: /usr/local/share/doc/gr-tryit/html/globals_defs.html > -- Installing: /usr/local/share/doc/gr-tryit/html/sync_off.png > -- Installing: /usr/local/share/doc/gr-tryit/html/nav_h.png > -- Installing: /usr/local/share/doc/gr-tryit/html/nav_g.png > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2blank.png > -- Installing: /usr/local/share/doc/gr-tryit/html/api_8h_source.html > -- Installing: /usr/local/share/doc/gr-tryit/html/namespacegr_1_1tryit.html > -- Installing: /usr/local/share/doc/gr-tryit/html/functions_func.html > -- Installing: /usr/local/share/doc/gr-tryit/html/main__page_8dox.html > -- Installing: /usr/local/share/doc/gr-tryit/html/ftv2plastnode.png > radio@ubuntu:~/gr-tryit/build$ gnuradio-companion > <<< Welcome to GNU Radio Companion 3.7.9.2 >>> > > Preferences file: /home/radio/.gnuradio/grc.conf > Block paths: > /usr/local/share/gnuradio/grc/blocks > /home/radio/.grc_gnuradio > > Loading: "/home/radio/gr-test/build/dd.grc" > >>> Done > > Showing: "/home/radio/gr-test/build/dd.grc" > > Generating: '/home/radio/gr-test/build/top_block.py' > >>> Warning: This flow graph may not have flow control: no audio or RF > hardware blocks found. Add a Misc->Throttle block to your flow graph to > avoid CPU congestion. > > Executing: /usr/bin/python2 -u /home/radio/gr-test/build/top_block.py > > Traceback (most recent call last): > File "/home/radio/gr-test/build/top_block.py", line 97, in <module> > main() > File "/home/radio/gr-test/build/top_block.py", line 85, in main > tb = top_block_cls() > File "/home/radio/gr-test/build/top_block.py", line 62, in __init__ > self.tryit_thisis_0 = tryit.thisis() > AttributeError: 'module' object has no attribute 'thisis' > > >>> Done > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > >
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio