Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. ###From notifier.py
  2.  
  3. # Notify user for discovered Pokemon
  4. def pokemon_found(pokemon):
  5. #pushbulley channel
  6. # Or retrieve a channel by its channel_tag. Note that an InvalidKeyError is raised if the channel_tag does not exist
  7. my_channel = pushbullet_client.get_channel('CHANNELNAME HERE')
  8. # get name
  9. pokename = _str(pokemon["name"]).lower()
  10.  
  11.  
  12. ### My error
  13.  
  14. [-] register_background_thread called
  15. [-] register_background_thread: not running inside Flask so not starting thread
  16. * Restarting with stat
  17. [-] register_background_thread called
  18. [-] register_background_thread: initial registration
  19. [+] Locale is en
  20. [+] Getting initial location
  21. [!] lat/long/alt: 42.26438 -83.199293 0
  22. [!] PTC login for: MYUSERNAME
  23. * Debugger is active!
  24. * Debugger pin code: 143-535-666
  25. * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
  26. [+] RPC Session Token: TGT-2832335-yszFZ0TkeYveZ ...
  27. [+] Received API endpoint: https://pgorelease.nianticlabs.com/plfe/207/rpc
  28. [+] Login successful
  29. [+] Username: MYUSERNAME
  30. [+] You started playing Pokemon Go on: 2016-07-23 11:10:03
  31. [+] POKECOIN: 0
  32. [+] STARDUST: 0
  33. [-] looping: step 1 of 100
  34. [+] Searching for Pokemon at location 42.26438 -83.199293
  35. Pokemon : {'lat': 42.2637243984573, 'lng': -83.1982648051414, 'disappear_time': 1469367862.206, 'id': 92, 'name': u'Gastly'}
  36. Exception in thread search_thread:
  37. Traceback (most recent call last):
  38. File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner
  39. self.run()
  40. File "C:\Python27\lib\threading.py", line 754, in run
  41. self.__target(*self.__args, **self.__kwargs)
  42. File "C:\Users\user\Desktop\PokemonGo-Finder-master\main.py", line 627, in main
  43. pokemonsJSON, ignore, only)
  44. File "C:\Users\user\Desktop\PokemonGo-Finder-master\main.py", line 736, in process_step
  45. notifier.pokemon_found(pokemon_obj)
  46. File "C:\Users\user\Desktop\PokemonGo-Finder-master\notifier.py", line 50, in pokemon_found
  47. my_channel = pushbullet_client.get_channel('CHANNELNAME HERE')
  48. AttributeError: 'Pushbullet' object has no attribute 'get_channel'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement