unable to run simple app - error : The setup_event_loop
method was replaced by get_loop_factory
in uvicorn 0.36.0
#1304
Unanswered
rameshiyerv
asked this question in
Problem
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Team!
Really looking forward to use this library for our UI development.
Here is some starting trouble we are facing...
Successfully installed package using conda

simple app as shown in the examples
`from reactpy import component, html, run
@component
def APP():
return html.h1("Hello, world!")
run(APP)`
Error while running the app:
File "/home/iyerram/anaconda3/envs/reactpy/lib/python3.14/site-packages/reactpy/backend/_common.py", line 44, in serve_with_uvicorn
server.config.setup_event_loop()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/iyerram/anaconda3/envs/reactpy/lib/python3.14/site-packages/uvicorn/config.py", line 479, in setup_event_loop
raise AttributeError(
...<3 lines>...
)
AttributeError: The
setup_event_loop
method was replaced byget_loop_factory
in uvicorn 0.36.0.full trace

environment
building using vscode, WSL on a win 11, conda for environment management
Beta Was this translation helpful? Give feedback.
All reactions