awkman / pywifi

A cross-platform module for manipulating WiFi devices.
MIT License
447 stars 154 forks source link

Open handle failed! Win10 + Python3 #34

Closed protonpopsicle closed 5 years ago

protonpopsicle commented 5 years ago

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:

import pywifi

wifi = pywifi.PyWiFi()
wifi.interfaces()

results in:

pywifi 2018-11-16 17:12:02,183 ERROR Open handle failed!
pywifi 2018-11-16 17:12:02,183 ERROR Enum interface failed!
protonpopsicle commented 5 years ago

the return value from WlanOpenHandle function is 1062, not sure what that maps to. I'll continue to investigate

protonpopsicle commented 5 years ago

googling this error code suggests: "WLAN AutoConfig" was not running

protonpopsicle commented 5 years ago

starting WLAN AutoConfig service manually from the Services Desktop App fixed my issue.