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

[HELP] No module named pgoapi.exceptions - line 38, in <module> #3261

Closed
Kamidh opened this issue Aug 9, 2016 · 12 comments
Closed

[HELP] No module named pgoapi.exceptions - line 38, in <module> #3261

Kamidh opened this issue Aug 9, 2016 · 12 comments

Comments

@Kamidh
Copy link

Kamidh commented Aug 9, 2016

Hi I have this problem...

"Traceback (most recent call last):
File "pokecli.py", line 38, in
from pgoapi.exceptions import NotLoggedInException, ServerSideRequestThrottlingException, ServerBusyOrOfflineException
ImportError: No module named pgoapi.exceptions"

After this : pip install -r requirements.txt, I have this error :

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/ly/ylvd8kvn1_zf4_21ldq1smz00000gn/T/pip-build-V34e5q/protobuf-to-dict/

Thanks for help, many users with same problem.

Other Information

OS: OSX Sierra
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)
Python Version: Python 2.7.10

@licklake
Copy link

licklake commented Aug 9, 2016

Got the same problem after the last pull.
What has changed in pokecli.py or the dir structure??

@Kamidh
Copy link
Author

Kamidh commented Aug 9, 2016

Yes same problem with line 38. Sorry my english is bad

@licklake
Copy link

licklake commented Aug 9, 2016

This is probably caused by #3241

But thats just a guess

@cmezh
Copy link
Contributor

cmezh commented Aug 9, 2016

No, it works with #3241. Do you run in vitrualenv?
Maybe you should backup your config and make clean git clone.

@eriweb
Copy link
Contributor

eriweb commented Aug 9, 2016

could you paste more of the pip output?
afaik #3241 hasn't been merged yet, so unless you're testing that specifically it shouldn't cause this

@licklake
Copy link

licklake commented Aug 9, 2016

I will clone it from scratch and try it again.

EDIT: Cloned dev with no extras. Works now

@mattyhead
Copy link

You need to source bin/activate or add it to your launch script.

@spencerby28
Copy link

In this particular case, pip install -r requirements.txt will install all listed package versions to the exact specified version. Most of them work just fine as pip should behave, as they are managed packages of the pypi. The exception here is the pgoapi package, listed on line 3. It is not a pypi package. It is a github repository. Pip handle it badly. In occasions you have to remove the whole repository cloned by pip (rm -rf pgoapi) and do pip install again, i.e. pip install -r requirements.txt

This is a great opportunity to learn python!

@Kamidh
Copy link
Author

Kamidh commented Aug 9, 2016

I try "source bin/activate" but nothing happen, you think problem is here?

@pckz
Copy link

pckz commented Aug 10, 2016

After:
virtualenv . && source bin/activate && pip install -r requirements.txt
you must run
./install.sh
finally will work doing
./run.sh

@Kamidh
Copy link
Author

Kamidh commented Aug 10, 2016

Ok, i try but same things.

(PokemonGo-Bot)plexmediaservermacbookpro15:PokemonGo-Bot Baptiste$ ./run.sh
Traceback (most recent call last):
  File "pokecli.py", line 38, in <module>
    from pgoapi.exceptions import NotLoggedInException, ServerSideRequestThrottlingException, ServerBusyOrOfflineException
ImportError: No module named pgoapi.exceptions
Press any button or wait 20 seconds.Mer 10 aoû 2016 23:29:19 CESTPokebot Stopped.
Traceback (most recent call last):
  File "pokecli.py", line 38, in <module>
    from pgoapi.exceptions import NotLoggedInException, ServerSideRequestThrottlingException, ServerBusyOrOfflineException
ImportError: No module named pgoapi.exceptions
Press any button or wait 20 seconds.

@malopetrov
Copy link

i did manage to bypass this error after pip install -r requirements.txt BUT pip from the bot/scripts folder not from python:
Win10:

/c/python27/scripts/pip install -r requirements.txt > checks modules, shows its ok > run > import error
/c/user/[...]/PokemonGo-Bot/Scripts/pip install -r requirements.txt > installs > run > ok

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