Troubleshooting: NULL pointer access
protonpopsicle opened this issue · 0 comments
protonpopsicle commented
freshly installed Python 3.5.4 on Windows 10 (version 1803 OS Build 17134.407) using official install executable.
using latest master branch (as of writing) of pywifi. installed with pip. install succeeded no errors:
running this code from example in README:
import pywifi
import time
wifi = pywifi.PyWiFi()
iface = wifi.interfaces()[0]
iface.disconnect()
time.sleep(1)
assert iface.status() in\
[const.IFACE_DISCONNECTED, const.IFACE_INACTIVE]
results in:
Traceback (most recent call last):
File "wifi.py", line 10, in <module>
assert iface.status() in\
File "C:\Users\<username>\AppData\Local\Programs\Python\Python35\lib\site-packages\pywifi\iface.py", line 113, in status
return self._wifi_ctrl.status(self._raw_obj)
File "C:\Users\<username>\AppData\Local\Programs\Python\Python35\lib\site-packages\pywifi\_wifiutil_win.py", line 473, in status
return status_dict[data.contents.value]
ValueError: NULL pointer access
Same problem if I call iface.status()
. The WLAN AutoConfig service is running.