Installer error in latter parts of

I searched but couldn’t find any recent posts related to this error.

I’ve done this a dozen or more times over the last year and just recently ran into this error. Not sure why it’s failing. I’m doing a setup on a Raspberry PI 4, running the most recent buster lite image. I did a

wget -N

and then invoked with bash ./ as the pi user. It was all going well until the last stages when the following error was put to the screen:

Creating /var/log/mycroft/ directory
Build complete.  Press any key to review the output before it is deleted.

    Retrieving default skills
    mkdir: cannot create directory '/opt/mycroft': File exists
    INFO - building SkillEntry objects for all skills
    Traceback (most recent call last):
      File "/home/pi/mycroft-core/.venv/bin/msm", line 11, in <module>
      File "/home/pi/mycroft-core/.venv/lib/python3.7/site-packages/msm/", line 97, in main
        args.platform, args.skills_dir, repo, args.versioned
      File "/home/pi/mycroft-core/.venv/lib/python3.7/site-packages/msm/", line 111, in __init__
      File "/home/pi/mycroft-core/.venv/lib/python3.7/site-packages/msm/", line 247, in _init_skills_data
      File "/home/pi/mycroft-core/.venv/lib/python3.7/site-packages/msm/", line 355, in write_device_skill_state
      File "/home/pi/mycroft-core/.venv/lib/python3.7/site-packages/msm/", line 27, in write_device_skill_state
        with open(skill_state_path, 'w') as skill_state_file:
    FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.mycroft/skills.json'

Not very many chances of me making an error at this point, not sure how to correct this.

Any help is much appreciated.


Hi Jody,

Can I confirm you are using the Raspbian Buster Lite image and then following the Picroft image recipe to set up your own system?

I noticed that the script you fetched was from the stretch branch of Picroft rather than buster. There are some slight differences between them, so this might be all you need to get it going:

wget -N

Yes I’m using buster lite image, and the PiCroft image recipe.

I’ll give your suggested change a try this morning, I bet you’re right. Didn’t notice the buster reference in the URL.

1 Like