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

Cyborg R.A.T.3 unsupported operand #20

Open
krysoft opened this issue Nov 5, 2019 · 2 comments
Open

Cyborg R.A.T.3 unsupported operand #20

krysoft opened this issue Nov 5, 2019 · 2 comments

Comments

@krysoft
Copy link

krysoft commented Nov 5, 2019

Hi guys,

I have an issue with Saitek Cyborg R.A.T.3, when I run ratctl with sudo then I got TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'. VID and PID matching with R.A.T.3. Anybody have same experience or can knows whats going on?

Thanks for answers

@MayeulC
Copy link
Owner

MayeulC commented Nov 5, 2019

Can you paste the whole log? Which line this happens? What are your VID and PID?

@krysoft
Copy link
Author

krysoft commented Nov 5, 2019

This is complete output from the ratctl.py:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Found one device: {'vid': 1699, 'pid': 3276, 'name': 'Cyborg R.A.T.3'}
Traceback (most recent call last):
File "./ratctl.py", line 402, in
main()
File "./ratctl.py", line 392, in main
w = MainWindow()
File "./ratctl.py", line 378, in init
self.data = Data(self.pbar, self.tabs, self.dpi, self.com)
File "./ratctl.py", line 227, in init
self.pool()
File "./ratctl.py", line 230, in pool
self.dpiMode = self.com.getDpiMode()
File "./ratctl.py", line 152, in getDpiMode
return mode[0] / 16
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

lsusb:

Bus 002 Device 005: ID 06a3:0ccc Saitek PLC Cyborg R.A.T.3 Mouse

Thanks for help I appreciate 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

2 participants