gr-limesdr module referenced unknown base type "gr::block"

Bug #2008637 reported by Wowbagger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gr-limesdr (Ubuntu)
New
Undecided
Unassigned

Bug Description

There is an incompatability between GnuRadio 3.10 and the gr-limesdr package: when using the package, the following error is generated:
 in <module>
    import limesdr
  File "/usr/lib/python3/dist-packages/limesdr/__init__.py", line 18, in <module>
    from .limesdr_python import *
ImportError: generic_type: type "sink" referenced unknown base type "gr::block"

Some research suggests this may be caused by a different version of pybind being used to build the plug-in vs. the main GnuRadio package.

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: gr-limesdr 3.0.1-4build1
ProcVersionSignature: Ubuntu 5.19.0-1017.18-lowlatency 5.19.17
Uname: Linux 5.19.0-1017-lowlatency x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.23.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: XFCE
Date: Sun Feb 26 09:14:14 2023
SourcePackage: gr-limesdr
UpgradeStatus: Upgraded to kinetic on 2022-11-28 (90 days ago)

Revision history for this message
Wowbagger (ha87psc02) wrote :
Revision history for this message
Wowbagger (ha87psc02) wrote :

More information:
Editing /usr/lib/python3/dist-packages/limesdr/__init__.py and adding the following line
try:
    # this might fail if the module is python-only
+++ from gnuradio_base import *
    from .limesdr_python import *

Allows the code to get a bit further along - instead of the error above it gets this error:

  File "~/.grc_gnuradio/Receiver.py", line 241, in __init__
    self.limesdr_source_1 = limesdr.source('', 0, '')
AttributeError: module 'limesdr' has no attribute 'source'

This is in the code generated by Gnu Radio Companion for a flow diagram with the LimeSDR source in it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.