Opyrator launch-ui and launch-api throwing errors
In the fresh environment, using Python 3.9.7 on macOS Monterey 12.2.1 (x86) (tested on M1 chip, same issues) No extra packages were installed, only Opyrator and its dependencies
The code I'm trying to run:
from pydantic import BaseModel
class Input(BaseModel):
message: str
class Output(BaseModel):
message: str
def hello_world(input: Input) -> Output:
"""Returns the `message` of the input data."""
return Output(message=input.message)
Issue #1
$ opyrator launch-ui my_opyrator:hello_world
ModuleNotFoundError: No module named 'streamlit.report_thread'
Issue #2
$ opyrator launch-api my_opyrator:hello_world
ImportError: cannot import name 'graphql' from 'starlette' (/Users/sean/python_envs/opyrator-env/lib/python3.9/site-packages/starlette/init.py)
Problem with streamlit (streamlit==1.6.0)
Some folks on the internet suggest downgrading streamlit, but it seems like the issue still persists. I've looked into the package itself and didn't find either report_thread.py or "report_thread" in the python files
This seems to be a dependency issue. I got it working with pip3 install starlette==0.13.6 as a quick fix.
+1. One fails on the first thing on "Getting started"... I downgraded streamlit to 1.3.1 and starlette to 0.13.6 as suggested by @felixmaechtle, now the Getting started works.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days
Can we keep this open until solved?