pywifi: Basic functions with PyWiFi.intefaces not working. (Python 2.7.12 - Win 10)

I am on Windows10 with python 2.7.12

`>>> wifi.interfaces()[0].scan()

wifi.interfaces()[0].scan_results <bound method Interface.scan_results of <pywifi.iface.Interface instance at 0x0313CAF8>> wifi.interfaces()[0].scan_results() Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “C:\Python27\lib\site-packages\pywifi\iface.py”, line 39, in scan_results return wifiutils.scan_results(self.__raw_obj) File “C:\Python27\lib\site-packages\pywifi\win\wifiutils.py”, line 30, in scan_results network[‘ssid’] += “%c” % bsses[i].dot11Ssid.ucSSID[j] IndexError: string index out of range wifi.interfaces()[0].status <bound method Interface.status of <pywifi.iface.Interface instance at 0x0313CAF8>> wifi.interfaces()[0].status() Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “C:\Python27\lib\site-packages\pywifi\iface.py”, line 74, in status return wifiutils.status(self.__raw_obj) File “C:\Python27\lib\site-packages\pywifi\win\wifiutils.py”, line 186, in status data = wifiapi.PDWORD() AttributeError: ‘module’ object has no attribute ‘PDWORD’`

is the error.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 23 (7 by maintainers)

Most upvoted comments

I’m mostly use py2 because that’s what most people use. (Like even most professionals use it over py3)

On Oct 6, 2016 11:13 AM, “Awk” notifications@github.com wrote:

Did you try running pywifi in python3 env? Because I wrote pywifi in python3 env, I am not quite sure it can run on python2 env now

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/awkman/pywifi/issues/8#issuecomment-252011706, or mute the thread https://github.com/notifications/unsubscribe-auth/ACCNyfWJaY1xZ7547kLSrGcXC-LDyMWNks5qxR42gaJpZM4KOTdo .