grgsm-capture / grgsm-decode error.

925 views
Skip to first unread message

kti...@gmail.com

unread,
Sep 7, 2017, 10:09:21 AM9/7/17
to gr-gsm
Hello, everyone.
Could you help me please.
When i run either grgsm-capture or grgsm-decode i confront with such  problem:

File "/usr/local/bin/grgsm_capture", line 235, in <module>
    elif not grgsm.arfcn.is_valid_arfcn(options.arfcn, options.band):
TypeError: is_valid_arfcn() takes exactly 1 argument (2 given)

How can i get over it?



Also,  there is the same  Error when running grgsm-decode and its File  which are available from  ( https://github.com/ptrkrysik/gr-gsm/wiki/Usage:-Decoding-How-To ).
 #grgsm_decode -c vf_call6_a725_d174_g5_Kc1EF00BAB3BAC7002.cfile -s $((100000000/174)) -a 725 -m BCCH -t 0
      Traceback (most recent call last):
       File "/usr/local/bin/grgsm_decode", line 361, in <module>
       if grgsm.arfcn.is_valid_arfcn(arfcn, band):
       TypeError: is_valid_arfcn() takes exactly 1 argument (2 given)

T
hanks in advance
Best Regards,
Timur Karychev

Piotr Krysik

unread,
Sep 11, 2017, 5:07:48 AM9/11/17
to gr-...@googlegroups.com
W dniu 07.09.2017 o 16:09, kti...@gmail.com pisze:
Hi Timur,

This is result of me merging too quickly changes of arfcn module into
master branch. I did some work on making arfcn<->fc conversions more
robust but I haven't updated apps at that point. Try to pull the master
branch now - it should be better.

--
Best Regards,
Piotr Krysik

Fitsum J

unread,
Dec 6, 2017, 7:39:58 AM12/6/17
to gr-gsm

hello @Piotr Krysik.am a new bee to the grgsm and gnu radio thing but am working on a simple(if it is) project to DECODE A downlink channel BCCH to know the
location area,mobile network code,ARFCN and the like............ but i didnt get  much info on the internet.

but i got this BCCH 184 bits processing block



my question is,can i do the reverse of the above block on GNU RADIO COMPANION and get the 184bits??? Most importantly can i get the info like ARFCN,LAI,MNC and the like......... from those 184bits and HOW?????????

PLEASE PLEASE am waiting

With Regards
Fitshum J


 

Piotr Krysik

unread,
Jan 6, 2018, 8:25:58 AM1/6/18
to gr-...@googlegroups.com
W dniu 07.09.2017 o 16:09, kti...@gmail.com pisze:
Hi Timur,

What version of gr-gsm are you using?

Best Regards,
Piotr Krysik

zaqa...@gmail.com

unread,
Jul 7, 2018, 12:18:30 PM7/7/18
to gr-gsm
Mr Piotr Kkrysik , I'm still getting that error from the master branch,can you help ?
 

Vasil Velichkov

unread,
Jul 9, 2018, 11:38:12 AM7/9/18
to gr-gsm
Hi zaqangad,


On Saturday, July 7, 2018 at 7:18:30 PM UTC+3, zaqa...@gmail.com wrote:

On Monday, 11 September 2017 14:37:48 UTC+5:30, Piotr Krysik wrote:
W dniu 07.09.2017 o 16:09, kti...@gmail.com pisze:
> File "/usr/local/bin/grgsm_capture", line 235, in <module>
>     elif not grgsm.arfcn.is_valid_arfcn(options.arfcn, options.band):
> TypeError: is_valid_arfcn() takes exactly 1 argument (2 given) 
 
Mr Piotr Kkrysik , I'm still getting that error from the master branch,can you help ?

Most probably you have not updated your system correctly.
Which Linux distribution do you use and which version?
How did you install gr-gsm manually or using pybombs?

If you have installed gr-gsm manually, go to gr-gsm directory and execute

git checkout master
git pull
cd build
make
sudo make install
sudo ldconfig

Matej Kovacic

unread,
Jul 9, 2018, 2:56:29 PM7/9/18
to gr-...@googlegroups.com
Hi,

I also have some problems with grgsm update...

> git checkout master
> git pull
> cd build
> make

At this point I get this:

[ 87%] Built target pygen_python_demapping_99350
Scanning dependencies of target pygen_apps
[ 88%] Generating grgsm_livemon
Warning: Block with key "gsm_bcch_ccch_demapper" already exists.
Ignoring: /usr/local/share/gnuradio/grc/blocks/gsm_bcch_ccch_demapper.xml


(then a ton of warnings, but it is OK)

(And then:)

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:79: recipe for target
'apps/grgsm_livemon' failed
make[2]: *** [apps/grgsm_livemon] Error 1
CMakeFiles/Makefile2:1118: recipe for target
'apps/CMakeFiles/pygen_apps.dir/all' failed
make[1]: *** [apps/CMakeFiles/pygen_apps.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

Any idea what could be wrong? I am using Ubuntu 17.10.

> sudo make install
> sudo ldconfig

Regards,
Matej

Vasil Velichkov

unread,
Jul 9, 2018, 3:14:45 PM7/9/18
to gr-gsm
Hi Matej,


On Monday, July 9, 2018 at 9:56:29 PM UTC+3, Matej Kovacic wrote:
Hi,

I also have some problems with grgsm update...

> git checkout master
> git pull
> cd build
> make

At this point I get this:

[ 87%] Built target pygen_python_demapping_99350
Scanning dependencies of target pygen_apps
[ 88%] Generating grgsm_livemon
Warning: Block with key "gsm_bcch_ccch_demapper" already exists.
        Ignoring: /usr/local/share/gnuradio/grc/blocks/gsm_bcch_ccch_demapper.xml


These warnings are harmless and you could safely ignore them.
 

(then a ton of warnings, but it is OK)

(And then:)

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:79: recipe for target
'apps/grgsm_livemon' failed
make[2]: *** [apps/grgsm_livemon] Error 1
CMakeFiles/Makefile2:1118: recipe for target
'apps/CMakeFiles/pygen_apps.dir/all' failed
make[1]: *** [apps/CMakeFiles/pygen_apps.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

Most probably gr-osmosdr package is not installed, try installing it from the apt repository (apt-get install gr-osmosdr) and if it still fails please upload the whole output somewhere (pastebin, dropbox, ....) and provide a link to it.
 
Any idea what could be wrong? I am using Ubuntu 17.10.

How did you install gnuradio and all other dependencies - from the apt repository or using pybombs?

Matej Kovacic

unread,
Jul 9, 2018, 5:23:08 PM7/9/18
to gr-...@googlegroups.com
Hi,

> Most probably gr-osmosdr package is not installed, try installing it
It is.


> How did you install gnuradio and all other dependencies - from the apt
> repository or using pybombs?
In fact, I already have installed grgsm, from previous versions of
Ubuntu (which has been upgraded then). Now I want just to upgrade it.

Regards,

M.

Vasil Velichkov

unread,
Jul 9, 2018, 5:28:53 PM7/9/18
to gr-gsm
Hi,
Upload the whole output somewhere (pastebin, dropbox, ....) and provide a link to it.


How did you installed the previous version manually or using pybombs?
How did you installed gnuradio manually or using pybombs?
Note that if you have installed them using pybombs you need to install gr-osmosdr using pybombs as well.

Matej Kovacic

unread,
Jul 9, 2018, 5:33:08 PM7/9/18
to gr-...@googlegroups.com
Hi,

> How did you installed the previous version manually or using pybombs?
Pybombs.

> How did you installed gnuradio manually or using pybombs?
> Note that if you have installed them using pybombs you need to install
> gr-osmosdr using pybombs as well.
I tried, but got error:

-- SoapySDR version: v0.6.1-g285e72aa
-- ABI/so version: v0.6
-- Install prefix: /usr/local
-- Configuring incomplete, errors occurred!
See also "/usr/local/src/soapysdr/build/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/soapysdr/build/CMakeFiles/CMakeError.log".
PyBOMBS.Packager.source - ERROR - Configuration failed after running at
least twice.
PyBOMBS.Packager.source - ERROR - Problem occurred while building
package soapysdr:
Configuration failed
PyBOMBS.install_manager - ERROR - Error installing package soapysdr.
Aborting.

Anyway, I think I am gonna reinstall the whole computer. The problem is,
I am just updating to newer Ubuntu version for a several years, testing
some software, etc., and have other problems as well. Probably fresh
install would be the easiest solution.

Regards,
M.

Vasil Velichkov

unread,
Jul 9, 2018, 5:37:51 PM7/9/18
to gr-gsm
Hi,


On Tuesday, July 10, 2018 at 12:33:08 AM UTC+3, Matej Kovacic wrote:
Hi,

> How did you installed the previous version manually or using pybombs?
Pybombs.


That explains why installing gr-osmosdr from the ubuntu repository did not help.
 
> How did you installed gnuradio manually or using pybombs?
> Note that if you have installed them using pybombs you need to install
> gr-osmosdr using pybombs as well.
I tried, but got error:

-- SoapySDR version: v0.6.1-g285e72aa
-- ABI/so version: v0.6
-- Install prefix: /usr/local
-- Configuring incomplete, errors occurred!
See also "/usr/local/src/soapysdr/build/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/soapysdr/build/CMakeFiles/CMakeError.log".
PyBOMBS.Packager.source - ERROR - Configuration failed after running at
least twice.
PyBOMBS.Packager.source - ERROR - Problem occurred while building
package soapysdr:
Configuration failed
PyBOMBS.install_manager - ERROR - Error installing package soapysdr.
Aborting.

Again, provide the whole output :)
 

Anyway, I think I am gonna reinstall the whole computer. The problem is,
I am just updating to newer Ubuntu version for a several years, testing
some software, etc., and have other problems as well. Probably fresh
install would be the easiest solution.

If you are going to reinstall please do not use pybombs but rather install the gnuradio and all other dependencies from the ubuntu repository and compile it manually. See our docker files for reference  https://github.com/ptrkrysik/gr-gsm/blob/2471052cfe724699c8bd2d4fec20d7f194cf6bb9/tests/dockerfiles/Ubuntu_16_04.docker
 

Cinaed Simson

unread,
Jul 10, 2018, 12:55:52 PM7/10/18
to gr-...@googlegroups.com
I think had the same issue. And I couldn't

make uninstall

my previous version before I started the current build,

If you look in

./gr-gsm/build

you should see another build directory

./gr-gsm/build/build

with may be normal - with only one subdirectory

./gr-gsm/build/build/app

but it looks screwy.

If true then you may have the issue I had.

In any case, after the error, try

make install

I think I may have removed gr-gsm by hand - or at least part of it - and
I was able to get to build and install.

My first is guess is there may be something wrong with the cmake
configuration for gr-gsm - but then I know very little about cmake.

-- Cinaed

Matej Kovacic

unread,
Jul 13, 2018, 2:48:33 PM7/13/18
to gr-...@googlegroups.com
Hi,

> Again, provide the whole output :)
Sorry, it took some time, since I was busy with other things. Output is
here:

https://0bin.net/paste/J1S2WWgar7BpP7PR#fHF199J7cLPa758GiZQUFlOyVf14NgL79S4zwZo76a6

I was unable to load it into Pastebin since it is too large...

Regards,
M.
--
PGP Fingerprint: EBA8 0F17 24C4 17EA C4D2 2222 01B8 BBC8 FBF6 FFAD
PGP Key:
https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x01B8BBC8FBF6FFAD
Personal blog: https://telefoncek.si

Vasil Velichkov

unread,
Jul 13, 2018, 2:56:28 PM7/13/18
to gr-...@googlegroups.com
Hi,

On 13.07.2018 21:48, 'Matej Kovacic' via gr-gsm wrote:
https://0bin.net/paste/J1S2WWgar7BpP7PR#fHF199J7cLPa758GiZQUFlOyVf14NgL79S4zwZo76a6

This output is from the manual compilation of gr-gsm.
Warning: Block with key "zeromq_sub_source" already exists.
	Ignoring: /usr/local/share/gnuradio/grc/blocks/zeromq_sub_source.xml
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.

as expected the rtlsdr_source block is not found,

matej@cryptoloop:~/gr-gsm/build$ sudo make install

You can't install if compilation fails.

Now try to install gr-osmosdr using pybombs and if it fails provide the whole output.

Matej Kovacic

unread,
Jul 13, 2018, 4:59:19 PM7/13/18
to gr-...@googlegroups.com
Hi,

> Now try to install gr-osmosdr using pybombs and if it fails provide the
> whole output.
It is here:

https://0bin.net/paste/W+yUASsBNwhHc8Kd#sFEj6opxpmZ1+UckZP7xBDn1QssZ5GDz8O4thBN3nW8

Vasil Velichkov

unread,
Jul 14, 2018, 6:42:52 AM7/14/18
to gr-...@googlegroups.com

Hi Matej,


On 13.07.2018 23:59, 'Matej Kovacic' via gr-gsm wrote:
https://0bin.net/paste/W+yUASsBNwhHc8Kd#sFEj6opxpmZ1+UckZP7xBDn1QssZ5GDz8O4thBN3nW8

-- PYTHON3_EXECUTABLE: /usr/bin/python3
Failed to import the site module
Error processing line 1 of /usr/lib/python3/dist-packages/keyrings.alt-2.2-nspkg.pth:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site.py", line 174, in addpackage
    exec(line)
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.6/types.py", line 171, in <module>
    import functools as _functools
  File "/usr/lib/python3.6/functools.py", line 21, in <module>
    from collections import namedtuple
  File "/usr/lib/python3.6/collections/__init__.py", line 32, in <module>
    from reprlib import recursive_repr as _recursive_repr
  File "/usr/local/lib/python2.7/dist-packages/reprlib/__init__.py", line 7, in <module>
    raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site.py", line 561, in <module>
    main()
  File "/usr/lib/python3.6/site.py", line 548, in main
    known_paths = addsitepackages(known_paths)
  File "/usr/lib/python3.6/site.py", line 345, in addsitepackages
    addsitedir(sitedir, known_paths)
  File "/usr/lib/python3.6/site.py", line 213, in addsitedir
    addpackage(sitedir, name, known_paths)
  File "/usr/lib/python3.6/site.py", line 184, in addpackage
    import traceback
  File "/usr/lib/python3.6/traceback.py", line 3, in <module>
    import collections
  File "/usr/lib/python3.6/collections/__init__.py", line 32, in <module>
    from reprlib import recursive_repr as _recursive_repr
  File "/usr/local/lib/python2.7/dist-packages/reprlib/__init__.py", line 7, in <module>
    raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
-- PYTHON3_INSTALL_DIR: ${prefix}/
-- PYTHON3LIBS_FOUND: TRUE
-- PYTHON3_INCLUDE_DIRS: /usr/include/python3.5m
-- PYTHON3_LIBRARIES: /usr/lib/x86_64-linux-gnu/libpython3.5m.so
-- CMAKE_SWIG_FLAGS=-c++;-threads
CMake Error at python3/CMakeLists.txt:87 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "_SoapySDR3".

The SoapySDR and python3 problem:

https://github.com/gnuradio/gr-recipes/issues/91
https://github.com/ptrkrysik/gr-gsm/issues/374#issuecomment-365394881

You need to update your pybombs receipts
pybombs recipes update
then double check that soapysdr.lwr contains (https://github.com/gnuradio/gr-recipes/commit/fade356837b822264d72697e851b860fb92fa827)
vars:
  config_opt: ' -DENABLE_PYTHON3=OFF '
and then try installing gr-osmosdr with pybombs again.

S50AE

unread,
May 8, 2022, 4:45:42 PM5/8/22
to gr-gsm
i have some problems with when i do make i get this error 

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/gr-gsm/python/grgsm/__init__.py", line 64, in <module>
    from .device import *
  File "/root/gr-gsm/python/grgsm/misc_utils/device.py", line 24, 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"

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 "/root/gr-gsm/python/grgsm/__init__.py", line 64, in <module>
    from .device import *
  File "/root/gr-gsm/python/grgsm/misc_utils/device.py", line 24, 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"

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 "/root/gr-gsm/python/grgsm/__init__.py", line 64, in <module>
    from .device import *
  File "/root/gr-gsm/python/grgsm/misc_utils/device.py", line 24, 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"
>>> Load Error: /root/gr-gsm/apps/grgsm_livemon.grc: Flowgraph invalid
Compilation error
make[2]: *** [apps/CMakeFiles/pygen_apps.dir/build.make:97: apps/grgsm_livemon] Error 1
make[1]: *** [CMakeFiles/Makefile2:864: apps/CMakeFiles/pygen_apps.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
sobota, 14. julij 2018 ob 12:42:52 UTC+2 je oseba vvvel...@gmail.com napisala:
Reply all
Reply to author
Forward
0 new messages