[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1109934: gr-satellites: Varlen blocks do not work in GNU Radio (wrong type: int instead of endianness_t)



Package: gr-satellites
Version: 5.5.0-2+b13
Severity: normal
Tags: patch
X-Debbugs-Cc: s404.gordon@gmail.com

Dear Maintainer,

I've tried to use "Variable length packet framer" and "Variable length packet tagger" blocks in my GNU Radio flowchart. But I get this error:

Traceback (most recent call last):
  File "/home/evgeny/SX-SDR/sx_usp.py", line 736, in <module>
    main()
    ~~~~^^
  File "/home/evgeny/SX-SDR/sx_usp.py", line 713, in main
    tb = top_block_cls()
  File "/home/evgeny/SX-SDR/sx_usp.py", line 248, in __init__
    self.satellites_varlen_packet_framer_0 = satellites.varlen_packet_framer('packet_len', 16, int(gr.GR_MSB_FIRST), False, (0,0,0,0,1,0,0,0,1,1,1,1,1,1,1,1))
                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
    1. satellites.satellites_python.varlen_packet_framer(packet_key: str, length_field_size: int, endianness: gnuradio.gr.gr_python.endianness_t, use_golay: bool, sync_word: list[int])

Invoked with: 'packet_len', 16, 0, False, (0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1)

I expected no error.

I found a solution here: https://github.com/daniestevez/gr-satellites/commit/e252153dfeedcdfc0bbc476b469336296fff2f9d

Tried it and it worked!

I don't know how to include a proper patch (using this reportbug tool first time, looks... unfamiliar), but I think link to github commit will count, so adding a "patch" tag.

Thank you!

-- System Information:
Debian Release: 13.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.38+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gr-satellites depends on:
ii  feh                                  3.10.3-1
ii  libc6                                2.41-10
ii  libgcc-s1                            14.2.0-19
ii  libgnuradio-blocks3.10.12            3.10.12.0-1
ii  libgnuradio-pmt3.10.12               3.10.12.0-1
ii  libgnuradio-runtime3.10.12           3.10.12.0-1
ii  libgnuradio-satellites5.5.0          5.5.0-2+b13
ii  libstdc++6                           14.2.0-19
ii  python3                              3.13.5-1
ii  python3-construct                    2.10.68+dfsg1-2
ii  python3-numpy [python3-numpy2-abi0]  1:2.2.4+ds-1
ii  python3-requests                     2.32.3+dfsg-5
ii  python3-websocket                    1.8.0-2

gr-satellites recommends no packages.

gr-satellites suggests no packages.

-- no debconf information


Reply to: