-
Notifications
You must be signed in to change notification settings - Fork 29
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
Can't run the backend with docker #287
Comments
Hello! Thanks for the issue. The gpiod error you're running into is due to the fact that gpiod is not supposed to be installed via pip at the moment and instead has to be installed as a system package via apt to be used using I don't think anyone has run the project with docker in a while so it might take some work to get that fully running, at the very least the docker-compose file will need to add volumes mounted for /etc/microlab and /var/lib/microlab for the microlabs configuration and recipe data to persist, not sure if there's anything else that's changed that might cause issues. |
I'll try to run it and fix those errors. @suspiciousRaccoon this "No such file or directory" error may be caused by GPIO device being unavailable. Are you running this on raspberry? If so - did you enable raspberry GPIO support/driver and uncomment docker-compose path mapping? |
Will be fixed by #296 |
/ᐠ. ̫ .ᐟ\ฅ heya!
I tried running the project with docker but there are a few problems.
TypeError: 'type' object is not subscriptable
This is the first error I encountered. A quick google search led me to this problem originating from the type hints. Older python versions had a different API, so they're not compatible with the dockerfile's python version. Upgrading the python version to 3.10 fixed this.
backend/api/server.py
imports the modulewaitress
, which isn't in the projectsrequirements.txt
, adding it fixes thisbackend/hardware/gpiochip/gpiod.py
imports the modulegpiod
, but when I added it torequirements.txt
I got a new error:I'm not really sure how to fix that
The changes I've done are in this branch
This should also probably go into another issue but the project is missing dependencies and all tests are passing.
The text was updated successfully, but these errors were encountered: