apt update apt upgrade apt install git libboost-all-dev swig cmake autoconf libtool pkg-config build-essential python-docutils libcppunit-dev doxygen liblog4cpp5-dev python-scipy gnuradio-dev gr-osmosdr libosmocore-dev gr-osmosdr gnuradio libusb-1.0-0 libusb-1.0-0-dev libfftw3-dev python-numpy git clone https://github.com/ptrkrysik/gr-gsm.git cd gr-gsm mkdir build cd build cmake .. ln -sf /usr/lib/x86_64-linux-gnu/libvolk.so.1.3.1 /usr/lib/x86_64-linux-gnu/libvolk.so.1.3 make make install mkdir /root/.gnuradio/ echo "[grc]" > /root/.gnuradio/config.conf echo "local_blocks_path=/usr/local/share/gnuradio/grc/blocks" >> /root/.gnuradio/config.conf ldconfig
[ 90%] Generating grgsm_livemon
Traceback (most recent call last):
File "/usr/local/bin/grcc", line 32, in <module>
from gnuradio.grc.python.Platform import Platform
ImportError: No module named python.Platform
apps/CMakeFiles/pygen_apps.dir/build.make:84: recipe for target 'apps/grgsm_livemon' failed
make[2]: *** [apps/grgsm_livemon] Error 1
CMakeFiles/Makefile2:1338: recipe for target 'apps/CMakeFiles/pygen_apps.dir/all' failed
make[1]: *** [apps/CMakeFiles/pygen_apps.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
I am using Ubuntu 16.04apt update apt upgrade apt install git libboost-all-dev swig cmake autoconf libtool pkg-config build-essential python-docutils libcppunit-dev doxygen liblog4cpp5-dev python-scipy gnuradio-dev gr-osmosdr libosmocore-dev gr-osmosdr gnuradio libusb-1.0-0 libusb-1.0-0-dev libfftw3-dev python-numpy git clone https://github.com/ptrkrysik/gr-gsm.git cd gr-gsm mkdir build cd build cmake .. ln -sf /usr/lib/x86_64-linux-gnu/libvolk.so.1.3.1 /usr/lib/x86_64-linux-gnu/libvolk.so.1.3 make make install mkdir /root/.gnuradio/ echo "[grc]" > /root/.gnuradio/config.conf echo "local_blocks_path=/usr/local/share/gnuradio/grc/blocks" >> /root/.gnuradio/config.conf ldconfigThe following error occurred during make[ 90%] Generating grgsm_livemon
Traceback (most recent call last):
File "/usr/local/bin/grcc", line 32, in <module>
from gnuradio.grc.python.Platform import Platform
ImportError: No module named python.Platform
It seems you have two gnuratio/grcc versions installed on your platform, the first is /usr/bin/grcc from the apt repository and the second is /usr/local/bin/grcc probably installed using pybombs.My advice is to remove the one installed with pybombs. Run `pybombs inv` and for remove all listed packages, it should be something like$ pybombs inv
PyBOMBS - INFO - PyBOMBS Version 2.3.2
Showing package state:
uhd: installed
apache-thrift: installed
gnuradio: installed
root@f0dfdf110fd3:/# pybombs remove uhd apache-thrift gnuradio afasfa
PyBOMBS - INFO - PyBOMBS Version 2.3.2$ pybombs remove uhd apache-thrift gnuradioThe other option is to try to update all pybombs packages$ pybombs updateThe problem you are having is in gnuradio and have been reported and marked as Resolved. See https://github.com/gnuradio/gnuradio/issues/1018
Thank you for your reply,I use pybombs inv But there was an error and I did not record itLater I uninstalled pybombs directlyHowever, the above problem still exists when installing gr-gsm
If I now reinstall ubuntu16.04 and then use the manual installation method, is it possible to avoid the above error?
apt update apt upgrade apt install git libboost-all-dev swig cmake autoconf libtool pkg-config build-essential python-docutils libcppunit-dev doxygen liblog4cpp5-dev python-scipy gnuradio-dev gr-osmosdr libosmocore-dev gr-osmosdr gnuradio libusb-1.0-0 libusb-1.0-0-dev libfftw3-dev python-numpy git clone https://github.com/ptrkrysik/gr-gsm.git cd gr-gsm mkdir build cd build cmake .. ln -sf /usr/lib/x86_64-linux-gnu/libvolk.so.1.3.1 /usr/lib/x86_64-linux-gnu/libvolk.so.1.3 make make install mkdir /root/.gnuradio/ echo "[grc]" > /root/.gnuradio/config.conf echo "local_blocks_path=/usr/local/share/gnuradio/grc/blocks" >> /root/.gnuradio/config.conf ldconfig
[ 90%] Generating grgsm_livemon
Block key "rtlsdr_source" not found
Validation failed:
Block - blocks_rotator_cc_0 - Rotator(blocks_rotator_cc):
Sink - in(0):
Port is not connected.
Error during file compilation.
apps/CMakeFiles/pygen_apps.dir/build.make:84: recipe for target 'apps/grgsm_livemon' failed
make[2]: *** [apps/grgsm_livemon] Error 1
CMakeFiles/Makefile2:1338: recipe for target 'apps/CMakeFiles/pygen_apps.dir/all' failed
make[1]: *** [apps/CMakeFiles/pygen_apps.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Hi zhouzhuoran,
[ 90%] Generating grgsm_livemon
Block key "rtlsdr_source" not found
zzr@zzr:~/gr-gsm/build$ git checkout0.41.4git origin/grgsm_on_win ptrkrysik/trx
development origin/HEAD pybombs_tests
grgsm_on_win origin/master trx_hopping
HEAD origin/merge_trx v0.41.1
master origin/ptrkrysik/trx v0.41.2
merge_trx origin/pybombs_tests
origin/development origin/trx_hopping
zzr@zzr:~/gr-gsm/build$ git checkout v0.41.2
I installed gr-gsm after installing this dependency package. This issue still exists.
zzr@zzr:~/gr-gsm/build$ git checkout v0.41.2There is no installation error in the subsequent installation process. GRC can also be used normally. Will there be any bad influence in the subsequent use of GRC?