Describe the bug
Trying to follow the ReadTheDocs quick start guide and I get errors
To Reproduce
- Create new environment
- follow instructions in guide
Expected behaviour
Crashes as:
- Crashes missing package -
pip install labthings-fastapi doesn't install fastapi you need to run pip install labthings-fastapi[server]
- Once fixed, crashes again with missing package - After this is
uvicorn is never installed
- Once fixed, crashes again in wrong environment -
uvicorn counter:app --reload doesn't necessarily run uvicorn from the activated environment. Can be fixed by running python -m uvicorn counter:app --reload
- Once fixed crashes due to missing module -
from labthings_fastapi.thing_server import ThingServer should be from labthings_fastapi.server import ThingServer
- Once fixed crashes as attribute "app" is not found. Need to add
app = server.app as final line
Suggested fix
Create an GitHub action that does exactly the steps of the demo only and check that it runs successfully.
System:
- OS: Ubuntu 24.04
- Python version 3.10
- Version 0.0.7
Describe the bug
Trying to follow the ReadTheDocs quick start guide and I get errors
To Reproduce
Expected behaviour
Crashes as:
pip install labthings-fastapidoesn't installfastapiyou need to runpip install labthings-fastapi[server]uvicornis never installeduvicorn counter:app --reloaddoesn't necessarily run uvicorn from the activated environment. Can be fixed by runningpython -m uvicorn counter:app --reloadfrom labthings_fastapi.thing_server import ThingServershould befrom labthings_fastapi.server import ThingServerapp = server.appas final lineSuggested fix
Create an GitHub action that does exactly the steps of the demo only and check that it runs successfully.
System: