PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Bug with specifying config on dev

Open lbanz opened this issue 10 years ago • 2 comments

Previously I can just do 'python pokecli.py -cf ./configs/config.json' and specify a config file. Now it breaks and gives me this error. The config file is fine, when I run it with ./run.sh or ./pokecli.py it runs without any problems.

I'm guessing it's because an environmental path is not set correctly?

Traceback (most recent call last): File "pokecli.py", line 46, in from pokemongo_bot import inventory File "/Users/xxx/PokemonGo-Bot/pokemongo_bot/init.py", line 28, in from pokemongo_bot.event_handlers import LoggingHandler, SocketIoHandler, ColoredLoggingHandler, SocialHandler File "/Users/xxx/PokemonGo-Bot/pokemongo_bot/event_handlers/init.py", line 4, in from social_handler import SocialHandler File "/Users/xxx/PokemonGo-Bot/pokemongo_bot/event_handlers/social_handler.py", line 4, in import paho.mqtt.client as mqtt ImportError: No module named paho.mqtt.client

lbanz avatar Aug 24 '16 13:08 lbanz

pip install -r requirements.txt --upgrade

supergithubo avatar Aug 24 '16 15:08 supergithubo

That worked! thanks. I thought the ./setup -u script does put the --upgrade parameters. I guess not!

lbanz avatar Aug 24 '16 15:08 lbanz