smartavionics / RawMouse

Cura Plugin that lets you use a HID mouse to pan/rotate/zoom the view
94 stars 7 forks source link

'RawMouse' object has no attribute '_profile' #18

Closed KenwoodFox closed 2 years ago

KenwoodFox commented 3 years ago

Im on linux using a 3D Connexion and getting this error.

2021-12-06 00:13:43,578 - ERROR - [MainThread] RawMouse.RawMouse._showDeviceInformation [549]: Exception while showing device information: 'RawMouse' object has no attribute '_profile'

Dosent seem to be working and this occures when i press the show device information button, not sure whats wrong exactly. The information box does not appear.

smartavionics commented 2 years ago

Hi, can you please provide the complete cura.log file (rename to cura.txt so you can attach it here). Thanks.

KenwoodFox commented 2 years ago

Sure thing! cura.log

smartavionics commented 2 years ago

Thanks for that. I can now see that you are using a different Python version from what RawMouse expects. However, it should work if you install the hid package from https://pypi.org/project/hid/. Hope this helps.

KenwoodFox commented 2 years ago

It shows up! still does not seem to accept any input but it does show up!

KenwoodFox commented 2 years ago

image

KenwoodFox commented 2 years ago

hid was the wrong package i think, hidapi was correct, but i still get

2021-12-08 20:34:32,353 - DEBUG - [RawMouse] RawMouse.RawMouse._run_hid [228]: Trying to open 5-3:1.1
2021-12-08 20:34:32,353 - ERROR - [RawMouse] RawMouse.RawMouse._run_hid [255]: IOError while reading HID events: open failed

Getting closer!

smartavionics commented 2 years ago

Ah, yes, sorry, it's hidapi.

Have you read the bit in the readme file about Linux permissions?

KenwoodFox commented 2 years ago

Ah, yes, sorry, it's hidapi.

Have you read the bit in the readme file about Linux permissions?

Yes and ive setup the udev rules correctly i think, how could i test? image

smartavionics commented 2 years ago

Those permissions look OK.

Maybe the problem is that something else has opened the device exclusively so RawMouse can't open it.

Do you have a 3D connexion driver installed? Or any other software that could be accessing those devices?

KenwoodFox commented 2 years ago

I do actually yeah, the linux spacenavd daemon, let me try stopping that.

KenwoodFox commented 2 years ago

Even with spacenavd stopped (light on the 3d mouse goes out) i still get the IOError :/ wonder what it could be

smartavionics commented 2 years ago

Don't know. Please post the latest cura.log so I can check if it's logging anything useful.

KenwoodFox commented 2 years ago

I was able to fix it by installing the appimage version.