pazaan / decoding-contour-next-link

Space to collaborate on decoding Contour Next Link comms protocols, and the piggy-backed pump comms
BSD 3-Clause "New" or "Revised" License
56 stars 48 forks source link

missing dependency in readme? #35

Open bertBruynooghe opened 6 years ago

bertBruynooghe commented 6 years ago

Being new with Python and contour next link on MacOs 10.13.3, I followed the readme, and got this finally:

python -m decoding-contour-next-link.read_minimed_next24
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 151, in _run_module_as_main
    mod_name, loader, code, fname = _get_module_details(mod_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 101, in _get_module_details
    loader = get_loader(mod_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pkgutil.py", line 464, in get_loader
    return find_loader(fullname)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pkgutil.py", line 474, in find_loader
    for importer in iter_importers(fullname):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pkgutil.py", line 430, in iter_importers
    __import__(pkg)
  File "decoding-contour-next-link/__init__.py", line 2, in <module>
    from .read_minimed_next24 import *
  File "decoding-contour-next-link/read_minimed_next24.py", line 9, in <module>
    except WindowsError:
NameError: name 'WindowsError' is not defined

Any suggestions?

sdshlanta commented 6 years ago

try adding the following line to read_minimed_next24.py


try:
    WindowsError
except NameError:
    WindowsError = Exception```

That should create a dummy `WindowsError` with the same interface as a standard exception.