daniestevez / gr-satellites

GNU Radio decoder for Amateur satellites
GNU General Public License v3.0
787 stars 163 forks source link

Unable to start gr_satellites - TypeError: function() argument 1 must be code, not str #363

Closed stefanpi1 closed 2 years ago

stefanpi1 commented 2 years ago

Hi, after buildng gr_satellites V4.6.0 from source without any problems, I get the following error-message when staring the program. Any ideas, what could have gone wrong? Any help very appreciated! 73, Stefan/oe6isp

pi@raspberrypi:/usr/bin $ ./gr_satellites -h Traceback (most recent call last):t-packages/satellites/telemetry/cute_70cm.py", line 86, in File "./gr_satellites", line 16, in import satellites.corement 1 must be code, not str File "/usr/local/lib/python3/dist-packages/satellites/init.py", line 49, in from .adsb_kml import adsb_kml File "/usr/local/lib/python3/dist-packages/satellites/adsb_kml.py", line 15, in from .telemetry import gomx_3 as tlm File "/usr/local/lib/python3/dist-packages/satellites/telemetry/init.py", line 30, in from .cute_70cm import cute_70cm File "/usr/local/lib/python3/dist-packages/satellites/telemetry/cute_70cm.py", line 86, in class FswParserState(Enum): TypeError: function() argument 1 must be code, not str pi@raspberrypi:/usr/bin $

daniestevez commented 2 years ago

Hi Stefan,

A couple of things:

  1. Can you paste again the output like this for proper formatting. Some things are being mangled and I'm not sure if I'm reading it correctly (in particular the import satellites.corement 1 must be code, not str message).
  2. What version of python-construct do you have installed?
stefanpi1 commented 2 years ago

Thanks a lot for your quick reply, which lead me to the solution immediately. I had construct 2.8 installed - upgraded to 2.10 and problem was gone.

(the messages are formatted this way, even when window is maximized. dont know why)

daniestevez commented 2 years ago

Perfect. Glad that you could solve this easily.