rockymeza/wifi

scan command error

Opened this issue · 11 comments

hi ,thanks your tools.
I has some problem with it, i hope you can give me some help

File "/usr/bin/wifi", line 202, in
args.func(args)
File "/usr/bin/wifi", line 51, in scan_command
print_table([[cell.signal, cell.ssid, 'protected' if cell.encrypted else 'unprotected'] for cell in Cell.all(args.interface)])
File "/usr/lib/python2.7/site-packages/wifi/scan.py", line 39, in all
stderr=subprocess.STDOUT)
File "/usr/lib64/python2.7/subprocess.py", line 568, in check_output
process = Popen(stdout=PIPE, _popenargs, *_kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

ps: os: centos7

What operating system are you using?
What command did you run?

i run :wifi scan

what operating system are you using?

centos7
thanks your answer

right now wifi only works on debian-based distributions. :(

ok i see, hope you can port this tools to centos in future!
thanks again!

I hope so too!

it doesn't work on my pi, which is debian-based also.
thanks

jjuu commented

Same to me, debian 8.

(wifi)jjuu@debian:~$ wifi scan
Traceback (most recent call last):
File "/home/jjuu/pyenv/wifi/bin/wifi", line 202, in
args.func(args)
File "/home/jjuu/pyenv/wifi/bin/wifi", line 51, in scan_command
print_table([[cell.signal, cell.ssid, 'protected' if cell.encrypted else 'unprotected'] for cell in Cell.all(args.interface)])
File "/home/jjuu/pyenv/wifi/local/lib/python2.7/site-packages/wifi/scan.py", line 39, in all
stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, _popenargs, *_kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

jjuu commented

I install wireless-tools to fix it. It due to lack of /sbin/iwlist command.

Your problem is not same as mine, I have installed wireless-tools.

Raymond

On Apr 8, 2016, at 9:55 AM, jjuu notifications@github.com wrote:

I install wireless-tools to fix it. It due to lack of /sbin/iwlist command.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub