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

python -m decoding-contour-next-link.read_minimed_next24 fails #48

Open
tjgordon opened this issue Jun 18, 2020 · 1 comment
Open

python -m decoding-contour-next-link.read_minimed_next24 fails #48

tjgordon opened this issue Jun 18, 2020 · 1 comment

Comments

@tjgordon
Copy link

Calling the module from the parent directory as described in the readme fails:

tgordon:~$ python3 -m decoding-contour-next-link.read_minimed_next24
/usr/lib/python3.8/runpy.py:126: RuntimeWarning: 'decoding-contour-next-link.read_minimed_next24' found in sys.modules after import of package 'decoding-contour-next-link', but prior to execution of 'decoding-contour-next-link.read_minimed_next24'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/tgordon/decoding-contour-next-link/read_minimed_next24.py", line 1571, in <module>
    downloadPumpSession(pumpDownload)
  File "/home/tgordon/decoding-contour-next-link/read_minimed_next24.py", line 1465, in downloadPumpSession
    mt.openDevice()
  File "/home/tgordon/decoding-contour-next-link/read_minimed_next24.py", line 764, in openDevice
    self.device.open( self.USB_VID, self.USB_PID )
  File "hid.pyx", line 66, in hid.device.open
OSError: open failed

I tested with two different Contour Next Link 2.4 units on Ubuntu 20.04. The error is identical before and after unplugging either CNL.

@Whosayink
Copy link

Try with python2

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