Форум сайта python.su
0
Собсно вот:
>>> import wifi
>>> from wifi import Cell, Scheme
>>> Cell.all('wlan0')
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
Cell.all('wlan0')
File "C:\Python34\lib\site-packages\wifi-0.3.4-py3.4.egg\wifi\scan.py", line 29, in all
stderr=subprocess.STDOUT)
File "C:\Python34\lib\subprocess.py", line 607, in check_output
with Popen(*popenargs, stdout=PIPE, **kwargs) as process:
File "C:\Python34\lib\subprocess.py", line 858, in __init__
restore_signals, start_new_session)
File "C:\Python34\lib\subprocess.py", line 1111, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Офлайн
36
На PYPI синим по белому написано: Operating System :: POSIX :: Linux
Офлайн
0
Хорошо,пробую на Ubuntu 14.04
from wifi.scan import Cell
>>> Cell.all('wlan0')
<map object at 0x7f253f82b4a8>
Офлайн
4
Discovering networks
You can use this library to scan for networks that are available in the air. To get a list of the different cells in the area, you can do
>>> from wifi import Cell, Scheme
>>> Cell.all('wlan0')
This returns a list of Cell objects. Under the hood, this calls iwlist scan and parses the unfriendly output.
Отредактировано den4ik (Ноя. 17, 2014 23:19:36)
Офлайн