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 #3237

Closed
havenofear opened this issue Aug 9, 2016 · 7 comments
Closed

ImportError: No module named pgoapi.exceptions #3237

havenofear opened this issue Aug 9, 2016 · 7 comments

Comments

@havenofear
Copy link

Reinstalled anything. still got this
File "pokecli.py", line 38, in
from pgoapi.exceptions import NotLoggedInException, ServerSideRequestThrottlingException, ServerBusyOrOfflineException
ImportError: No module named pgoapi.exceptions

@urbels
Copy link

urbels commented Aug 9, 2016

did you run pip install without errors?

@havenofear
Copy link
Author

Exception:
Traceback (most recent call last):
File "c:\program files (x86)\python\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "c:\program files (x86)\python\lib\site-packages\pip\commands\install.py", line 317, in run
prefix=options.prefix_path,
File "c:\program files (x86)\python\lib\site-packages\pip\req\req_set.py", line 742, in install
**kwargs
File "c:\program files (x86)\python\lib\site-packages\pip\req\req_install.py", line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "c:\program files (x86)\python\lib\site-packages\pip\req\req_install.py", line 1032, in move_wheel_files
isolated=self.isolated,
File "c:\program files (x86)\python\lib\site-packages\pip\wheel.py", line 346, in move_wheel_files
clobber(source, lib_dir, True)
File "c:\program files (x86)\python\lib\site-packages\pip\wheel.py", line 317, in clobber
ensure_dir(destdir)
File "c:\program files (x86)\python\lib\site-packages\pip\utils__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "c:\program files (x86)\python\lib\os.py", line 157, in makedirs
mkdir(name, mode)
WindowsError: [Error 5] : 'c:\program files (x86)\python\Lib\site-packages\numpy'

@bruvv
Copy link
Contributor

bruvv commented Aug 9, 2016

sesarch

@chypriote
Copy link

chypriote commented Aug 9, 2016

I had this error and fixed this by rerunning:

virtualenv .
Scripts/activate.bat
pip install -r requirements.txt

On Win10

@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!

@havenofear
Copy link
Author

i don't know what to do. i uninstalled everything. even Python and pip. Make everything one more time - same error.

@RedViper9
Copy link
Contributor

RedViper9 commented Aug 11, 2016

If you did

virtualenv .
Scripts\activate
pip install -r requirements.txt

then you will need to do

Scripts\activate
python pokecli.py

to get the bot to run properly.

@k4n30 k4n30 closed this as completed Aug 16, 2016
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

7 participants