MycroftAI / documentation

Mycroft.AI documentation for all public facing technical components.
https://mycroft.ai/documentation
Apache License 2.0
80 stars 91 forks source link

mycroft-pip install #143

Open krisgesling opened 4 years ago

krisgesling commented 4 years ago

Dependencies section needs to include info on manually installing python packages to the Mycroft virtual environment using mycroft-pip install

fidesachates commented 4 years ago

I'm developing a skill and I created a requirements.txt as per documentation, but the skill was complaining it couldn't find the module. It wasn't until I did as you alluded by calling mycroft-pip install did the skill work.

When does requirements.txt get evaluated? I restarted the mycroft service, but it still seemed my packages in requirements.txt still were not installed. Relatedly, after I mycroft-pip installed the deps, deleting the requirements.txt file did not impact functionality. I'm guessing this means requirements.txt only get processed when the skill gets installed and changes to it are not reflected?

forslund commented 4 years ago

The requirements.txt is parsed and the deps in it is installed at skill install time. Basically when msm installs the skill into the mycroft venv the requirements.txt or manifest.yml is parsed and pip is executed accordingly.

Currently the installed dependencies aren't tracked by msm so the installed dependencies would need to be manually removed from the mycroft venv.