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

"pokecli.py", line 42 | Raspberry Pi 2 #5250

Closed
SlaYxK opened this issue Sep 6, 2016 · 10 comments
Closed

"pokecli.py", line 42 | Raspberry Pi 2 #5250

SlaYxK opened this issue Sep 6, 2016 · 10 comments

Comments

@SlaYxK
Copy link

SlaYxK commented Sep 6, 2016

Expected Behavior

I got a Raspberry Pi 2 with Raspbian an everything is installed. Virtuelenv won't work and the bot wont start.

Actual Behavior

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

Standart config.json

Output when issue occurred

(PokemonGo-Bot) root@raspberrypi:/usr/share/pokemon/PokemonGo-Bot# python pokecl                                                                                                                                                             i.py
Traceback (most recent call last):
  File "pokecli.py", line 42, in <module>
    from pgoapi.exceptions import NotLoggedInException, ServerSideRequestThrottl                                                                                                                                                             ingException, ServerBusyOrOfflineException, NoPlayerPositionSetException
ImportError: No module named pgoapi.exceptions

Other Information

OS: Raspbian
Branch: dev
Python Version: Python 2.7.9
Any other relevant files/configs (eg: path files)

@mmeulstee
Copy link

run "sudo pip install requirements.txt" on rpi

@SlaYxK
Copy link
Author

SlaYxK commented Sep 6, 2016

run "sudo pip install requirements.txt" on rpi
i did it before
and with "pip install -r requirements.txt"

root@raspberrypi:/usr/share/pokemon/PokemonGo-Bot# pip install requirements.txt Downloading/unpacking requirements.txt
  Could not find any downloads that satisfy the requirement requirements.txt
Cleaning up...
No distributions at all found for requirements.txt
Storing debug log for failure in /root/.pip/pip.log

@sohje
Copy link
Contributor

sohje commented Sep 6, 2016

install -r requirements.txt

@SlaYxK
Copy link
Author

SlaYxK commented Sep 6, 2016

Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-Qpwnad/protobuf-to-dict
Storing debug log for failure in /root/.pip/pip.log

this is the end of "pip install -r requirements.txt"

@DBa2016
Copy link
Contributor

DBa2016 commented Sep 6, 2016

And what is in /root/.pip/pip.log ?

@jnnck
Copy link

jnnck commented Sep 6, 2016

have you tried installing python dev and afterwards installing the requirements again?

sudo apt-get install python-dev

@jrjhealey
Copy link

You'll want to run the pip command once you've already set up virtualenv.

Make sure you've got it installed. You can check with virtualenv --version

If you get nothing, that's your problem I'd say (at least to start with).

@foster82
Copy link

foster82 commented Sep 6, 2016

I had the same problem at first. You need to add ..

deb http://archive.raspbian.org/raspbian jessie main contrib non-free

To your source.list file then..

Sudo apt-get update

Then..

Sudo apt-get install -y python-dev.

It should then install. Once done follow the manual install process. I did this and is working fine on my b+. :)

@Gobberwart
Copy link
Contributor

Solution provided

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants