AW: Make fails while installing gr-osmosdr
Hello Vasil, The problem was with gr-fcdproplus package only! After removing it was installing fine and I got it under GRC Menu! But there is a new error while executing the flowgraph! 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/local/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/local/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" What is the problem here? Regards, Thangaraj -----Ursprüngliche Nachricht----- Von: Vasil Velichkov <vvvelichkov@gmail.com> Gesendet: Mittwoch, 27. Oktober 2021 13:27 An: Thangaraj Mukara Dhakshinamoorthy <thangaraj@komro.net>; osmocom-sdr@lists.osmocom.org Betreff: Re: AW: AW: Make fails while installing gr-osmosdr Hi Thangaraj, On 27/10/2021 13.51, Thangaraj Mukara Dhakshinamoorthy wrote:
Sorry! I was wrong, I installed main-3.9 only!
OK.
I guess the problem would be something to do with the cmake prefix path I have passed:
I doubt that it is related to the prefix. Have you tried deleting gr-osmosdr's build directory and starting from scratch (after remvoing gr-fcdproplus package)? Alternatively you can delete only the CMakeCache file. What is the exact problem that you have right now? Provide the full cmake and make output.
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
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
participants (2)
-
Thangaraj Mukara Dhakshinamoorthy -
Vasil Velichkov