tehp / OpenPoGoBot

A PokemonGo Python bot - NO LONGER MAINTAINED
MIT License
123 stars 53 forks source link

Cannot find PoGoAPI, Script Wrongly Named #339

Closed UnKn0wN-Binary-zz closed 8 years ago

UnKn0wN-Binary-zz commented 8 years ago

Expected Behavior

Bot Starts as normal

Actual Behavior

Bot Returns:

**C:\Users\Root\Desktop\OpenPoGoBot>pokecli.py config/config.yml Traceback (most recent call last): File "C:\Users\Root\Desktop\OpenPoGoBot\pokecli.py", line 38, in from pokemongo_bot.bot import PokemonGoBot File "C:\Users\Root\Desktop\OpenPoGoBot\pokemongo_botinit.py", line 6, in

from pgoapi import PGoApi ImportError: No module named pgoapi** C:\Users\Root\Desktop\OpenPoGoBot>pokecli.py config/config.yml Traceback (most recent call last): File "C:\Users\Root\Desktop\OpenPoGoBot\pokecli.py", line 38, in from pokemongo_bot.bot import bot File "C:\Users\Root\Desktop\OpenPoGoBot\pokemongo_bot__init__.py", line 6, in from pgoapi import PGoApi ImportError: No module named pgoapi C:\Users\Root\Desktop\OpenPoGoBot>pokecli.py config/config.yml Traceback (most recent call last): File "C:\Users\Root\Desktop\OpenPoGoBot\pokecli.py", line 38, in from pokemongo_bot.bot import bot File "C:\Users\Root\Desktop\OpenPoGoBot\pokemongo_bot__init__.py", line 6, in from env.src.pgoapi import PGoApi ImportError: No module named env.src.pgoapi C:\Users\Root\Desktop\OpenPoGoBot>pokecli.py config/config.yml Traceback (most recent call last): File "C:\Users\Root\Desktop\OpenPoGoBot\pokecli.py", line 38, in from pokemongo_bot.bot import bot File "C:\Users\Root\Desktop\OpenPoGoBot\pokemongo_bot__init__.py", line 6, in from env.src.pgoapi.pgoapi import PGoApi ImportError: No module named env.src.pgoapi.pgoapi C:\Users\Root\Desktop\OpenPoGoBot> I tried to change the file name to the correct filename but it would not work. Current Path is: OpenPoGoBot\env\src\pgoapi\pgoapi ### Steps to Reproduce Download Current Build ### Other Information OS: win7 Git Commit:
UnKn0wN-Binary-zz commented 8 years ago

Also I downloaded the Bot Using the Instructions and Git Bash to download. Changed all Config Files in the Config Folder and have added the encrypt.dll to my main PoGoBot folder.

UnKn0wN-Binary-zz commented 8 years ago

pogobot

OhJayGee commented 8 years ago

did you do 'pip install -r requirements.txt' after the download? as in: git clone --recursive https://www.github.com/OpenPoGo/OpenPoGoBot cd OpenPoGoBot virtualenv env source env/bin/activate pip install -r requirements.txt

also have protobuf3 installed before?

and then run with 'python2 pokecli.py config/config.yml (and also have the config files in config/plugins/ renamed to .yml ?)

UnKn0wN-Binary-zz commented 8 years ago

I did do the-r requirements. I didn't run with python2 only python so I will try that. Yes I have protobuf3 installed. Changed all of the configuration files but I will double check.

UnKn0wN-Binary-zz commented 8 years ago

$ python pokecli.py config/config.yml Traceback (most recent call last): File "pokecli.py", line 88, in main() File "pokecli.py", line 73, in main kernel.boot() File "C:\Users\Root\Desktop\OpenPoGoBot\app\kernel.py", line 55, in boot self.load_config() File "C:\Users\Root\Desktop\OpenPoGoBot\app\kernel.py", line 32, in load_config self._configs['core'] = ruamel.yaml.load(config_file.read(), ruamel.yaml.RoundTripLoader) File "C:\Users\Root\Desktop\OpenPoGoBot\env\lib\site-packages\ruamel\yaml\main.py", line 75, in load return loader.get_single_data() File "C:\Users\Root\Desktop\OpenPoGoBot\env\lib\site-packages\ruamel\yaml\constructor.py", line 62, in get_single_data return self.construct_document(node) File "C:\Users\Root\Desktop\OpenPoGoBot\env\lib\site-packages\ruamel\yaml\constructor.py", line 66, in construct_document data = self.construct_object(node) File "C:\Users\Root\Desktop\OpenPoGoBot\env\lib\site-packages\ruamel\yaml\constructor.py", line 120, in construct_object data = next(generator) File "C:\Users\Root\Desktop\OpenPoGoBot\env\lib\site-packages\ruamel\yaml\constructor.py", line 1042, in construct_yaml_map data = CommentedMap() File "c:\python27\Lib\collections.py", line 48, in init self.update(_args, *_kwds) TypeError: update() takes exactly 2 arguments (1 given) (env)

UnKn0wN-Binary-zz commented 8 years ago

Brand New Install with the above configurations completed.

keroy commented 8 years ago

you're not loading in the virtualenv environment. source env/bin/activate <--- you'll need to call this

UnKn0wN-Binary-zz commented 8 years ago

How would I go about calling it, I ran the command and it says below:

(Env)

That's all, do I need to call it in every bot run?

UnKn0wN-Binary-zz commented 8 years ago

Also source env/bin/activate is not a valid Path. The Path I have is:

C:\Users\Root\Desktop\OpenPoGoBot\env\Scripts

image

UnKn0wN-Binary-zz commented 8 years ago

So, Did a Brand new install on a Virtual Box, Installed everything as aboe and in the install, changed all of the configs and now I get this:

python pokecli.py config/config.yml Traceback (most recent call last): File "pokecli.py", line 88, in main() File "pokecli.py", line 73, in main kernel.boot() File "C:\Users\root\Desktop\OpenPoGoBot\app\kernel.py", line 55, in boot self.load_config() File "C:\Users\root\Desktop\OpenPoGoBot\app\kernel.py", line 39, in load_config for node in os.listdir(os.path.join(config_dir, plugin_configdir)): WindowsError: [Error 3] The system cannot find the path specified: 'config\c/._'

bornbygoogle commented 8 years ago

Change the last line in the config.yml, i had same prob. Double check the last line config.yml.example and your config file, you'll see the difference.

UnKn0wN-Binary-zz commented 8 years ago

YOu are awesome, I don't know why the New Pull wouldn't update that, appreciate all of the help.