Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS Detection crashes when running on another platform then linux/win32/darwin #3998

Closed
cliffalbert opened this issue Aug 15, 2016 · 1 comment
Labels

Comments

@cliffalbert
Copy link

Expected Behavior

Starting up app

Actual Behavior

2016-08-15 15:46:28,120 [ cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "./pokecli.py", line 595, in
main()
File "./pokecli.py", line 90, in main
bot.start()
File "/export/home/cliff/PGBot/PokemonGo-Bot/pokemongo_bot/init.py", line 86, in start
self._setup_api()
File "/export/home/cliff/PGBot/PokemonGo-Bot/pokemongo_bot/init.py", line 710, in _setup_api
self.api.activate_signature(self.get_encryption_lib())
File "/export/home/cliff/PGBot/PokemonGo-Bot/pokemongo_bot/init.py", line 689, in get_encryption_lib
full_path = path + '/'+ file_name
UnboundLocalError: local variable 'file_name' referenced before assignment

Steps to Reproduce

Run on different OS (Solaris, FreeBSD, etc)

Patch to report unsupported OS, altough most unices could be but under the darwin linux header.

patch-pokemongo-os-detection.diff.txt

Other Information

OS: Solaris 11
Git Commit: 40ea942
Python Version:

Python 2.7.9

@simonsmh
Copy link
Contributor

#4068

@k4n30 k4n30 closed this as completed Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants