Skip to content

Update IDOM Sanic Requirement #678

Description

@rmorshea

It turns out that IDOM requires Sanic>19,<19.12. This is a slim range of versions because of this issue

Discussed in #674

Originally posted by gebrian0 February 16, 2022

>>> import idom
>>> from idom import component, html, run
>>> 
>>> 
>>> @component
... def App():
...     return html.h1("Hello, ddWorld!")
... 
>>> 
>>> run(App)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/site-packages/idom/server/prefab.py", line 58, in run
    server = server_type(component, server_config, app)
  File "/usr/local/lib/python3.9/site-packages/idom/server/sanic.py", line 74, in PerClientStateServer
    return SanicServer(app)
  File "/usr/local/lib/python3.9/site-packages/idom/server/sanic.py", line 111, in __init__
    app.register_listener(self._server_did_start, "after_server_start")
AttributeError: 'Sanic' object has no attribute 'register_listener'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions