Skip to content

Fixed missing __init__.py causing module not found + "TypeError: must be str, not bytes"#55

Merged
sobomax merged 7 commits intosippy:masterfrom
andrewvmail:master
Mar 4, 2025
Merged

Fixed missing __init__.py causing module not found + "TypeError: must be str, not bytes"#55
sobomax merged 7 commits intosippy:masterfrom
andrewvmail:master

Conversation

@andrewvmail
Copy link
Contributor

@andrewvmail andrewvmail commented Feb 21, 2025

Running b2bua_radius after installation causes a crash with strack trace below.

Traceback (most recent call last):
  File "/home/andrew/.pyenv/versions/3.10.14/bin/b2bua_radius", line 5, in <module>
    from sippy.b2bua_radius import main_func
  File "/home/andrew/.pyenv/versions/3.10.14/lib/python3.10/site-packages/sippy/b2bua_radius.py", line 50, in <module>
    from sippy.Rtp_proxy.session import Rtp_proxy_session
  File "/home/andrew/.pyenv/versions/3.10.14/lib/python3.10/site-packages/sippy/Rtp_proxy/session.py", line 38, in <module>
    from sippy.Rtp_proxy.Cmd.sequencer import Rtp_proxy_cmd_sequencer
ModuleNotFoundError: No module named 'sippy.Rtp_proxy.Cmd'

@andrewvmail andrewvmail changed the title Fixed missing __init__.py causing module not find installing from pip Fixed missing __init__.py causing module not found Feb 21, 2025
@andrewvmail andrewvmail changed the title Fixed missing __init__.py causing module not found Fixed missing __init__.py causing module not found + "TypeError: must be str, not bytes" Feb 21, 2025
@andrewvmail
Copy link
Contributor Author

When running b2bua_radius configured with a radiusclient, the application will output below error.

Traceback (most recent call last):
  File "/Users/momo/.local/bin/b2bua_radius", line 8, in <module>
    sys.exit(main_func())
             ~~~~~~~~~^^
  File "/Users/momo/.local/pipx/venvs/sippy/lib/python3.13/site-packages/sippy/b2bua_radius.py", line 901, in main_func
    ED2.loop()
    ~~~~~~~~^^
  File "/Users/momo/.local/pipx/venvs/sippy/lib/python3.13/site-packages/sippy/Core/EventDispatcher.py", line 275, in loop
    self.elp.procrastinate()
    ~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/momo/.local/pipx/venvs/sippy/lib/python3.13/site-packages/elperiodic/ElPeriodic.py", line 120, in procrastinate
    self._elpl.prdic_procrastinate(self._hndl)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyboardInterrupt

@sobomax sobomax merged commit dc8c673 into sippy:master Mar 4, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants