Giter Club home page Giter Club logo

Comments (9)

didi-home avatar didi-home commented on August 22, 2024 3

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.

abowerman avatar abowerman commented on August 22, 2024 3

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.

KathyReid avatar KathyReid commented on August 22, 2024

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.

atomicpapa avatar atomicpapa commented on August 22, 2024

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.

atomicpapa avatar atomicpapa commented on August 22, 2024

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.

atomicpapa avatar atomicpapa commented on August 22, 2024

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.

forslund avatar forslund commented on August 22, 2024

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.

skliarie avatar skliarie commented on August 22, 2024

Any plans to produce fixed docker container?

from docker-mycroft.

TheLastProject avatar TheLastProject commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.