question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
wgaylordcommented, Oct 6, 2016

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 .

0reactions
wgaylordcommented, Oct 21, 2016

Okay. So this can be closed now. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

os — Miscellaneous operating system interfaces — Python ...
unsetenv with argument key . Changed in version 3.9: The function is now always available and is also available on Windows. File ...
Read more >
How to get Network Interface Card names in Python?
This is the best answer. Works on Win/Linux/Mac and is a well documented library that can be used to many other OS introspection....
Read more >
Python Tutorial - Getting Started with Python and Python Basics
An example to illustrate basic Python syntaxes and constructs, such as block indentation, conditional, for-loop, while-loop, input/output, list and function ...
Read more >
netifaces - PyPI
Portable network interface information. ... Build Status (Windows) ... no easy way to get the address(es) of the machine's network interfaces from Python....
Read more >
App Engine standard environment for Python 2.7 release notes
Updated Python SDK to version 1.9.65. December 14, 2017. Improved access control documentation around deploying apps with IAM roles and service ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found