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

SybtaxError cath_log event

Open ghost opened this issue 10 years ago • 9 comments

Expected Behavior

Works

Actual Behavior

Traceback (most recent call last):
  File "pokecli.py", line 45, in <module>
    from pokemongo_bot import PokemonGoBot, TreeConfigBuilder
  File "/home/carlos/Documentos/POKEMON/PokemonGo-Bot/pokemongo_bot/__init__.py", line 625
    self.event_manager.register_event('catch_log')
       ^
SyntaxError: invalid syntax

Your FULL config.json (remove your username, password, gmapkey and any other private info)

Output when issue occurred

Steps to Reproduce

Other Information

OS: Fedora 24

Branch: dev

Git Commit: 838fea4298b79acfac07447d8328a4672b583667

Python Version: 2.7

Any other relevant files/configs (eg: path files)

Short Description

Possible solution

How it would help others

ghost avatar Sep 02 '16 14:09 ghost

Same here. Did a pit pull, then it won't start. it's a good thing i have an old working version still not deleted.

avexus avatar Sep 02 '16 14:09 avexus

It is some minor problem. You can fix it by doing the following steps:

  1. In pokemongo_bot/init.py line 623 add ")" self.event_manager.register_event( 'save_spawn', parameters=('pokemon','location') )
  2. In cell_workers/pokemon_catch_worker.py remove from "<<<<<<< HEAD" to "=======" (line 666 to 699) and remove ">>>>>>> e83c7e6b368ea77849c83eb07281b1e30acd8137" ( conflict).

Edit: you need to delete line 153 self.dump_pokemon_spawn(pokemon) as well on the cell_workers/pokemon_catch_worker.py

tienthanhdhcn avatar Sep 02 '16 15:09 tienthanhdhcn

guess it's no testing before commit

avexus avatar Sep 02 '16 15:09 avexus

@tienthanhdhcn, could you change it and commit back to the dev branch? I think more people will have the same problem.

avexus avatar Sep 02 '16 15:09 avexus

@avexus sorry I cannot have permission to commit to the project :)

tienthanhdhcn avatar Sep 02 '16 15:09 tienthanhdhcn

yep, have the same problem as of commit 838fea4

r3pek avatar Sep 02 '16 15:09 r3pek

Post here You solution @tienthanhdhcn

ghost avatar Sep 02 '16 15:09 ghost

thanks @tienthanhdhcn It's work fine ow

loflol avatar Sep 02 '16 16:09 loflol

Fixed. You need to pull

oralunal avatar Sep 02 '16 16:09 oralunal