-
-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hej everyone,
whenever I try to setup zmk on my pc, I get an error. I already updated everything, restarted my PC a few times and still get this error:
`PS D:\code\corne> zmk init
If you already have a ZMK config repo, enter its URL here. Otherwise, leave this blank to create a new repo.
Repository URL: https://github.com/azriel423/zmk-config-corne
Enter a directory name (zmk-config-corne):
Cloning into 'zmk-config-corne'...
warning: You appear to have cloned an empty repository.
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ C:\Users\xxx\pipx\venvs\zmk\lib\site-packages\zmk\repo.py:243 in _update_west_manifest │
│ │
│ 240 │ │ │ symlink.unlink() │
│ 241 │ │ │
│ 242 │ │ try: │
│ ❱ 243 │ │ │ symlink.symlink_to(target) │
│ 244 │ │ except OSError: │
│ 245 │ │ │ # Might not have permissions to symlink? Copy the file instead. │
│ 246 │ │ │ shutil.copy(target, symlink) │
│ │
│ ╭───────────────────────────────────── locals ─────────────────────────────────────╮ │
│ │ self = <zmk.repo.Repo object at 0x00000267D28E7340> │ │
│ │ symlink = WindowsPath('D:/code/corne/zmk-config-corne/.zmk/config/west.yml') │ │
│ │ symlink_dir = WindowsPath('D:/code/corne/zmk-config-corne/.zmk/config') │ │
│ │ target = WindowsPath('D:/code/corne/zmk-config-corne/config/west.yml') │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\pathlib.py:1255 in symlink_to │
│ │
│ 1252 │ │ Make this path a symlink pointing to the target path. │
│ 1253 │ │ Note the order of arguments (link, target) is the reverse of os.symlink. │
│ 1254 │ │ """ │
│ ❱ 1255 │ │ self._accessor.symlink(target, self, target_is_directory) │
│ 1256 │ │
│ 1257 │ def hardlink_to(self, target): │
│ 1258 │ │ """ │
│ │
│ ╭───────────────────────────────────────── locals ─────────────────────────────────────────╮ │
│ │ self = WindowsPath('D:/code/corne/zmk-config-corne/.zmk/config/west.yml') │ │
│ │ target = WindowsPath('D:/code/corne/zmk-config-corne/config/west.yml') │ │
│ │ target_is_directory = False │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
OSError: [WinError 1314] Dem Client fehlt ein erforderliches Recht:
'D:\code\corne\zmk-config-corne\config\west.yml' -> 'D:\code\corne\zmk-config-corne\.zmk\config\west.yml'
During handling of the above exception, another exception occurred:
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ C:\Users\xxx\pipx\venvs\zmk\lib\site-packages\zmk\commands\init.py:44 in init │
│ │
│ 41 │ _clone_repo(url, name) │
│ 42 │ │
│ 43 │ repo = Repo(Path() / name) │
│ ❱ 44 │ repo.run_west("update") │
│ 45 │ │
│ 46 │ console.print() │
│ 47 │ console.print(f'Your repo has been cloned to "{repo.path}".') │
│ │
│ ╭────────────────────────── locals ───────────────────────────╮ │
│ │ cfg = <zmk.config.Config object at 0x00000267D28E6CB0> │ │
│ │ console = │ │
│ │ ctx = <click.core.Context object at 0x00000267D28E6C20> │ │
│ │ name = 'zmk-config-corne' │ │
│ │ repo = <zmk.repo.Repo object at 0x00000267D28E7340> │ │
│ │ url = 'https://github.com/azriel423/zmk-config-corne' │ │
│ ╰─────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\xxx\pipx\venvs\zmk\lib\site-packages\zmk\repo.py:175 in run_west │
│ │
│ 172 │ │ │
│ 173 │ │ Automatically calls ensure_west_ready(). │
│ 174 │ │ """ │
│ ❱ 175 │ │ self.ensure_west_ready() │
│ 176 │ │ return self._run_west(*args, capture_output=capture_output) │
│ 177 │ │
│ 178 │ def ensure_west_ready(self) -> None: │
│ │
│ ╭─────────────────────────── locals ────────────────────────────╮ │
│ │ args = ('update',) │ │
│ │ capture_output = False │ │
│ │ self = <zmk.repo.Repo object at 0x00000267D28E7340> │ │
│ ╰───────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\xxx\pipx\venvs\zmk\lib\site-packages\zmk\repo.py:186 in ensure_west_ready │
│ │
│ 183 │ │ │ return │
│ 184 │ │ │
│ 185 │ │ self._update_gitignore() │
│ ❱ 186 │ │ self._update_west_manifest() │
│ 187 │ │ │
│ 188 │ │ config_path = self.path / _WEST_STAGING_PATH / _WEST_CONFIG_PATH │
│ 189 │ │ if not config_path.exists(): │
│ │
│ ╭────────────────────── locals ───────────────────────╮ │
│ │ self = <zmk.repo.Repo object at 0x00000267D28E7340> │ │
│ ╰─────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\xxx\pipx\venvs\zmk\lib\site-packages\zmk\repo.py:246 in _update_west_manifest │
│ │
│ 243 │ │ │ symlink.symlink_to(target) │
│ 244 │ │ except OSError: │
│ 245 │ │ │ # Might not have permissions to symlink? Copy the file instead. │
│ ❱ 246 │ │ │ shutil.copy(target, symlink) │
│ 247 │ │
│ 248 │ def _init_west_app(self): │
│ 249 │ │ print("Initializing west application. This may take a while...") │
│ │
│ ╭───────────────────────────────────── locals ─────────────────────────────────────╮ │
│ │ self = <zmk.repo.Repo object at 0x00000267D28E7340> │ │
│ │ symlink = WindowsPath('D:/code/corne/zmk-config-corne/.zmk/config/west.yml') │ │
│ │ symlink_dir = WindowsPath('D:/code/corne/zmk-config-corne/.zmk/config') │ │
│ │ target = WindowsPath('D:/code/corne/zmk-config-corne/config/west.yml') │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\shutil.py:417 in copy │
│ │
│ 414 │ """ │
│ 415 │ if os.path.isdir(dst): │
│ 416 │ │ dst = os.path.join(dst, os.path.basename(src)) │
│ ❱ 417 │ copyfile(src, dst, follow_symlinks=follow_symlinks) │
│ 418 │ copymode(src, dst, follow_symlinks=follow_symlinks) │
│ 419 │ return dst │
│ 420 │
│ │
│ ╭─────────────────────────────────────── locals ───────────────────────────────────────╮ │
│ │ dst = WindowsPath('D:/code/corne/zmk-config-corne/.zmk/config/west.yml') │ │
│ │ follow_symlinks = True │ │
│ │ src = WindowsPath('D:/code/corne/zmk-config-corne/config/west.yml') │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\shutil.py:254 in copyfile │
│ │
│ 251 │ if not follow_symlinks and _islink(src): │
│ 252 │ │ os.symlink(os.readlink(src), dst) │
│ 253 │ else: │
│ ❱ 254 │ │ with open(src, 'rb') as fsrc: │
│ 255 │ │ │ try: │
│ 256 │ │ │ │ with open(dst, 'wb') as fdst: │
│ 257 │ │ │ │ │ # macOS │
│ │
│ ╭─────────────────────────────────────── locals ───────────────────────────────────────╮ │
│ │ dst = WindowsPath('D:/code/corne/zmk-config-corne/.zmk/config/west.yml') │ │
│ │ file_size = 0 │ │
│ │ fn = WindowsPath('D:/code/corne/zmk-config-corne/.zmk/config/west.yml') │ │
│ │ follow_symlinks = True │ │
│ │ i = 1 │ │
│ │ src = WindowsPath('D:/code/corne/zmk-config-corne/config/west.yml') │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
FileNotFoundError: [Errno 2] No such file or directory: 'D:\code\corne\zmk-config-corne\config\west.yml'`
I use a Windows 11 System and tried the to set up zmk in the PowerShell.