intrepidcs / python_ics

Library for interfacing with Intrepid devices in Python
MIT License
61 stars 29 forks source link

Unable to open device #152

Closed carineapig closed 1 year ago

carineapig commented 1 year ago

Hi, I am able to find the device, but I cannot open the device. When I call ics.open_device, I get this error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ics.ics.RuntimeError: Error: open_device(): icsneoOpenDevice() Failed
drebbe-intrepid commented 1 year ago

@carineapig Which operating system are you using? If its linux its probably a permissions issue with udev.

carineapig commented 1 year ago

yes it is ubuntu 22.04. How can I solve?

ic3man5 commented 1 year ago

@carineapig see https://github.com/intrepidcs/libicsneo#udev

drebbe-intrepid commented 1 year ago

@carineapig I'm closing this issue assuming its been resolved on your end, please feel free to open if this isn't the case.

8Klaro8 commented 9 months ago

UPDATE This error occured, when an other application has already opened the device.

I got the same error by running my python file which includes the next: import can mybus = can.interface.Bus(bustype="neovi",channel=1,bitrate=500000)

Error: ics.ics.RuntimeError: Error: open_device(): icsneoOpenDevice() Failed ics.close_device(self.dev) ics.ics.RuntimeError: Error: close_device(): icsneoClosePort() Failed

Info: I am on windows, using git bash. If there is any clue, please share it.