joshvillbrandt / wireless

A dead simple, cross-platform Python library to connect to wireless networks.
https://pypi.org/project/wireless/
Apache License 2.0
83 stars 42 forks source link

Can't construct Wireless(): `invalid literal for int() with base 10: '4-3'` called within _detectDriver. #17

Open d33tah opened 7 years ago

d33tah commented 7 years ago
>>> w = Wireless()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
    w = Wireless()
  File "/home/d/virtualenv/lib/python2.7/site-packages/wireless/Wireless.py", line 23, in __init__
    self._driver_name = self._detectDriver()
  File "/home/d/virtualenv/lib/python2.7/site-packages/wireless/Wireless.py", line 50, in _detectDriver
    compare = self.vercmp(ver, "0.9.9.0")
  File "/home/d/virtualenv/lib/python2.7/site-packages/wireless/Wireless.py", line 71, in vercmp
    return cmp(normalize(actual), normalize(test))
  File "/home/d/virtualenv/lib/python2.7/site-packages/wireless/Wireless.py", line 70, in normalize
    return [int(x) for x in re.sub(r'(\.0+)*$', '', v).split(".")]
ValueError: invalid literal for int() with base 10: '4-3'