Comments (9)
Hi there,
I wanted to use the docker container for my first Mycroft-tryout :-) But I got the same error message.
However, I managed to get the CLI working (./start-mycroft.sh cli) inside the container by changing the ./start-mycroft.sh script (*)
As @forslund suggested, the venv is not started because inside the script is a check for "/.dockerenv" that prevents it.
I also noticed that the current Dockerfile has a RUN at the end that explicitly starts the venv, but the ENTRYPOINT does not.
(*) = I created my own container with a Dockerfile
FROM mycroftai/docker-mycroft:latest
RUN sed -i 's/dockerenv/dockerenvnot/g' /opt/mycroft/start-mycroft.sh
I'm still not sure if everything works, but now it starts 4 python services at least :-)
EDIT: I can happily confirm that I managed to register the container on home.mycroft.ai and it seems to work, apart from me having trouble with pulseaudio :-)
from docker-mycroft.
Not sure what the root issues are but I was able to get setup by running the following on the container:
./dev_setup.sh --allow-root
chmod +x ./venv-activate.sh
source ./venv-activate.sh
./start-mycroft.sh all
./start-mycroft.sh cli
You can run ./start-mycroft.sh debug
instead as mentioned Here
from docker-mycroft.
Hi there @atomicpapa, thanks for reporting this.
I had someone on our Chat - https://chat.mycroft.ai - report something similar earlier today.
The diagnostics we did there indicated that the Python environment they were running had version 2.21.0
of requests
, but Mycroft requires version 2.20.0
.
Can you do pip3 list | grep requests
to see which version of requests
you have installed?
from docker-mycroft.
inside the container I am getting an error that pip is not found
outside the container I am running requests 2.9.1
from docker-mycroft.
I upgraded requests outside the container to 2.20.0 and I am still getting the error, so it has to be inside the container and pip doesn't exist inside the container
from docker-mycroft.
Managed to get requests 2.20.0 installed hy using pip3 instead of pip but then it errored out on inflection, psutil and dateutil. First 2 installed fine but...
ModuleNotFoundError: No module named 'dateutil'
root@225ef0207844:/opt/mycroft# pip3 install dateutil
Collecting dateutil
Could not find a version that satisfies the requirement dateutil (from versions: )
No matching distribution found for dateutil
from docker-mycroft.
Hi, my guess is that either the virtualenv isn't started before running the startup-script or the requirements aren't being installed properly. I'll try an install later and see what I can do to help.
from docker-mycroft.
Any plans to produce fixed docker container?
from docker-mycroft.
This should've been fixed in b18034c, which is currently pending a push to Docker Hub. Please reopen if I'm wrong.
from docker-mycroft.
Related Issues (20)
- Freezes during docker build HOT 3
- Is this project maintained? HOT 2
- Switch to Alpine? HOT 1
- Add instructions for setting up TTS HOT 5
- Config not stored in external value, need to reconnect to home.mycroft.ai after container restart HOT 2
- MAC Docker Pulse Audio How to HOT 2
- Not working on arm HOT 12
- .dockerenv does not exist HOT 6
- [REQUEST] docker for arm64 HOT 3
- ALSA dies after a while HOT 4
- Could please if possible provide the instruction to pull and run the docker image of mycroft on MacOS? HOT 1
- docker-mycroft connection refused HOT 2
- docker build fails with "ERROR: Command errored out with exit status 1" HOT 3
- Mycroft Docker - Error after updates HOT 3
- Docker image error: "pa_context_connect() failed: Connection refused" with audiotest HOT 3
- common play framework fails to play audio: No service found for uri_type: https
- Update to latest mycroft-core version / automatic builds
- Error installing Krunner Search HOT 1
- HTTP 404: Not Found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-mycroft.