OS - Ubuntu 20.04
I am unable to create a skill template through the mycroft-msk create command.
The command returns the following error :-1 `
Could not prepare repo (GitCommandError([‘git’, ‘config’, ‘remote.origin.url’, ‘https://github.com/MycroftAI/mycroft-skills’], 255, b’error: could not lock config file .git/config: Permission denied’, b’’)), Creating temporary repo
Could not use temporary repo either (GitCommandError([‘git’, ‘config’, ‘remote.origin.url’, ‘link to mycroft-skills github repo’], 255, b’error: could not lock config file .git/config: Permission denied’, b’’)), trying to use existing one without update
Failed to update repo: MergeConflict
Skill metadata couldn’t be fetched (PermissionError(13, ‘Permission denied’))
Could not prepare repo (GitCommandError([‘git’, ‘config’, ‘remote.origin.url’, ‘link to mycroft-skills github repo’], 255, b’error: could not lock config file .git/config: Permission denied’, b’’)), Creating temporary repo
Could not use temporary repo either (GitCommandError([‘git’, ‘config’, ‘remote.origin.url’, ‘link to mycroft-skills github repo’], 255, b’error: could not lock config file .git/config: Permission denied’, b’’)), trying to use existing one without update
Failed to update repo: MergeConflict
Enter a short unique skill name (ie. “siren alarm” or “pizza orderer”): turn on lightClass name: TurnOnLightSkill
Repo name: turn-on-light-skillLooks good? (Y/n) y
Traceback (most recent call last):
File “/mycroft-core/.venv/bin/msk”, line 8, in
sys.exit(main())
File “/mycroft-core/.venv/lib/python3.8/site-packages/msk/main.py”, line 64, in main
return action_to_clsargs.action.perform()
File “/mycroft-core/.venv/lib/python3.8/site-packages/msk/actions/create.py”, line 397, in perform
self.initialize_template()
File “/mycroft-core/.venv/lib/python3.8/site-packages/msk/actions/create.py”, line 336, in initialize_template
result = handler()
File “/mycroft-core/.venv/lib/python3.8/site-packages/msk/actions/create.py”, line 313, in
(’’, lambda: makedirs(self.path)),
File “/usr/lib/python3.8/os.py”, line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: ‘/opt/mycroft/skills/turn-on-light-skill’
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File “/usr/lib/python3.8/shutil.py”, line 704, in rmtree
orig_st = os.lstat(path)
FileNotFoundError: [Errno 2] No such file or directory: '/opt/mycroft/skills/turn-on-light-skill`
if I try to run the command as sudo it returns the error - sudo: mycroft-msk: command not found.
Thanx for the help.