grgsm and "No module named grgsm"

1,155 views
Skip to first unread message

josefh...@hushmail.com

unread,
Jan 7, 2022, 10:33:46 AM1/7/22
to gr-...@googlegroups.com
Hello and Happy New Year!

installed and compiled gs-gsm under Ubuntu 16.04 under /home and moved the entire gr-gsm folder afterwards to /usr/local/bin


[just made a test w/o antenne to see if grgsm_livemon does run, but the following error message is shown: ]

test@Ubu1604-GSM:~$ sudo /usr/local/bin/gr-gsm/build/apps/grgsm_livemon -h
[sudo] password for test:
Traceback (most recent call last):
File "/usr/local/bin/gr-gsm/build/apps/grgsm_livemon", line 29, in <module>
from grgsm import arfcn
ImportError: No module named grgsm



Question:
What I am doing wrong?


Thank you very much for your help!

Joe


****************************************************************************
[and added '/usr/lib/python3/dist-packages' to my shell execute]

# export PYTHONPATH=/usr/lib/python3/dist-packages/:$PYTONPATH


[it seems that there are several python versions installed.....]
/usr/lib/python2.7/dist-packages/networkx/algorithms/shortest_paths/__init__.pyc
/usr/lib/python3/dist-packages





****************************************************
For insalling gr-gsm I used the following comannds:

ubuntu@ubuntu:~$ sudo apt-get install -y \cmake \autoconf \libtool \pkg-config \build-essential \python-docutils \libcppunit-dev \swig \doxygen \liblog4cpp5-dev \python-scipy \python-gtk2 \gnuradio-dev \gr-osmosdr \libosmocore-dev

[some of the output of 'locate grgsm']
/usr/local/bin/gr-gsm/apps/grgsm_decode
/usr/local/bin/gr-gsm/apps/grgsm_livemon.grc
/usr/local/bin/gr-gsm/apps/grgsm_livemon_headless.grc
/usr/local/bin/gr-gsm/apps/grgsm_scanner
/usr/local/bin/gr-gsm/apps/grgsm_trx
/usr/local/bin/gr-gsm/apps/apps_data/grgsm-livemon.desktop
/usr/local/bin/gr-gsm/apps/apps_data/grgsm_setup_freedesktop.in
/usr/local/bin/gr-gsm/apps/helpers/grgsm_capture
/usr/local/bin/gr-gsm/apps/helpers/grgsm_channelize
/usr/local/bin/gr-gsm/build/apps/grgsm_decode.exe
/usr/local/bin/gr-gsm/build/apps/grgsm_livemon


[for compilation]
cd gr-gsm
mkdir build
cd build
cmake ..
mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/
make






#locate livemon
/usr/local/bin/gr-gsm/apps/grgsm_livemon.grc
/usr/local/bin/gr-gsm/apps/grgsm_livemon_headless.grc
/usr/local/bin/gr-gsm/build/apps/grgsm_livemon
/usr/local/bin/gr-gsm/build/apps/grgsm_livemon_headless
/usr/local/bin/gr-gsm/build/build/apps/grgsm_livemon.exe
/usr/local/bin/gr-gsm/build/build/apps/grgsm_livemon_headless.exe
/usr/local/bin/gr-gsm/build/docs/grgsm_livemon.1
/usr/local/bin/gr-gsm/build/docs/CMakeFiles/man_grgsm_livemon.rst.dir
/usr/local/bin/gr-gsm/build/docs/CMakeFiles/man_grgsm_livemon.rst.dir/DependInfo.cmake
/usr/local/bin/gr-gsm/build/docs/CMakeFiles/man_grgsm_livemon.rst.dir/build.make
/usr/local/bin/gr-gsm/build/docs/CMakeFiles/man_grgsm_livemon.rst.dir/cmake_clean.cmake
/usr/local/bin/gr-gsm/build/docs/CMakeFiles/man_grgsm_livemon.rst.dir/depend.internal
/usr/local/bin/gr-gsm/build/docs/CMakeFiles/man_grgsm_livemon.rst.dir/depend.make
/usr/local/bin/gr-gsm/build/docs/CMakeFiles/man_grgsm_livemon.rst.dir/progress.make
/usr/local/bin/gr-gsm/docs/grgsm_livemon.rst



Cinaed Simson

unread,
Jan 7, 2022, 3:16:57 PM1/7/22
to gr-...@googlegroups.com
Hi - try moving it back /home were it  was compiled.

-- Cinaed

Nikos Balkanas

unread,
Jan 8, 2022, 4:57:17 PM1/8/22
to josefh...@hushmail.com, gr-...@googlegroups.com
Hi Joe,

Best wishes for the New Year.

It's not a good idea to have build directories as root under /usr/local/bin
It's a security risk. Any cores you produce, can be read and access
sensitive root memory.
Not to mention that as root that as root if you accidentally do the
wrong chown, rmdir, or rm -rf you can destroy your Ubuntu:(
Best to build at home as user, and then "sudo make install"
The install directory you want it installed, is configured when you
run cmake. Defaults to /usr/local/bin

You obviously fixed your PATH to include /usr/local/bin/gr-gsm/apps/...
Livemon complains about your PYTHONPATH. What is that PYTONPATH?
My python gr-gsm is installed under
/usr/local/lib/python2.7/dist-packages/grgsm, not under python3!

Can you run a:
$ locate gsm_input.py

and post your output?

HTH
Nikos
> --
> You received this message because you are subscribed to the Google Groups "gr-gsm" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gr-gsm+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/gr-gsm/20220107153343.F3B9C80F327%40smtp.hushmail.com.

josefh...@hushmail.com

unread,
Jan 12, 2022, 10:08:44 AM1/12/22
to gr-...@googlegroups.com
Thank's a lot for your feedback Nikos! Very funny.. if I had I only had listen to you.. exacly the thing happend what you warned me of (rm) :(

After re-installing Ubuntu1604 i am back online :-)

->Can you run a:
->$ locate gsm_input.py

test@ub1604-GSM:~$ locate gsm_input.py
/home/test/gr-gsm/build/python/receiver/gsm_input.pyc
/home/test/gr-gsm/build/python/receiver/gsm_input.pyo
/home/test/gr-gsm/python/receiver/gsm_input.py
/home/test/gr-gsm/python/receiver/gsm_input.pyc
/usr/local/lib/python2.7/dist-packages/grgsm/gsm_input.py
/usr/local/lib/python2.7/dist-packages/grgsm/gsm_input.pyc
/usr/local/lib/python2.7/dist-packages/grgsm/gsm_input.pyo
test@ub1604-GSM:~$



[after re-installing and and using "sudo make install" there are even more interesting error-messages:]

test@ub1604-GSM:/usr/local/bin$ ls
grgsm_capture grgsm_channelize grgsm_decode grgsm_livemon grgsm_livemon_headless grgsm_scanner grgsm_trx

test@ub1604-GSM:/usr/local/bin$ sudo grgsm_livemon -h
Traceback (most recent call last):
File "/usr/local/bin/grgsm_livemon", line 29, in <module>
from grgsm import arfcn
File "/usr/local/lib/python2.7/dist-packages/grgsm/__init__.py", line 45, in <module>
from grgsm_swig import *
File "/usr/local/lib/python2.7/dist-packages/grgsm/grgsm_swig.py", line 28, in <module>
_grgsm_swig = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/grgsm/grgsm_swig.py", line 24, in swig_import_helper
_mod = imp.load_module('_grgsm_swig', fp, pathname, description)
ImportError: libgrgsm.so.0.42.2.: cannot open shared object file: No such file or directory



Thank's in advance for any help!

Joe
.
.
PS:
[I dont know if this is important to know, but it seems that there are several python versions installed.... and this on the newly installed 1604 Desktop installation...]
test@gsm-test:~$ sudo locate python | pg
/etc/python
/etc/python2.7
/etc/python3
/etc/python3.5
/etc/apparmor.d/abstractions/python
/etc/python/debian_config
/etc/python2.7/sitecustomize.py
/etc/python3/debian_config
/etc/python3.5/sitecustomize.py
/usr/bin/dh_python2
/usr/bin/dh_python3
/usr/bin/python
/usr/bin/python2
/usr/bin/python2.7
/usr/bin/python3
/usr/bin/python3.5
/usr/bin/python3.5m
/usr/bin/python3m
/usr/include/python3.5m
/usr/include/python3.5m/ImDib.h
/usr/include/python3.5m/ImPlatform.h
/usr/include/python3.5m/Imaging.h
/usr/lib/python2.7
/usr/lib/python3
/usr/lib/python3.5

Nikos Balkanas

unread,
Jan 12, 2022, 3:52:09 PM1/12/22
to josefh...@hushmail.com, gr-...@googlegroups.com
Hi Joe,

Indeed you seem to be using python2.7 not python3!
There are 2 python versions in each Ubuntu release, to support a lot
of different programs. This is normal.
Your PYTHONPATH should look like that:
PYTHONPATH=/usr/local/lib/python3.4/dist-packages:/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python2.7/site-packages
Substitute for the PYTHON versions in your distro.

You shouldn't run livemon with sudo. Same security concerns.
You should run livemon as a regular user, test in your case, from your
home directory, not /usr/local/bin.
I assume that /usr/local/bin is in your PATH.
All the rest seem like path issues.
It complains that it cannot find libgrgsm.so
Type (from the test account):

sudo find /usr/local -name "libgrgsm.so*"

and post the output
Should be under /usr/local/lib and /usr/local/lib64 (lib is a link
pointing to lib64)

cd /etc/ld.conf.d
cat libc.conf

Post output here.

HTH
Nikos

.


On Wed, Jan 12, 2022 at 5:08 PM josefh.maier via gr-gsm
> To view this discussion on the web visit https://groups.google.com/d/msgid/gr-gsm/20220112150842.0720080447E%40smtp.hushmail.com.

josefh...@hushmail.com

unread,
Jan 13, 2022, 10:20:40 AM1/13/22
to gr-...@googlegroups.com, nbal...@gmail.com
Thank's for the promt feedback Nikos!

->I assume that /usr/local/bin is in your PATH.
test@ub1604-GSM:~$ echo $PATH
/home/test/bin:/home/test/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/

->Your PYTHONPATH should look like that:
->PYTHONPATH=/usr/local/lib/python3.4/dist-packages:/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python2.7/site-packages

test@ub1604-GSM:~$ export PYTHONPATH=/usr/local/lib/python3.4/dist-packages:/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python2.7/site-packages

test@ub1604-GSM:~$ echo $PATH
/home/test/bin:/home/test/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin


->It complains that it cannot find libgrgsm.so
->Type (from the test account):
->sudo find /usr/local -name "libgrgsm.so*"
test@ub1604-GSM:~$ sudo find /usr/local -name "libgrgsm.so*"
[sudo] password for test:
/usr/local/lib/libgrgsm.so
/usr/local/lib/libgrgsm.so.0.42.2.
test@ub1604-GSM:/etc/ld.so.conf.d$


->cd /etc/ld.conf.d
->cat libc.conf
test@ub1604-GSM:/etc/ld.so.conf.d$ cat libc.conf

# libc default configuration
/usr/local/lib
test@ub1604-GSM:/etc/ld.so.conf.d$


Thank's and regards,
Joe


On 12.1.2022 at 9:52 PM, "Nikos Balkanas" <nbal...@gmail.com> wrote:
>
>Hi Joe,
>

Nikos Balkanas

unread,
Jan 13, 2022, 12:42:54 PM1/13/22
to josefh...@hushmail.com, gr-...@googlegroups.com
Everything looks good.
Last thing.

sudo ldconfig

To rebuild your library path cache.
Run again livemon, and post if still have problems

HTH
Nikos

josefh...@hushmail.com

unread,
Jan 14, 2022, 10:33:36 AM1/14/22
to gr-...@googlegroups.com, nbal...@gmail.com
Wow now it looks much better :) Thank you very very much Nikos for your help!!

Joe


test@ub1604-GSM:~$ grgsm_livemon -h
linux; GNU C++ version 5.3.1 20151219; Boost_105800; UHD_003.009.002-0-unknown

Usage: grgsm_livemon: [options]

Options:
-h, --help show this help message and exit
--args=ARGS Set Device Arguments [default=]
--collector=COLLECTOR
Set IP or DNS name of collector point
[default=localhost]
--collectorport=COLLECTORPORT
Set UDP port number of collector [default=4729]
-f FC, --fc=FC Set GSM channel's central frequency [default=941.8M]
-g GAIN, --gain=GAIN Set gain [default=30]
--osr=OSR Set OverSampling Ratio [default=4]
-p PPM, --ppm=PPM Set ppm [default=0]
-s SAMP_RATE, --samp-rate=SAMP_RATE
Set samp_rate [default=2M]
--serverport=SERVERPORT
Set UDP server listening port [default=4729]
-o SHIFTOFF, --shiftoff=SHIFTOFF
Set Frequency Shiftoff [default=400k]






On 13.1.2022 at 6:42 PM, "Nikos Balkanas" <nbal...@gmail.com> wrote:
>
>Everything looks good.
>Last thing.
>
>sudo ldconfig
>
>To rebuild your library path cache.
>Run again livemon, and post if still have problems
>
>HTH
>Nikos
>
>On Thu, Jan 13, 2022 at 5:20 PM <josefh...@hushmail.com> wrote:
>>
>> Thank's for the promt feedback Nikos!
>>
>> ->I assume that /usr/local/bin is in your PATH.
>> test@ub1604-GSM:~$ echo $PATH
>>
>/home/test/bin:/home/test/.local/bin:/usr/local/sbin:/usr/local/bin
>:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/
>>
>> ->Your PYTHONPATH should look like that:
>> ->PYTHONPATH=/usr/local/lib/python3.4/dist-
>packages:/usr/local/lib/python2.7/dist-
>packages:/usr/local/lib/python2.7/site-packages
>>
>> test@ub1604-GSM:~$ export
>PYTHONPATH=/usr/local/lib/python3.4/dist-
>packages:/usr/local/lib/python2.7/dist-
>packages:/usr/local/lib/python2.7/site-packages
>>
>> test@ub1604-GSM:~$ echo $PATH
>>
>/home/test/bin:/home/test/.local/bin:/usr/local/sbin:/usr/local/bin
>:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bi

Nikos Balkanas

unread,
Jan 14, 2022, 10:45:40 AM1/14/22
to josefh...@hushmail.com, gr-...@googlegroups.com
I am glad I could help:)

Nikos

Manchili Sambasiva Rao

unread,
Jul 14, 2022, 5:35:46 AM7/14/22
to gr-gsm
Greetings Nikos,

I have similar problem as Joe had. I had started a new thread " Problem after upgrade Kali to use grgsm". Is that right place for me to look for feedback or shall I update my problem here.
Any hints to get further is appreciated.
Thank you very much in advance.
Best Regards,

Nikos Balkanas

unread,
Jul 14, 2022, 9:05:43 AM7/14/22
to Manchili Sambasiva Rao, gr-gsm
Hi Manchili,

Yup. This is the right place for gr-gsm problems:)
Joe had several issues. Which one is yours?
Can you post some errors with your problem?

BR
Nikos
> To view this discussion on the web visit https://groups.google.com/d/msgid/gr-gsm/fbb7e7cd-73f5-41ce-8d97-e271b26dd2d4n%40googlegroups.com.

Manchili Sambasiva Rao

unread,
Jul 14, 2022, 11:47:39 AM7/14/22
to gr-gsm
Greetings Nikos,

grgsm_livemon was working earlier(2 years) ago on my Kali.
I had updated and upgraded in between and most recently with 2022.2. Now when I start grgsm_livemon it is not starting and gives the following output

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
/usr/local/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/local/bin/grgsm_livemon", line 37, in <module>
    from grgsm import arfcn
ModuleNotFoundError: No module named 'grgsm'
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

I had moved the gr-gsm to gr-gsm_old and again git cloned started with cmake but I get the following error.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
sudo apt-get remove gr-gsm
mkdir gr-gsm/build/
cd gr-gsm/build
cmake ../

-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so (found version "3.10.5")
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".                                                                        
 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<       

I had seen the above conversation but still I could not get further and all output for those commands that you had asked Joe are as follows for me.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
╰─$ echo $PATH                                                                                                                      1 ↵
/home/whitehat/bin:/usr/bin:/usr/local/bin:/opt/applic/httpd/bin:/opt/applic/firefox:/opt/applic/scripts:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

This variable PYTHONPATH was not existing, I exported on my shell as follows based on python versions on my machine.

export PYTHONPATH=/usr/local/lib/python3.10/dist-packages:/usr/local/lib/python3.9/dist-packages:/usr/local/lib/python3.8/dist-packages:/usr/local/lib/python3/dist-packages:/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python2.7/site-packages

╰─$ echo $PYTHONPATH
/usr/local/lib/python3.10/dist-packages:/usr/local/lib/python3.9/dist-packages:/usr/local/lib/python3.8/dist-packages:/usr/local/lib/python3/dist-packages:/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python2.7/site-packages

─$ sudo find /usr/local -name "libgrgsm.so*"
/usr/local/lib/x86_64-linux-gnu/libgrgsm.so.1.0.0git
/usr/local/lib/x86_64-linux-gnu/libgrgsm.so
/usr/local/lib/x86_64-linux-gnu/libgrgsm.so.v0.41.1-346-g2efa

$  locate gsm_input.py
/home/whitehat/Downloads/gr-gsm_old/build/python/receiver/gsm_input.pyc
/home/whitehat/Downloads/gr-gsm_old/build/python/receiver/gsm_input.pyo
/home/whitehat/Downloads/gr-gsm_old/python/receiver/gsm_input.py
/usr/local/lib/python3/dist-packages/grgsm/gsm_input.py
/usr/local/lib/python3/dist-packages/grgsm/gsm_input.pyc
/usr/local/lib/python3/dist-packages/grgsm/gsm_input.pyo

sudo ldconfig

Tried to start grgsm_livemon

/usr/local/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/local/lib/python3/dist-packages/grgsm/__init__.py", line 48, in <module>
    from .grgsm_swig import *
  File "/usr/local/lib/python3/dist-packages/grgsm/grgsm_swig.py", line 13, in <module>
    from . import _grgsm_swig
ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory

Traceback (most recent call last):
  File "/usr/local/bin/grgsm_livemon", line 37, in <module>
    from grgsm import arfcn
  File "/usr/local/lib/python3/dist-packages/grgsm/__init__.py", line 48, in <module>
    from .grgsm_swig import *
  File "/usr/local/lib/python3/dist-packages/grgsm/grgsm_swig.py", line 13, in <module>
    from . import _grgsm_swig
ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory

   <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<       

Any help to solve this is appreciated.
Thank you for your valuable time.
Regards,                                       

Nikos Balkanas

unread,
Jul 14, 2022, 12:42:43 PM7/14/22
to Manchili Sambasiva Rao, gr-gsm
Hi,

What is your gnuradio version?
How did you get grgsm to build with a cmake error?

BR
Nikos

On Thu, Jul 14, 2022 at 6:47 PM Manchili Sambasiva Rao
> To view this discussion on the web visit https://groups.google.com/d/msgid/gr-gsm/73f2659a-7112-454d-a21a-f9b53701e808n%40googlegroups.com.

Manchili Sambasiva Rao

unread,
Jul 14, 2022, 12:49:32 PM7/14/22
to gr-gsm
Hi Nikos,
gnuradio-config-info -v
3.10.2.0

Two years ago when I built it on Kali 2020.2, it was ok. Since now I had upgraded Kali in between couple of times. Only two days ago started again grgsm_livemon and then error popped up as mentioned in previous mail.

Regards,
Manchili

Nikos Balkanas

unread,
Jul 14, 2022, 1:07:34 PM7/14/22
to Manchili Sambasiva Rao, gr-gsm
Hi Mancili,

I didn't know that grgsm works with gnuradio 3.10...
Cmake complains about your gnuradio swig...
It should work with gnuradio 3.8.5
What about your cmake? How did you build grgsm?

BR
Nikos

On Thu, Jul 14, 2022 at 7:49 PM Manchili Sambasiva Rao
> To view this discussion on the web visit https://groups.google.com/d/msgid/gr-gsm/f9c35d68-11ad-4b58-9e98-9d029f64b74cn%40googlegroups.com.

Manchili Sambasiva Rao

unread,
Jul 14, 2022, 2:26:49 PM7/14/22
to gr-gsm
Hi Nikos,
Yes, you are right  grgsm is not yet ported to gnuradio 3.9.*
Velichkov mentioned contributions are welcome and he referred to Porting guide.... https://wiki.gnuradio.org/index.php/GNU_Radio_3.9_OOT_Module_Porting_Guide

Yes cmake is complaining about swig error.

Now, I have to build and install gnuradio 3.8.5 ? Will that work on Kali 2022.2.
Thank you for any tips and procedure.

Best Regards,
Manchili

Nikos Balkanas

unread,
Jul 14, 2022, 2:37:36 PM7/14/22
to Manchili Sambasiva Rao, gr-gsm
Hi,

You should install gnuradio 3.8.5.
You should also get the Velichkov patch, because git will fail to
detect volk libraries in cmake
and therefore miss gnuradio altogether:(
I am not sure about kali, I use Ubuntu.
But it should be fine if you compile it from sources.
You still haven't answered me. What was the /usr/local/lib/libgrgsm.so?
Was it your old grgsm? If so, you should always uninstall grgsm before
installing
new gnuradio or grgsm:)

BR
Nikos

On Thu, Jul 14, 2022 at 9:26 PM Manchili Sambasiva Rao
> To view this discussion on the web visit https://groups.google.com/d/msgid/gr-gsm/2a992359-09a6-4833-a8b4-06cae029ca08n%40googlegroups.com.

Vasil Velichkov

unread,
Jul 14, 2022, 3:37:18 PM7/14/22
to Manchili Sambasiva Rao, gr-gsm
Hi Manchili,

On 14/07/2022 19.49, Manchili Sambasiva Rao wrote:
> Hi Nikos,
> gnuradio-config-info -v
> 3.10.2.0

Try the main-3.10 branch from the bkerler's fork [1] and provide feedback (both positive and negative) in Pull Request [2].

[1] https://github.com/bkerler/gr-gsm/tree/maint-3.10
[2] https://github.com/ptrkrysik/gr-gsm/pull/600

Regards,
Vasil
>> https://groups.google.com/d/msgid/gr-gsm/73f2659a-7112-454d-a21a-f9b53701e808n%40googlegroups.com
>> .
>>
>

Manchili Sambasiva Rao

unread,
Jul 14, 2022, 3:45:00 PM7/14/22
to gr-gsm
Hi Nikos,
Sorry, for not answering your question. I did not get your question earlier.
libgrgsm.so is old one built in 2020.

> ls -lrt /usr/local/lib/x86_64-linux-gnu/libgrgsm.so
lrwxrwxrwx 1 root root 20 Jul 28  2020 /usr/local/lib/x86_64-linux-gnu/libgrgsm.so -> libgrgsm.so.1.0.0git

and installed gnuradio 3.8(Fallback)  https://wiki.gnuradio.org/index.php/InstallingGR#For_GNU_Radio_3.8_or_Earlier.  Building and installing successful.

gnuradio-config-info -v      
v3.8.5.0-6-g57bd109d

Uninstall grgsm is tricky as I am getting error
E: Unable to locate package gr-gsm

In the meantime I found this https://github.com/bkerler/gr-gsm  probably already ported that works with gnuradio 3.10 (?)  It is little later, I had found after uninstalling gnuradio 3.10 and downloading, building 3.8 and installing 3.8).

Best Regards,

Manchili Sambasiva Rao

unread,
Jul 14, 2022, 3:47:42 PM7/14/22
to gr-gsm
Hi Vasil,
Thank you for your inputs.
I had just fallen back to gnuradio 3.8.
Can I still take gr-gsm 3.10 and build and make ?

 Best Regards,

Vasil Velichkov

unread,
Jul 14, 2022, 3:49:50 PM7/14/22
to Manchili Sambasiva Rao, gr-gsm
Hi Manchili,

On 14/07/2022 22.47, Manchili Sambasiva Rao wrote:
> Can I still take gr-gsm 3.10 and build and make ?

No. You can't build main-3.10 with gnuradio 3.8 and vice versa. Depending on your gnuradio version you need to get the appropriate branch.

Regards,
Vasil

Manchili Sambasiva Rao

unread,
Jul 14, 2022, 3:54:41 PM7/14/22
to gr-gsm
Hi Vasil,
I tried to use 3.10 gr-gsm to cmake on gnuradio 3.8, obviously I got error

- Detecting C compile features - done
CMake Error at CMakeLists.txt:37 (find_package):
  Could not find a configuration file for package "Gnuradio" that is
  compatible with requested version "3.10".

  The following configuration files were considered but not accepted:

    /usr/local/lib/cmake/gnuradio/GnuradioConfig.cmake, version: 3.8.5.git
-- Configuring incomplete, errors occurred!

I will try again to uninstall 3.8 and install 3.10 and try and let you all know.
Cheers,

Manchili Sambasiva Rao

unread,
Jul 14, 2022, 4:40:20 PM7/14/22
to gr-gsm
Hi Vasil,
I uninstalled gnuradio 3.8.5  and downloaded sources and tried to build 3.10 but gave compilation error. Before building gnuradio, Installed Volk from sources. Process went smoothly.
Then instead of building from sources for gnuradio, I directly install gnuradio with apt install.

gnuradio-config-info -v                    
3.10.2.0

gr-gsm
cd gr-gsm
mkdir build
cd build
cmake .. mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/
make
sudo make install
sudo ldconfig

All went smooth.  Earlier (with https://github.com/ptrkrysik/gr-gsm)  I had problems in cmake.
So one step further, Thank you.

When I had started grgsm_livemon, I got errors.
grgsm_livemon
/usr/local/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/local/lib/python3/dist-packages/grgsm/__init__.py", line 48, in <module>
    from .grgsm_swig import *
  File "/usr/local/lib/python3/dist-packages/grgsm/grgsm_swig.py", line 13, in <module>
    from . import _grgsm_swig
ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/usr/local/bin/grgsm_livemon", line 37, in <module>
    from grgsm import arfcn
  File "/usr/local/lib/python3/dist-packages/grgsm/__init__.py", line 48, in <module>
    from .grgsm_swig import *
  File "/usr/local/lib/python3/dist-packages/grgsm/grgsm_swig.py", line 13, in <module>
    from . import _grgsm_swig
ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory



I tried to find whereis grgsm_livemon and date of the script. It showed from yesterday which is definitely wrong if make install executed successfully today.

ls -lrt /usr/local/bin/grgsm_livemon
-rwxr-xr-x 1 root root 15149 Jul 13 13:45 /usr/local/bin/grgsm_livemon

At the moment I am stuck here, small hurdle. It is no clear where I had done the mistake. In the whole process of grgsm cmake and make  and  make install did not throw any errors.

Cheers,

Manchili Sambasiva Rao

unread,
Jul 14, 2022, 5:13:03 PM7/14/22
to gr-gsm
Hi Vasil,
I tried to find date and timestamps of all grgsm_* executables.
All are fine, i.e.,  built today and installed except grgsm_livemo*

ls -lrt /usr/local/bin/grgsm_*
-rwxr-xr-x 1 root root 10011 Jul 28  2020 /usr/local/bin/grgsm_livemon_headless

-rwxr-xr-x 1 root root 15149 Jul 13 13:45 /usr/local/bin/grgsm_livemon
-rwxr-xr-x 1 root root  7311 Jul 14 22:21 /usr/local/bin/grgsm_channelize
-rwxr-xr-x 1 root root  7691 Jul 14 22:21 /usr/local/bin/grgsm_capture
-rwxr-xr-x 1 root root  5266 Jul 14 22:23 /usr/local/bin/grgsm_trx
-rwxr-xr-x 1 root root 35392 Jul 14 22:23 /usr/local/bin/grgsm_scanner
-rwxr-xr-x 1 root root 20293 Jul 14 22:23 /usr/local/bin/grgsm_decode

Any hint ?
Any other tests that I can do double check ?

Thank you for your time.
Cheers,

Manchili Sambasiva Rao

unread,
Jul 15, 2022, 10:55:43 AM7/15/22
to gr-gsm
Hi All,
I had cleaned and again make the grgsm from github(bkeler) maint-3.10_with_multiarfcn. This time I analysed the build process and few lines are as follows.

[  2%] Generating gsm_input.pyc, multiarfcns_receiver.pyc, fcch_burst_tagger.pyc, sch_detector.pyc, fcch_detector.pyc, chirpz.pyc
[  2%] Generating grgsm_livemon.1
[  3%] Building CXX object lib/CMakeFiles/gnuradio-gsm.dir/constants.cc.o
[  4%] Shebangin grgsm_capture
[  5%] Generating __init__.pyc
....
....
[ 97%] Building CXX object python/gsm/bindings/CMakeFiles/gsm_python.dir/python_bindings.cc.o
[ 98%] Linking CXX shared module gsm_python.cpython-310-x86_64-linux-gnu.so
[ 98%] Built target gsm_python
[100%] Shebangin grgsm_trx
[100%] Shebangin grgsm_scanner
[100%] Shebangin grgsm_decode
[100%] Built target copy_bindings_for_tests
[100%] Built target pygen_apps

I did not notice either Shebangin grgsm_livemon or Shebangin grgsm_livemon_headless. With this I can conclude to my understanding that grgsm_livemon is not being built on Kali 2022.2.
Is there a way to build it separately ? Any references are helpful.

Thank you.
Kind Regards,

Nikos Balkanas

unread,
Jul 15, 2022, 11:58:07 AM7/15/22
to Manchili Sambasiva Rao, gr-gsm
Hi Mancili,

Livemon is just a python script, built automatically from a .grc file.
It hasn't changed.
It is built by gnuradio-companion. This grc file is outdated and
doesn't even work
with gnuradio 3.8.5. Smn needs to update it, or if this is a problem,
stop generating it from grc
and install it directly from git:(
I just copied it from my previous gr-gsm into my new gr-gsm/apps.

HTH
Nikos

On Fri, Jul 15, 2022 at 5:55 PM Manchili Sambasiva Rao
> To view this discussion on the web visit https://groups.google.com/d/msgid/gr-gsm/ccbcfa85-5066-4518-bae4-be87b4b98ae3n%40googlegroups.com.

Manchili Sambasiva Rao

unread,
Jul 15, 2022, 12:34:52 PM7/15/22
to gr-gsm
Hi Nikos,
Thank you.
>> install it directly from git:(
>> I just copied it from my previous gr-gsm into my new gr-gsm/apps.
Can you please help me how to do that ?

Best Regards,

Vasil Velichkov

unread,
Jul 19, 2022, 5:20:48 AM7/19/22
to Manchili Sambasiva Rao, gr-gsm
Hi Manchili,

On 15/07/2022 17.55, Manchili Sambasiva Rao wrote:
> I did not notice either Shebangin grgsm_livemon or Shebangin
> grgsm_livemon_headless. With this I can conclude to my understanding that
> grgsm_livemon is not being built on Kali 2022.2.

Report all this in the pull request where bkeler's changes are being reviewed.

https://github.com/ptrkrysik/gr-gsm/pull/600

> Is there a way to build it separately ? Any references are helpful.

It is a gnuradio flowgraph, after installing gr-gsm you may open it using gnuradio companion and generate the pythong script (F5) or execute it (F6)

gnuradio-companion ./apps/grgsm_livemon.grc

Regards,
Vasil

Vasil Velichkov

unread,
Jul 19, 2022, 5:33:35 AM7/19/22
to Manchili Sambasiva Rao, gr-gsm
Hi Manchili,

On 15/07/2022 17.55, Manchili Sambasiva Rao wrote:
> I did not notice either Shebangin grgsm_livemon or Shebangin
> grgsm_livemon_headless. With this I can conclude to my understanding that
> grgsm_livemon is not being built on Kali 2022.2.

This seems to be a bug, open apps/CMakeLists.txt and uncomment line 29 (remove the leading #)

OPTION(ENABLE_GRCC "Compile the flowgraphs with grcc" ON)

Then remove your build directory and built from scratch.

Regards,
Vasil

Ahmed Ly27

unread,
Jun 29, 2023, 8:22:57 PM6/29/23
to gr-gsm
"please can someone help me"

 
how can i set the victim number in gr-gsm tool to sniff sms and opt code

"thank you"
Reply all
Reply to author
Forward
0 new messages