Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unable to run qmk setup #19536

Closed
2 tasks
hkdd opened this issue Jan 8, 2023 · 2 comments
Closed
2 tasks

[Bug] Unable to run qmk setup #19536

hkdd opened this issue Jan 8, 2023 · 2 comments

Comments

@hkdd
Copy link

hkdd commented Jan 8, 2023

Describe the Bug

Fedora 37 (latest kernel 6.0.16-300)

$ python3 -m pip install qmk --user
$ qmk -V
1.1.1
$ qmk setup

[...]

Ψ Detected Linux.
<class 'PermissionError'>
☒ [Errno 13] Permission denied: '/usr/lib/udev/rules.d/60-nfs.rules'
Traceback (most recent call last):
File "/home/user/.local/lib/python3.11/site-packages/milc/milc.py", line 528, in call
return self.call()
^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.11/site-packages/milc/milc.py", line 533, in call
return self._subcommand(self)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/qmk_firmware/lib/python/qmk/cli/doctor/main.py", line 110, in doctor
status = os_status = os_tests()
^^^^^^^^^^
File "/home/user/qmk_firmware/lib/python/qmk/cli/doctor/main.py", line 28, in os_tests
return os_test_linux()
^^^^^^^^^^^^^^^
File "/home/user/qmk_firmware/lib/python/qmk/cli/doctor/linux.py", line 143, in os_test_linux
return check_udev_rules()
^^^^^^^^^^^^^^^^^^
File "/home/user/qmk_firmware/lib/python/qmk/cli/doctor/linux.py", line 81, in check_udev_rules
for line in rule_file.read_text(encoding='utf-8').split('\n'):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/pathlib.py", line 1058, in read_text
with self.open(mode='r', encoding=encoding, errors=errors) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/pathlib.py", line 1044, in open
return io.open(self, mode, buffering, encoding, errors, newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/usr/lib/udev/rules.d/60-nfs.rules'

Keyboard Used

gmmk pro

Link to product page (if applicable)

No response

Operating System

Fedora 37

qmk doctor Output

qmk doctor gives the same error

Is AutoHotKey / Karabiner installed

  • AutoHotKey (Windows)
  • Karabiner (macOS)

Other keyboard-related software installed

No response

Additional Context

No response

@zvecr
Copy link
Member

zvecr commented Jan 9, 2023

Fixed by #19548.

@zvecr zvecr closed this as completed Jan 9, 2023
@taylorzr
Copy link

taylorzr commented Jul 11, 2023

I had the same issue, and #19548 didn't help. For some reason 60-nfs.rules had different permissions than all the other files. E.g.

$ stat -c %a /usr/lib/udev/rules.d/60-net.rules /usr/lib/udev/rules.d/60-nfs.rules         
644
600

I was able to fix with sudo chmod 644 /usr/lib/udev/rules.d/60-nfs.rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants