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: 1 comment
-
|
Apologies for the late response - ReactPy v2 is in the process of replacing v1 precisely due to dependency issues like this. Version 2 is still in open beta, primarily due to the fact that I want to release it alongside overhauled documentation. This version can be installed with the following command: If you wish to remain on v1 for now, then I'd recommend manually downgrading your version of uvicorn. |
Beta Was this translation helpful? Give feedback.
0 replies
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_loopmethod was replaced byget_loop_factoryin 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