Comments (8)
Similar, but not the same.
@spiritphyz I would theorize that there are nearby wifi networks whose names have non-ascii characters.
from freewifi.
Hi,
I'm getting similar errors, too (on macOS 10.12.2 and Python 2.7.12).
FreeWifi $ python wifi-users.py
Available interfaces: en1
Interface: en1
Error getting wireless interface.
Traceback (most recent call last):
File "wifi-users.py", line 161, in <module>
main(argv)
File "wifi-users.py", line 68, in main
ssid = wireless.current()
File "/usr/local/lib/python2.7/site-packages/wireless/Wireless.py", line 79, in current
return self._driver.current()
File "/usr/local/lib/python2.7/site-packages/wireless/Wireless.py", line 427, in current
self._interface))
File "/usr/local/lib/python2.7/site-packages/wireless/Wireless.py", line 11, in cmd
stdout=subprocess.PIPE, stderr=subprocess.STDOUT
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 23: ordinal not in range(128)
from freewifi.
It looks like this is a bug in Wireless and it would be great if you could submit an issue in that repo.
I think @tbodt is correct, and that this is a bug with non-ASCII characters being evaluated by this regex https://github.com/joshvillbrandt/wireless/blob/master/wireless/Wireless.py#L70
If you could paste the name of your current wireless network here, it would probably help in debugging the issue. You can probably get the wireless name from Network Settings, but if not you can also use this in the Terminal:
$ /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I \
| grep " SSID"
SSID: FREE_WIFI
from freewifi.
i'm in france so there's likely some accentuated network nearby, i'll try to do your check later
edit :
my bad, that does not apply to me as it fails at getting the wireless interface
from freewifi.
@tbodt @kylemcdonald Awesome! You guys are totally right -- my home WiFi network has non-ASCII Emoji in the network name:
$ /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I \
> | grep " SSID"
SSID: 🐳 Big Whale Network
I don't have any problems with Unicode in the network name because all our devices are iOS or Mac, and the network name is displayed correctly during discovery.
Is it easy to change the regex to include Unicode?
from freewifi.
It's not a problem with the regex, it's a problem with the bare decode()
at the top of the file. It should have 'utf-8'
in it (or something).
from freewifi.
@sheepdestroyer your problem is also a problem with Wireless, but a different one. the version of nmcli has a hyphen in it which breaks the version detection.
from freewifi.
I think I have the simple problem with this following error
root@WalkerPi:/home/t/FreeWifi# python wifi-users.py -i wlx90f6520940c1
Traceback (most recent call last):
File "wifi-users.py", line 10, in <module>
from netaddr import EUI, mac_unix_expanded
ImportError: No module named netaddr
root@WalkerPi:/home/t/FreeWifi#
I don't know what means the EUI for? I have try the with tcpdump
with the right USB...
and I'm running on Raspberry Pi Ubuntu Mate.
Should I modify the py file?
from freewifi.
Related Issues (20)
- Add Legal Warning HOT 4
- Netifaces Error HOT 1
- install fails on Fedora 25 HOT 1
- How to install it in windows? HOT 4
- Sniffing finished early. HOT 1
- Some errors maybe myself problem
- error getting gateway mac on macbook pro
- mac address
- Snifing finished early HOT 1
- Wifi
- Wifi
- Wifi
- ✨ 科学上网神器!好用的SSR/V2ray节点专线梯子!
- Ubuntu: No `/dev/bpf*` HOT 12
- DNS Tunneling and ICMP Tunneling HOT 1
- Fails to detect wireless interface when wired interface is available HOT 1
- Problem with Permissions on /dev/bpf* on Ubuntu 16.04 LTS HOT 1
- Doesn't work on Archlinux HOT 4
- On a mac, received this error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freewifi.