> To: "
discuss-gnuradio@gnu.org"
<
discuss-gnuradio@gnu.org>
> Cc:
> Bcc:
> Date: Thu, 26 May 2022 17:11:50 +0200
> Subject: Getting "referenced unknown base type gr::block"
> Hi everyone,
>
> I have newest gnuradio 3.10, and I'm compiling example QPSK
block -
>
https://wiki.gnuradio.org/index.php?title=Guided_Tutorial_GNU_Radio_in_C%2B%2B
> But when trying to run it i get following error.
>
> File
>
"/home/ng/Desktop/bloczki/gr-spektralsi/build/python/testFiltru.py",
> line 35, in <module>
> from gnuradio import pec
> File
>
"/usr/local/lib/python3.10/site-packages/gnuradio/pec/__init__.py",
line
> 18, in <module>
> from .pec_python import *
> ImportError: generic_type: type "qpsk_demod_cb" referenced
unknown base
> type "gr::block"
>
> How can i fix it?
>
> Thank You in advance
> Niko
My experience is that this is commonly caused by
pybind11-dev version incompatibility.
At least version 2.5.0 is needed. Ubuntu 20.04 provides
version 2.4.3 and I have not
been successful in updating to a later version on that
specific OS release. Ubuntu 22.04 provides
more recent versions of a bunch of tools, and for me that
was what was needed.
-- Tom, N5EG