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

is_kernel_driver_active #60

Open
kbakdev opened this issue Jul 27, 2021 · 3 comments
Open

is_kernel_driver_active #60

kbakdev opened this issue Jul 27, 2021 · 3 comments

Comments

@kbakdev
Copy link

kbakdev commented Jul 27, 2021

Hi i tried to install this on my PC, I have built-in keyboard in laptop, but i'm getting traceback like this.

Traceback

  File "/usr/local/bin/aucc", line 11, in <module>
    load_entry_point('avell-unofficial-control-center==1.0.4', 'console_scripts', 'aucc')()
  File "/usr/local/lib/python3.6/dist-packages/avell_unofficial_control_center-1.0.4-py3.6.egg/aucc/main.py", line 165, in main
  File "/usr/local/lib/python3.6/dist-packages/avell_unofficial_control_center-1.0.4-py3.6.egg/aucc/main.py", line 104, in __init__
  File "/usr/local/lib/python3.6/dist-packages/avell_unofficial_control_center-1.0.4-py3.6.egg/aucc/core/handler.py", line 50, in __init__
  File "/usr/local/lib/python3.6/dist-packages/avell_unofficial_control_center-1.0.4-py3.6.egg/aucc/core/handler.py", line 16, in __init__
  File "/usr/local/lib/python3.6/dist-packages/avell_unofficial_control_center-1.0.4-py3.6.egg/aucc/core/handler.py", line 27, in _get_device
AttributeError: 'NoneType' object has no attribute 'is_kernel_driver_active'  File "/usr/local/bin/aucc", line 11, in <module>
    load_entry_point('avell-unofficial-control-center==1.0.4', 'console_scripts', 'aucc')()
  File "/usr/local/lib/python3.6/dist-packages/avell_unofficial_control_center-1.0.4-py3.6.egg/aucc/main.py", line 165, in main
  File "/usr/local/lib/python3.6/dist-packages/avell_unofficial_control_center-1.0.4-py3.6.egg/aucc/main.py", line 104, in __init__
  File "/usr/local/lib/python3.6/dist-packages/avell_unofficial_control_center-1.0.4-py3.6.egg/aucc/core/handler.py", line 50, in __init__
  File "/usr/local/lib/python3.6/dist-packages/avell_unofficial_control_center-1.0.4-py3.6.egg/aucc/core/handler.py", line 16, in __init__
  File "/usr/local/lib/python3.6/dist-packages/avell_unofficial_control_center-1.0.4-py3.6.egg/aucc/core/handler.py", line 27, in _get_device
AttributeError: 'NoneType' object has no attribute 'is_kernel_driver_active'
@busybeaver42
Copy link

I have the same issue:
Traceback (most recent call last):
File "/usr/local/bin/aucc", line 11, in
load_entry_point('avell-unofficial-control-center==1.0.4', 'console_scripts', 'aucc')()
File "/usr/local/lib/python3.8/dist-packages/avell_unofficial_control_center-1.0.4-py3.8.egg/aucc/main.py", line 165, in main
File "/usr/local/lib/python3.8/dist-packages/avell_unofficial_control_center-1.0.4-py3.8.egg/aucc/main.py", line 104, in init
File "/usr/local/lib/python3.8/dist-packages/avell_unofficial_control_center-1.0.4-py3.8.egg/aucc/core/handler.py", line 50, in init
File "/usr/local/lib/python3.8/dist-packages/avell_unofficial_control_center-1.0.4-py3.8.egg/aucc/core/handler.py", line 16, in init
File "/usr/local/lib/python3.8/dist-packages/avell_unofficial_control_center-1.0.4-py3.8.egg/aucc/core/handler.py", line 27, in _get_device
AttributeError: 'NoneType' object has no attribute 'is_kernel_driver_active'
root@xpr15m19:/home/joerg/keyboard/avell-unofficial-control-center# aucc -s rainbow
Traceback (most recent call last):
File "/usr/local/bin/aucc", line 11, in
load_entry_point('avell-unofficial-control-center==1.0.4', 'console_scripts', 'aucc')()
File "/usr/local/lib/python3.8/dist-packages/avell_unofficial_control_center-1.0.4-py3.8.egg/aucc/main.py", line 165, in main
File "/usr/local/lib/python3.8/dist-packages/avell_unofficial_control_center-1.0.4-py3.8.egg/aucc/main.py", line 104, in init
File "/usr/local/lib/python3.8/dist-packages/avell_unofficial_control_center-1.0.4-py3.8.egg/aucc/core/handler.py", line 50, in init
File "/usr/local/lib/python3.8/dist-packages/avell_unofficial_control_center-1.0.4-py3.8.egg/aucc/core/handler.py", line 16, in init
File "/usr/local/lib/python3.8/dist-packages/avell_unofficial_control_center-1.0.4-py3.8.egg/aucc/core/handler.py", line 27, in _get_device
AttributeError: 'NoneType' object has no attribute 'is_kernel_driver_active'

XMGpro15 [XPR15M19]

@aadm
Copy link

aadm commented Oct 2, 2021

EDIT forget what I wrote below, this is not an issue at all on Ubuntu 21.04, I simply forgot that I had to change the product id in main.py, i.e. this line here:

control = ControlCenter(vendor_id=0x048d, product_id=0x6004)

the instructions are given here: #48


Same here, laptop is a PC Specialist Recoil IV i7-10875H / Geforce RTX2070.

Used to work on Ubuntu 20.04 and 20.10, after upgrading to 21.04 aucc does not work anymore and gives me this error msg (same as user above):

(base) 19:56:47 aadm@psion:~$ sudo aucc -H pink teal -b 4
Traceback (most recent call last):
  File "/usr/local/bin/aucc", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/dist-packages/aucc/main.py", line 86, in main
    control = ControlCenter(vendor_id=0x048d, product_id=0xce00)
  File "/usr/local/lib/python3.9/dist-packages/aucc/main.py", line 37, in __init__
    super(ControlCenter, self).__init__(vendor_id, product_id)
  File "/usr/local/lib/python3.9/dist-packages/aucc/core/handler.py", line 50, in __init__
    super(DeviceHandler, self).__init__(vendor_id, product_id)
  File "/usr/local/lib/python3.9/dist-packages/aucc/core/handler.py", line 16, in __init__
    self._device = self._get_device(vendor_id, product_id)
  File "/usr/local/lib/python3.9/dist-packages/aucc/core/handler.py", line 27, in _get_device
    if device.is_kernel_driver_active(1):
AttributeError: 'NoneType' object has no attribute 'is_kernel_driver_active'

@kbakdev
Copy link
Author

kbakdev commented Nov 7, 2021

Thanks, I'll let my friend who I gave this laptop to take a look at it.

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

No branches or pull requests

3 participants