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

zsh: command not found: display_info #27

Closed huanzhang closed 6 years ago

huanzhang commented 7 years ago

osx got "zsh: command not found: display_info" error

kootenpv commented 7 years ago

Turns out:

https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/common-aliases/common-aliases.plugin.zsh#L47

In zsh whereami is an alias. Try running another shell.

Or try calling by its full path:

e.g. for example: /Library/Frameworks/Python.framework/Versions/3.5/bin/whereami

2 ways to find out the path for you:

1) open another non-zsh shell and try which whereami.

2) open a python shell:

>>> import whereami
>>> whereami
<module 'whereami' from '/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/whereami/__init__.py'>

You could then also add a new alias to your zsh file alias whereami="your new path"

mcornella commented 6 years ago

You can also run unalias whereami to delete the alias. We're going to delete that, FWIW. (Closable issue).

kootenpv commented 6 years ago

Thanks for the update and another solution @mcornella, much appreciated.