kootenpv / whereami

Uses WiFi signals :signal_strength: and machine learning to predict where you are
GNU Affero General Public License v3.0
5.1k stars 247 forks source link

Ubuntu:ValueError: need more than 1 value to unpack #19

Closed MaDragon closed 7 years ago

MaDragon commented 7 years ago

Hi,

Newbie here, I run the command "whereami learn -l bedroom -n 100" at first time, it got error as below:

0%| | 0/100 [00:00<?, ?it/s] Traceback (most recent call last): File "/usr/local/bin/whereami", line 9, in load_entry_point('whereami==0.3.50', 'console_scripts', 'whereami')() File "/usr/local/lib/python2.7/dist-packages/whereami-0.3.50-py2.7.egg/whereami/main.py", line 39, in main learn(args.location, args.num_samples) File "/usr/local/lib/python2.7/dist-packages/whereami-0.3.50-py2.7.egg/whereami/learn.py", line 22, in learn new_sample = sample() File "/usr/local/lib/python2.7/dist-packages/whereami-0.3.50-py2.7.egg/whereami/get_data.py", line 15, in sample aps = wifi_scanner.get_access_points() File "/usr/local/lib/python2.7/dist-packages/access_points/init.py", line 77, in get_access_points results = self.parse_output(out) File "/usr/local/lib/python2.7/dist-packages/access_points/init.py", line 210, in parse_output ssid, bssid, quality, security = split_escaped(line, ':') ValueError: need more than 1 value to unpack

What kind of additional argument I should put in the command?

Thanks

kootenpv commented 7 years ago

Thanks for posting an issue. It seems an issue in access_points. Are you sure you are connected and there are some wifi access_points available? I hope someone else using ubuntu could verify as I do not have access to a Ubuntu machine (with wifi).

Perhaps another possibility might be to uninstall:

pip uninstall whereami

and use:

pip3 install whereami

Does that work for you? Though I'm not aware of any issues with python 2 on ubuntu, it might be worth a try.

MaDragon commented 7 years ago

Hi Kootenpv,

Thanks for your responding.

I have tried in a native ubuntu PC and it worked.

I think the issue was caused by the wifi card in previous PC.

Thanks

kootenpv commented 7 years ago

@MaDragon Thanks for narrowing down the problem. Feel free to close the issue if you think there's no way I can help.