Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###From notifier.py
- # Notify user for discovered Pokemon
- def pokemon_found(pokemon):
- #pushbulley channel
- # Or retrieve a channel by its channel_tag. Note that an InvalidKeyError is raised if the channel_tag does not exist
- my_channel = pushbullet_client.get_channel('CHANNELNAME HERE')
- # get name
- pokename = _str(pokemon["name"]).lower()
- ### My error
- [-] register_background_thread called
- [-] register_background_thread: not running inside Flask so not starting thread
- * Restarting with stat
- [-] register_background_thread called
- [-] register_background_thread: initial registration
- [+] Locale is en
- [+] Getting initial location
- [!] lat/long/alt: 42.26438 -83.199293 0
- [!] PTC login for: MYUSERNAME
- * Debugger is active!
- * Debugger pin code: 143-535-666
- * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
- [+] RPC Session Token: TGT-2832335-yszFZ0TkeYveZ ...
- [+] Received API endpoint: https://pgorelease.nianticlabs.com/plfe/207/rpc
- [+] Login successful
- [+] Username: MYUSERNAME
- [+] You started playing Pokemon Go on: 2016-07-23 11:10:03
- [+] POKECOIN: 0
- [+] STARDUST: 0
- [-] looping: step 1 of 100
- [+] Searching for Pokemon at location 42.26438 -83.199293
- Pokemon : {'lat': 42.2637243984573, 'lng': -83.1982648051414, 'disappear_time': 1469367862.206, 'id': 92, 'name': u'Gastly'}
- Exception in thread search_thread:
- Traceback (most recent call last):
- File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner
- self.run()
- File "C:\Python27\lib\threading.py", line 754, in run
- self.__target(*self.__args, **self.__kwargs)
- File "C:\Users\user\Desktop\PokemonGo-Finder-master\main.py", line 627, in main
- pokemonsJSON, ignore, only)
- File "C:\Users\user\Desktop\PokemonGo-Finder-master\main.py", line 736, in process_step
- notifier.pokemon_found(pokemon_obj)
- File "C:\Users\user\Desktop\PokemonGo-Finder-master\notifier.py", line 50, in pokemon_found
- my_channel = pushbullet_client.get_channel('CHANNELNAME HERE')
- AttributeError: 'Pushbullet' object has no attribute 'get_channel'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement