-
Notifications
You must be signed in to change notification settings - Fork 48
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
running IO error #37
Comments
It is probably lack of privileges to the device. You could try running with sudo or as root. I added the following udev-rule in
|
I have tried both as sudo and as root. Are you certain it is privilege related issue? |
I had the exact same error when it was a privilege issue for me. It may arise too, I guess, if the device is not present. What does |
[ 30.160254] usb 1-3: new full-speed USB device number 5 using xhci_hcd |
Hmmm .... that is a different device than mine. I do not know if that makes a difference regarding privileges and permissions.
|
Ok is there a file where you define the vendor and product ID? |
Those come from the device. I use them in the udev-rule to ensure that the device can be used by the |
Hmmm ... look at my last line from the output of |
If you could provide me with an output of the python command, when the device is not connected, I would be grateful. |
[ 318.364998] usbcore: registered new interface driver usbhid |
Ah, now I see. The device that the code is trying to open is specified at line 742 in |
Yeah device got recognized. Now we reached a point of having invalid packages. E.g. |
What kind of device are you connecting with? Is it a Next Link 2.4? |
It is a contour next-one |
You can't connect with countour Next One. you need to have one of Contours that has "Link" in name. So Contour Next Link, Contour Link or Contour Next Link 2.4 (for 6xx). |
When executing sudo python -m decoding-contour-next-link.read_minimed_next24
I am receiving the following:
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/asterios/decoding-contour-next-link/read_minimed_next24.py", line 1333, in
downloadPumpSession(pumpDownload)
File "/home/asterios/decoding-contour-next-link/read_minimed_next24.py", line 1227, in downloadPumpSession
mt.openDevice()
File "/home/asterios/decoding-contour-next-link/read_minimed_next24.py", line 759, in openDevice
self.device.open( self.USB_VID, self.USB_PID )
File "hid.pyx", line 66, in hid.device.open
IOError: open failed
Any idea on how to proceed?
The text was updated successfully, but these errors were encountered: