Hello again,

Working through the python programmed modules in the guided tutorial and no 
problems but I get the same 'module attribute error' trying to complete the C++ 
tutorial.
Following directions exactly, files compile, block appears in GRC, can build 
the flowgraph but get the same execution error.
Please see text files attached with the error output and the outputs of the 
cmake..  and make commands. Obviously, there are warnings etc. that do not 
appear in the sample output as described in the tutorial. Could these be the 
cause of the error? I could not find any helpful information on swig warning 
302 for example beyond what it roughly means.

As before running on a completely up-to-date Archlinux 4.8.13 and GRC 3.7.10.1. 
I have removed and rebuilt everything several times but nothing works.

Thanks for any suggestions,
Jacqueline

Traceback (most recent call last):
  File "tutorial_four_1.py", line 210, in <module>
    main()
  File "tutorial_four_1.py", line 198, in main
    tb = top_block_cls()
  File "tutorial_four_1.py", line 68, in __init__
    self.tutorial_my_qpsk_demod_cb_0 = tutorial.my_qpsk_demod_cb(True)
AttributeError: 'module' object has no attribute 'my_qpsk_demod_cb'
-- The CXX compiler identification is GNU 6.3.1
-- The C compiler identification is GNU 6.3.1
-- 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
-- Detecting CXX compile features
-- Detecting CXX compile features - 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
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
CMake Warning at /usr/share/cmake-3.7/Modules/FindBoost.cmake:744 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.7/Modules/FindBoost.cmake:848 
(_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.7/Modules/FindBoost.cmake:1435 
(_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:72 (find_package)


CMake Warning at /usr/share/cmake-3.7/Modules/FindBoost.cmake:744 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.7/Modules/FindBoost.cmake:848 
(_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.7/Modules/FindBoost.cmake:1435 
(_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:72 (find_package)


-- Boost version: 1.63.0
-- Found the following Boost libraries:
--   filesystem
--   system
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'cppunit'
--   Found cppunit, version 1.13.2
-- Found CPPUNIT: /usr/lib64/libcppunit.so;dl  
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
Checking for GNU Radio Module: RUNTIME
-- Checking for module 'gnuradio-runtime'
--   Found gnuradio-runtime, version 3.7.10.1
 * INCLUDES=/usr/include
 * LIBS=/lib64/libgnuradio-runtime.so;/lib64/libgnuradio-pmt.so
-- Found GNURADIO_RUNTIME: 
/lib64/libgnuradio-runtime.so;/lib64/libgnuradio-pmt.so  
GNURADIO_RUNTIME_FOUND = TRUE
-- Found Git: /usr/bin/git  
CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "test-tutorial".  Use
  the target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  lib/CMakeLists.txt:79 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Using install prefix: /usr/local
-- Building for version: v1.0-compat-xxx-xunknown / 1.0.0git
-- 
-- Checking for module SWIG
-- Found SWIG version 3.0.11.
-- Found SWIG: /usr/bin/swig  
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version 
"2.7.13", minimum required is "2") 
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.13", 
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
CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "gnuradio-tutorial".
  Use the target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  python/CMakeLists.txt:45 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target "/usr/bin/python2".
Call Stack (most recent call first):
  python/CMakeLists.txt:45 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target
  
"/home/jacqueline/gnuradio/tutorials/work/gr-tutorial/python/qa_multiply_py_ff.py".
Call Stack (most recent call first):
  python/CMakeLists.txt:45 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "gnuradio-tutorial".
  Use the target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  python/CMakeLists.txt:46 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target "/usr/bin/python2".
Call Stack (most recent call first):
  python/CMakeLists.txt:46 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target
  
"/home/jacqueline/gnuradio/tutorials/work/gr-tutorial/python/qa_qpsk_demod_py_cb.py".
Call Stack (most recent call first):
  python/CMakeLists.txt:46 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "gnuradio-tutorial".
  Use the target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  python/CMakeLists.txt:47 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target "/usr/bin/python2".
Call Stack (most recent call first):
  python/CMakeLists.txt:47 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target
  
"/home/jacqueline/gnuradio/tutorials/work/gr-tutorial/python/qa_my_qpsk_demod_cb.py".
Call Stack (most recent call first):
  python/CMakeLists.txt:47 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "gnuradio-tutorial".
  Use the target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  python/CMakeLists.txt:48 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target "/usr/bin/python2".
Call Stack (most recent call first):
  python/CMakeLists.txt:48 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/GrTest.cmake:45 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target
  
"/home/jacqueline/gnuradio/tutorials/work/gr-tutorial/python/qa_my_qpsk_demod_cb.py".
Call Stack (most recent call first):
  python/CMakeLists.txt:48 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/jacqueline/gnuradio/tutorials/work/gr-tutorial/build
Scanning dependencies of target gnuradio-tutorial
[  5%] Building CXX object 
lib/CMakeFiles/gnuradio-tutorial.dir/my_qpsk_demod_cb_impl.cc.o
[ 11%] Linking CXX shared library libgnuradio-tutorial-1.0.0git.so
[ 11%] Built target gnuradio-tutorial
Scanning dependencies of target test-tutorial
[ 17%] Building CXX object lib/CMakeFiles/test-tutorial.dir/test_tutorial.cc.o
[ 23%] Building CXX object lib/CMakeFiles/test-tutorial.dir/qa_tutorial.cc.o
[ 29%] Building CXX object 
lib/CMakeFiles/test-tutorial.dir/qa_my_qpsk_demod_cb.cc.o
[ 35%] Linking CXX executable test-tutorial
[ 35%] Built target test-tutorial
Scanning dependencies of target tutorial_swig_swig_doc
[ 35%] Built target tutorial_swig_swig_doc
Scanning dependencies of target _tutorial_swig_swig_tag
[ 41%] Building CXX object 
swig/CMakeFiles/_tutorial_swig_swig_tag.dir/_tutorial_swig_swig_tag.cpp.o
[ 47%] Linking CXX executable _tutorial_swig_swig_tag
[ 47%] Built target _tutorial_swig_swig_tag
[ 52%] Generating tutorial_swig.tag
Scanning dependencies of target tutorial_swig_swig_2d0df
[ 58%] Building CXX object 
swig/CMakeFiles/tutorial_swig_swig_2d0df.dir/tutorial_swig_swig_2d0df.cpp.o
[ 64%] Linking CXX executable tutorial_swig_swig_2d0df
Swig source
/home/jacqueline/gnuradio/tutorials/work/gr-tutorial/swig/tutorial_swig.i:19: 
Warning 302: Identifier 'my_qpsk_demod_cb_sptr' redefined (ignored) (Renamed 
from 'shared_ptr< gr::tutorial::my_qpsk_demod_cb >'),
/home/jacqueline/gnuradio/tutorials/work/gr-tutorial/swig/tutorial_swig.i:17: 
Warning 302: previous definition of 'my_qpsk_demod_cb_sptr' (Renamed from 
'shared_ptr< gr::tutorial::my_qpsk_demod_cb >').
[ 64%] Built target tutorial_swig_swig_2d0df
Scanning dependencies of target _tutorial_swig
[ 70%] Building CXX object 
swig/CMakeFiles/_tutorial_swig.dir/tutorial_swigPYTHON_wrap.cxx.o
[ 76%] Linking CXX shared module _tutorial_swig.so
[ 76%] Built target _tutorial_swig
Scanning dependencies of target pygen_swig_35ed0
[ 82%] Generating tutorial_swig.pyc
[ 88%] Generating tutorial_swig.pyo
[ 88%] Built target pygen_swig_35ed0
Scanning dependencies of target pygen_python_390d3
[ 94%] Generating __init__.pyc, multiply_py_ff.pyc, qpsk_demod_py_cb.pyc
[100%] Generating __init__.pyo, multiply_py_ff.pyo, qpsk_demod_py_cb.pyo
[100%] Built target pygen_python_390d3
Scanning dependencies of target pygen_apps_9a6dd
[100%] Built target pygen_apps_9a6dd
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to