documentation icon indicating copy to clipboard operation
documentation copied to clipboard

VM setup guide not mentioning venv activation?

Open joshuajaharwood opened this issue 4 years ago • 4 comments

I've been following the VM guide for installing Mycroft to develop some skills (and maybe mycroft-core), and noticed that the page doesn't mention that you have to activate the virtual environment first. It isn't activated automatically and starting mycroft services without it being activated causes package manager errors.

Could somebody else confirm/deny this, please? If it is an issue, I'll correct the instructions :)

Thanks!

joshuajaharwood avatar Sep 23 '20 13:09 joshuajaharwood

You shouldn't (TM) need to manually activate the venv, the start script should handle that automatically.

If you're getting errors during startup there may be a bug...

forslund avatar Sep 23 '20 14:09 forslund

Hi Joshua, can you post the commands you used and the output you got?

Also can you confirm the OS you're running and which version of VirtualBox?

krisgesling avatar Sep 24 '20 02:09 krisgesling

Commands

  • sudo apt update
  • sudo apt upgrade
  • sudo apt install alsa pulseaudio
  • git clone https://github.com/MycroftAI/mycroft-core.git
  • cd mycroft-core
  • ./dev_setup.sh -fm
  • n - unstable branches (happens on stable AND unstable)
  • y
  • y
  • y
  • enter, y
  • sudo reboot
  • mycroft-start all
  • mycroft-cli-client

Result

The following is produced in the logs: Link

Software

Host OS: ElementaryOS 6.0 Next Guest OS: Ubuntu 20.04.1-live-server-amd64 VirtualBox 6.1.10

joshuajaharwood avatar Sep 27 '20 18:09 joshuajaharwood

I think that is mainly an issue with msm/pako reporting this error even when there are no system packages to install... (basically none of the default skills require special system packages to be installed)

Edit: and thanks for such a clear and concise description!

forslund avatar Sep 28 '20 07:09 forslund