Skip to content

[BUG] wifibroadcast@gs service fails on Ubuntu 22.04.5 LTS with Python 3.10.12 #445

@sealfoss

Description

@sealfoss

Describe the bug
wifibroadcast@gs service fails with the following error:

Dec 20 03:12:54 orion bash[11657]: sys.exit(load_entry_point('wfb-ng==25.11.6.55234', 'console_scripts', 'wfb-server')())
Dec 20 03:12:54 orion bash[11657]: File "/usr/lib/python3/dist-packages/wfb_ng/server.py", line 323, in main
Dec 20 03:12:54 orion bash[11657]: log.msg(description)
Dec 20 03:12:54 orion bash[11657]: File "/usr/lib/python3/dist-packages/wfb_ng/init.py", line 165, in _log_msg
Dec 20 03:12:54 orion bash[11657]: module, func = __find_caller(2)
Dec 20 03:12:54 orion bash[11657]: File "/usr/lib/python3/dist-packages/wfb_ng/init.py", line 117, in __find_caller
Dec 20 03:12:54 orion bash[11657]: fname = f.f_code.co_qualname
Dec 20 03:12:54 orion bash[11657]: AttributeError: 'code' object has no attribute 'co_qualname'. Did you mean: 'co_filename'?
Dec 20 03:12:54 orion systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE

To Reproduce
Install wfb-ng, attempt to start wifibroadcast@gs.

Expected behavior
wifibroadcast@gs not to fail.

Your setup (please complete the following information):

  • OS: Ubuntu 22.04.5 LTS, Nvidia Jetpack 6.2.1+b38, kernal 5.15.148-tegra
  • Hardware: Nvidia Jetson Orin-NX devkit.
  • WiFi cards: rtl8812au
  • WiFi drivers: rtl88xxau_wfb

Additional context
I believe this to be a problem specifically w/ python 3.10, which is (and seems shall be) a requirement for all Nvidia Jetson devices released earlier than the new Jetson Thor product line. I've already fixed the problem locally.

Assuming ending support for python 3.10 wasn't intentional, you can fix this problem with the following change to line 117 of /usr/lib/python3/dist-packages/wfb_ng/init.py:

#fname = f.f_code.co_qualname
fname = f.f_code.co_name

Confirm you read

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions