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

ImportError: No module named pgoapi.exceptions #5112

Closed
MTeres opened this issue Sep 2, 2016 · 6 comments
Closed

ImportError: No module named pgoapi.exceptions #5112

MTeres opened this issue Sep 2, 2016 · 6 comments

Comments

@MTeres
Copy link

MTeres commented Sep 2, 2016

(PokemonGo-Bot-master)marcus@marcus-K45VM:~/Transferências/PokemonGo-Bot-master$ ./run.sh
Traceback (most recent call last):
File "pokecli.py", line 42, in
from pgoapi.exceptions import NotLoggedInException, ServerSideRequestThrottlingException, ServerBusyOrOfflineException, NoPlayerPositionSetException
ImportError: No module named pgoapi.exceptions
Sex Set 2 16:37:19 BRT 2016 Pokebot Stopped.
Press any button or wait 20 seconds to continue.

to solve:

git pull - ok
git submodule update --init --recursive - ok
git submodule foreach git pull origin master - ok
source bin/activate - ok
pip install -r requirements.txt --upgrade - e1
pip install -r requirements.txt
- e1

e1:
File "..../PokemonGo-Bot-master/bin/pip", line 1
SyntaxError: Non-ASCII character '\xc3' in file ..../PokemonGo-Bot-master/bin/pip on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

when i use:

git pull - ok
git submodule update --init --recursive - ok
git submodule foreach git pull origin master - ok
source bin/activate - ok
sudo pip install -r requirements.txt --upgrade - alert1
sudo pip install -r requirements.txt
- alert1

alert1:

The directory '..../.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/marcus/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

And the error at ./run.sh continue.

Help?

@Cephis
Copy link

Cephis commented Sep 2, 2016

I've had the same error today.
i've done:
virtualenv .
source bin/activate
pip install -r requirements.txt
./run.sh

and the problem was resolved.

@MTeres
Copy link
Author

MTeres commented Sep 2, 2016

When i try:
(PokemonGo-Bot-master)marcus@marcus-K45VM:~..../PokemonGo-Bot-master$ pip install -r requirements.txt
File ".../PokemonGo-Bot-master/bin/pip", line 1
SyntaxError: Non-ASCII character '\xc3' in file /home/marcus/Transferências/PokemonGo-Bot-master/bin/pip on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

@sohje
Copy link
Contributor

sohje commented Sep 2, 2016

Dont run pip install as sudo.
Show output of this command:

cat bin/pip

@MTeres
Copy link
Author

MTeres commented Sep 3, 2016

-- coding: utf-8 --

import re
import sys

from pip import main

if name == 'main':
sys.argv[0] = re.sub(r'(-.pyw|.exe)?$', '', sys.argv[0])
sys.exit(main())

@Huanzhang89
Copy link

I'm having the same issue and my bin/pip is the same as MTeres

@YvesHenri
Copy link
Contributor

I'm closing this as it might have already been fixed (too old). If it isn't, please reopen a new one.

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

5 participants