#๐ Trying to get Chatmix to work on linux gives me an error.
22 messages ยท Page 1 of 1 (latest)
@viscid radish
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
@viscid radish if you pasted a file, it was probably a disallowed type which was automatically deleted
yup, im trying to figure out how that code pasting thing works
kleptoplasm@fedora:~$ sudo python /home/kleptoplasm/Downloads/nova.py
Traceback (most recent call last):
File "/home/kleptoplasm/Downloads/nova.py", line 7, in <module>
from usb.core import find, USBTimeoutError
ModuleNotFoundError: No module named 'usb'
kleptoplasm@fedora:~$
this is the error ill send the code soon
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
this is the repo i used, but i tried to change it to work for the nova 7
(I have zero programming experience, i emailed the owner of the repo, and he told me what i should change to make it work)
but i ran into this error
what did you do that was intended to install the usb module?
i got no clue, im just following instructions from the repo above, but i have gotten past this error but gotten a new one
be sure to always post the error that you need help with.
i did, but that error just vanished but it is now giving me a new one, one moment while i try to copy it
I have to head out, but hopefully someone can help you debug with the new error
kleptoplasm@fedora:~$ python /home/kleptoplasm/Downloads/nova.py Traceback (most recent call last): File "/home/kleptoplasm/Downloads/nova.py", line 153, in <module> nova = NovaProWireless() ^^^^^^^^^^^^^^^^^ File "/home/kleptoplasm/Downloads/nova.py", line 58, in __init__ if self.dev.is_kernel_driver_active(self.INTERFACE): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kleptoplasm/.local/lib/python3.12/site-packages/usb/core.py", line 1107, in is_kernel_driver_active self._ctx.managed_open() File "/home/kleptoplasm/.local/lib/python3.12/site-packages/usb/core.py", line 113, in wrapper return f(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kleptoplasm/.local/lib/python3.12/site-packages/usb/core.py", line 131, in managed_open self.handle = self.backend.open_device(self.dev) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kleptoplasm/.local/lib/python3.12/site-packages/usb/backend/libusb1.py", line 804, in open_device return _DeviceHandle(dev) ^^^^^^^^^^^^^^^^^^ File "/home/kleptoplasm/.local/lib/python3.12/site-packages/usb/backend/libusb1.py", line 652, in __init__ _check(_lib.libusb_open(self.devid, byref(self.handle))) File "/home/kleptoplasm/.local/lib/python3.12/site-packages/usb/backend/libusb1.py", line 604, in _check raise USBError(_strerror(ret), ret, _libusb_errno[ret]) usb.core.USBError: [Errno 13] Access denied (insufficient permissions) kleptoplasm@fedora:~$
i tried with sudo and it gives me adifferent error
``sudo python /home/kleptoplasm/Downloads/nova.py
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/usb/core.py", line 236, in get_interface_and_endpoint
return self._ep_info[endpoint_address]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 4
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kleptoplasm/Downloads/nova.py", line 154, in <module>
nova.enable_sonar_icon()
File "/home/kleptoplasm/Downloads/nova.py", line 74, in enable_sonar_icon
self.dev.write(
File "/usr/local/lib/python3.12/site-packages/usb/core.py", line 986, in write
intf, ep = self._ctx.setup_request(self, endpoint)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/usb/core.py", line 113, in wrapper
return f(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/usb/core.py", line 228, in setup_request
intf, ep = self.get_interface_and_endpoint(device, endpoint_address)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/usb/core.py", line 113, in wrapper
return f(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/usb/core.py", line 244, in get_interface_and_endpoint
raise ValueError('Invalid endpoint address ' + hex(endpoint_address))
ValueError: Invalid endpoint address 0x4
``
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.