Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

scan command error #93

Open
luweijie007 opened this issue Mar 26, 2016 · 11 comments
Open

scan command error #93

luweijie007 opened this issue Mar 26, 2016 · 11 comments

Comments

@luweijie007
Copy link

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

@rockymeza
Copy link
Owner

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

@luweijie007
Copy link
Author

i run :wifi scan

@rockymeza
Copy link
Owner

what operating system are you using?

@luweijie007
Copy link
Author

centos7
thanks your answer

@rockymeza
Copy link
Owner

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

@luweijie007
Copy link
Author

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

@rockymeza
Copy link
Owner

I hope so too!

@rackmount
Copy link

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

@jjuu
Copy link

jjuu commented Apr 8, 2016

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
Copy link

jjuu commented Apr 8, 2016

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

@rackmount
Copy link

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

Raymond

On Apr 8, 2016, at 9:55 AM, jjuu [email protected] 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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants