Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with Sanic framework #208

Open
synergiator opened this issue Mar 25, 2025 · 0 comments
Open

Integration with Sanic framework #208

synergiator opened this issue Mar 25, 2025 · 0 comments

Comments

@synergiator
Copy link

synergiator commented Mar 25, 2025

Is there a reason not to implement a prototype wrapper of the Janus with Sanic framework? A similar torch-based setup worked but here happens the following, without custom code on the nested level where the error comes from:

Main  2025-03-22 15:18:55 +0000 INFO: packages: sanic-routing==23.12.0, sanic-ext==24.12.0
Traceback (most recent call last):
  File "/service/modules/rest_api.py", line 258, in <module>
    app.run(host="0.0.0.0", port=5000)
    ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/service/venv/lib/python3.13/site-packages/sanic/mixins/startup.py", line 282, in run
    serve(primary=self)  # type: ignore
    ~~~~~^^^^^^^^^^^^^^
  File "/service/venv/lib/python3.13/site-packages/sanic/mixins/startup.py", line 994, in serve
    cls._set_startup_method()
    ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/service/venv/lib/python3.13/site-packages/sanic/mixins/startup.py", line 928, in _set_startup_method
    raise RuntimeError(
    ...<3 lines>...
    ) from None
RuntimeError: Start method 'spawn' was requested, but 'fork' was already set.

Same issue reposted in Sanic repo: sanic-org/sanic#3045

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

No branches or pull requests

1 participant