[Top][All Lists]

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

re: issues porting C++ OOT to 3.9 - fails at runtime import

From: Tom McDermott
Subject: re: issues porting C++ OOT to 3.9 - fails at runtime import
Date: Sun, 9 May 2021 11:44:40 -0700

Hi Ron - thank you for sending me the link to your 3.9 gr-iqlevels module !
It builds and installs OK, but when trying to run it gives me the same type of error as my own module:

Note: cmake .. -DCMAKE_INSTALL_PREFIX=/usr   was used for for gr-iqlevels

$ python3
Python 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gnuradio
>>> import iqlevels
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/iqlevels/__init__.py", line 18, in <module>
    from .iqlevels_python import *
ImportError: generic_type: type "iqlevels" referenced unknown base type "gr::sync_block"

And when run from GRC:

Traceback (most recent call last):
  File "/home/tom/Desktop/iqlevels.py", line 142, in <module>
  File "/home/tom/Desktop/iqlevels.py", line 120, in main
    tb = top_block_cls()
  File "/home/tom/Desktop/iqlevels.py", line 81, in __init__
    self.iqlevels_iqlevels_0 = iqlevels.iqlevels(samp_rate, 1)
AttributeError: type object 'iqlevels' has no attribute 'iqlevels'

So it appears there is something wrong or misconfigured in my system.
I am baffled as to what that might be.
Ubuntu 20.04
Python 3.8.5
Cmake 3.16.3
GCC 9.3.0
pygccxml  2.1.0  installed using pip3
pybind11-2.4.3 installed from tarball according to the OOT 3.9 instructions
  pybind11 build, cmake, make, make install by the above directions.
   it put the various pybind headers into /usr/local/include/pybind11/

Is there some other configuration, path, or other thing that needs to be setup?

-- Tom, N5EG

reply via email to

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