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

Opyrator launch-ui and launch-api throwing errors #48

Closed
arseniyturin opened this issue Mar 2, 2022 · 4 comments
Closed

Opyrator launch-ui and launch-api throwing errors #48

arseniyturin opened this issue Mar 2, 2022 · 4 comments
Labels
bug Something isn't working stale Awaiting input from creator for prolonged time period

Comments

@arseniyturin
Copy link

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

@arseniyturin arseniyturin added the bug Something isn't working label Mar 2, 2022
@felixmaechtle
Copy link

This seems to be a dependency issue. I got it working with pip3 install starlette==0.13.6 as a quick fix.

@edvin-svk
Copy link

+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.

@github-actions
Copy link

github-actions bot commented Aug 2, 2022

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

@github-actions github-actions bot added the stale Awaiting input from creator for prolonged time period label Aug 2, 2022
@edvin-svk
Copy link

Can we keep this open until solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Awaiting input from creator for prolonged time period
Projects
None yet
Development

No branches or pull requests

3 participants