grgsm_livemon giving issue
Opened this issue · 12 comments
5.18.0-kali5-amd64
i am new to gr-gsm , sorry if i come out dumb :')
ERROR
└─$ sudo grgsm_livemon
/usr/bin/grgsm_livemon:13: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.version import StrictVersion
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/grgsm/init.py", line 48, in
from .grgsm_swig import *
File "/usr/lib/python3/dist-packages/grgsm/grgsm_swig.py", line 13, in
from . import _grgsm_swig
ImportError: cannot import name '_grgsm_swig' from partially initialized module 'grgsm' (most likely due to a circular import) (/usr/lib/python3/dist-packages/grgsm/init.py)
Traceback (most recent call last):
File "/usr/bin/grgsm_livemon", line 37, in
from grgsm import arfcn
File "/usr/lib/python3/dist-packages/grgsm/init.py", line 48, in
from .grgsm_swig import *
File "/usr/lib/python3/dist-packages/grgsm/grgsm_swig.py", line 13, in
from . import _grgsm_swig
ImportError: cannot import name '_grgsm_swig' from partially initialized module 'grgsm' (most likely due to a circular import) (/usr/lib/python3/dist-packages/grgsm/init.py)
How did you install gnuradio and gr-gsm and which versions?
from official kali rolling repo
└─$ sudo apt install gnuradio
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gnuradio is already the newest version (3.10.3.0-2+b1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
and gr-gsm from this repo :-
https://github.com/bkerler/gr-gsm
in your repo i was getting this error:
and gr-gsm from this repo :-
https://github.com/bkerler/gr-gsm
Then you most probably have some leftovers from a previous installation
File "/usr/lib/python3/dist-packages/grgsm/grgsm_swig.py", line 13, in
from . import _grgsm_swig
The version for gnuradio 3.10 no longer uses swig
so the above file is from a previous installation that you need to remove. First remove all gr-gsm's files from /usr/
and `/usr/local and then reinstall.
cmake .. in your repo give me this
Yes, because the main
branch in my repo contains the version for gnuradio 3.8
. As you have gnuradio 3.10
you need to get the version/branch for gnuradio 3.10
.
Use maint-3.10
or maint-3.10_with_multiarfcn
branches from bkerler's fork but before installing it make sure that there are no gr-gsm's files from a previous installation in /usr/
and /usr/local/
.
in your repo give me this please help me
Why are you building gr-osmosdr
from source? Why don't you install it using the package manager of your Linux distribution?
in your repo give me this please help me
You need to install libsndfile
. For Ubuntu/Debian/Kali run sudo apt-get instlal libsndfile-dev
P.S.
Do not attach screenshots of your terminal. It is much better to copy-paste the test.
Sometimes it appears to me
make: *** no targets specified and no makefile found , stop
make: *** no targets specified and no makefile found , stop
You either are executing make
in a different directory then cmake
or you have not run cmake
before make
When I open {{cmake ..}}this problem appears to me
I deleted it more than once with the same problem, please help me
Error
CMake Error at swig/CMakeLists.txt:37
(include):
include could not find requested file:
GrSwig
CMake Error at swig/CMakeLists.txt:51 (GR_SWIG_MAKE):
Unknown CMake command "GR_SWIG_MAKE".
cmake .. in your repo give me this
Yes, because the
main
branch in my repo contains the version forgnuradio 3.8
. As you havegnuradio 3.10
you need to get the version/branch forgnuradio 3.10
.Use
maint-3.10
ormaint-3.10_with_multiarfcn
branches from bkerler's fork but before installing it make sure that there are no gr-gsm's files from a previous installation in/usr/
and/usr/local/
.
Thanks for sharing the bkerler/gr-gsm fork for GR3.10. It compiled with no issue!!!!