Hello Vasil,
As you said I have removed and reinstalled 'gr-osmosdr' (with prefix '/usr')!
Verified if there are two installation of gr-osmosdr:
thangz@thangz-VirtualBox:/usr/lib/python3/dist-packages/osmosdr$ ls __init__.py osmocom_siggen_base.pyc __init__.pyc osmocom_siggen_base.pyo __init__.pyo osmosdr_python.cpython-38-x86_64-linux-gnu.so osmocom_siggen_base.py
thangz@thangz-VirtualBox:/usr/local/lib/python3/dist-packages$ ls #osmosdr folder under '/usr/local/'! gnuradio pmt volk_modtool
Console:
Generating: '/home/thangz/Desktop/gnuradio/rtlsdr_fm_spectrum_simple.py'
Executing: /usr/bin/python3 -u /home/thangz/Desktop/gnuradio/rtlsdr_fm_spectrum_simple.py
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/osmosdr/__init__.py", line 17, in <module> from .osmosdr_python import * ImportError: generic_type: type "sink" referenced unknown base type "gr::hier_block2"
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/thangz/Desktop/gnuradio/rtlsdr_fm_spectrum_simple.py", line 37, in <module> import osmosdr File "/usr/lib/python3/dist-packages/osmosdr/__init__.py", line 21, in <module> from .osmosdr_python import * ImportError: generic_type: type "sink" referenced unknown base type "gr::hier_block2"
I am looking into the links you sent, thank you :)
Regards, Thangaraj
-----Ursprüngliche Nachricht----- Von: Vasil Velichkov vvvelichkov@gmail.com Gesendet: Mittwoch, 27. Oktober 2021 15:03 An: Thangaraj Mukara Dhakshinamoorthy thangaraj@komro.net; osmocom-sdr@lists.osmocom.org Betreff: Re: AW: Make fails while installing gr-osmosdr
Hi Thangaraj,
On 27/10/2021 15.43, Thangaraj Mukara Dhakshinamoorthy wrote:
The problem was with gr-fcdproplus package only! After removing it was installing fine and I got it under GRC Menu!
Cool.
File "/usr/local/lib/python3/dist-packages/osmosdr/__init__.py", line 17, in <module>
In your previous mails you've said that you're setting cmake's prefix to `/usr` but here osmosdr is in `/usr/local` (the default prefix). Make sure you have only one gr-osmosdr installed on your system. My advice is to remove all gr-osmosdr installations (from source or from package), make sure that there are not `osmosdr` files in `/usr/` and `/usr/local`, and then reinstall gr-osmosdr.
from .osmosdr_python import *ImportError: generic_type: type "sink" referenced unknown base type "gr::hier_block2"
I'm not familiar with this error. It looks like
https://lists.gnu.org/archive/html/discuss-gnuradio/2021-05/msg00059.html https://lists.gnu.org/archive/html/discuss-gnuradio/2021-05/msg00024.html
Regards, Vasil