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

Error: Please run pip install -r requirements.txt #4181

Closed
Dexter145 opened this issue Aug 17, 2016 · 23 comments
Closed

Error: Please run pip install -r requirements.txt #4181

Dexter145 opened this issue Aug 17, 2016 · 23 comments

Comments

@Dexter145
Copy link

Expected Behavior

Bot starts running

Actual Behavior

Error:
/root/PokemonGo-Bot/pokemongo_bot/datastore.py:17: UserWarning: Please run pip install -r requirements.txt to ensure you have the latest required packages
warnings.warn('Please run pip install -r requirements.txt to ensure you have the latest required packages')
Wed Aug 17 22:50:55 CEST 2016 Pokebot configs/config.json Stopped.
Press any button or wait 20 seconds to continue.

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

http://pastebin.com/gDcav1AJ

Output when issue occurred

After latest update, before it was running well.

Steps to Reproduce

Run pip install -r requirements.txt

Other Information

OS: Debian 7
Branch:
master
Git Commit:
86fc774
Python Version: 2.7.3
Any other relevant files/configs (eg: path files)

@Dexter145
Copy link
Author

It's working again, don't no why it stops working and a few minutes later works again.

@cwild
Copy link
Contributor

cwild commented Aug 17, 2016

Are you using virtualenv? I cannot reproduce this.

@trademarrk
Copy link

trademarrk commented Aug 17, 2016

im getting this issue too not sure whats wrong, did `pip install -r requirements.txt
and got Installing collected packages: pgoapi
Running setup.py develop for pgoapi
Successfully installed pgoapi-1.1.6

@cwild
Copy link
Contributor

cwild commented Aug 17, 2016

Are you on the same commit? Did you update the required packages?

@trademarrk
Copy link

trademarrk commented Aug 17, 2016

yea updated it and yes same commit, still gives me the warning after the update

@cwild
Copy link
Contributor

cwild commented Aug 17, 2016

What does pip freeze show please?

@trademarrk
Copy link

alabaster==0.7.9
argh==0.26.2
Babel==2.3.4
backports-abc==0.4
certifi==2016.8.8
click==6.6
colorama==0.3.7
CommonMark==0.5.4
ConfigArgParse==0.10.0
contextlib2==0.5.4
decorator==4.0.10
demjson==2.2.4
docutils==0.12
enum34==1.1.6
eventlet==0.19.0
Flask==0.11.1
Flask-CacheBust==1.0.0
Flask-Compress==1.3.0
Flask-Cors==2.1.2
funcsigs==1.0.2
future==0.15.2
geopy==1.11.0
googlemaps==2.4.4
gpsoauth==0.3.0
gpxpy==1.1.1
greenlet==0.4.9
haversine==0.4.5
imagesize==0.7.1
iniherit==0.3.4
itsdangerous==0.24
Jinja2==2.8
LatLon==1.0.1
livereload==2.4.1
MarkupSafe==0.23
mock==2.0.0
networkx==1.11
numpy==1.11.0
pathtools==0.1.2
pbr==1.10.0
peewee==2.8.1
pgoapi==1.1.6
polyline==1.3.1
port-for==0.3.1
protobuf==3.0.0b4
protobuf-to-dict==0.1.0
pycryptodomex==3.4.2
Pygments==2.1.3
PyMySQL==0.7.5
pyproj==1.9.5.1
PySocks==1.5.6
python-engineio==0.9.2
python-slugify==1.2.0
python-socketio==1.4.2
pytz==2016.6.1
PyYAML==3.11
raven==5.23.0
recommonmark==0.4.0
requests==2.10.0
s2sphere==0.2.4
singledispatch==3.4.0.3
six==1.10.0
snowballstemmer==1.2.1
socketIO-client==0.7.0
Sphinx==1.4.5
sphinx-autobuild==0.6.0
sphinx-rtd-theme==0.1.9
timeout-decorator==0.3.2
tornado==4.4.1
Unidecode==0.4.19
virtualenv==15.0.3
watchdog==0.8.3
websocket-client==0.37.0
Werkzeug==0.11.10
xxhash==0.6.1
yoyo-migrations==5.0.3

@trademarrk
Copy link

any idea what it could be?

@cwild
Copy link
Contributor

cwild commented Aug 17, 2016

Could you add raise on the line above this:

warnings.warn('Please run `pip install -r requirements.txt` to ensure you have the latest required packages')

What output is shown now?

@trademarrk
Copy link

try:
from yoyo import read_migrations, get_backend
except ImportError:
raise
warnings.warn('Please run pip install -r requirements.txt to ensure you have the latest required packages')
sys.exit(-1)
like that?

@cwild
Copy link
Contributor

cwild commented Aug 17, 2016

Yes, just make sure you match the indentation with the correct number of spaces.

@trademarrk
Copy link

Traceback (most recent call last):
File "pokecli.py", line 42, in
from pokemongo_bot import PokemonGoBot, TreeConfigBuilder
File "/Users/PokemonGo-Bot/pokemongo_bot/init.py", line 32, in
from pokemongo_bot.datastore import DatabaseManager, Datastore
File "/Users/PokemonGo-Bot/pokemongo_bot/datastore.py", line 17, in
Raise
NameError: name 'Raise' is not defined
Wed 17 Aug 2016 18:12:40 EDT Pokebot Stopped.
Press any button or wait 20 seconds to continue.

@trademarrk
Copy link

try:
from yoyo import read_migrations, get_backend
except ImportError:
Raise
warnings.warn('Please run pip install -r requirements.txt to ensure you have the latest required packages')
sys.exit(-1)

@trademarrk
Copy link

thats what how the edit looks in the file

@cwild
Copy link
Contributor

cwild commented Aug 17, 2016

Lowercase raise

@trademarrk
Copy link

Traceback (most recent call last):
File "pokecli.py", line 42, in
from pokemongo_bot import PokemonGoBot, TreeConfigBuilder
File "/Users/PokemonGo-Bot/pokemongo_bot/init.py", line 32, in
from pokemongo_bot.datastore import DatabaseManager, Datastore
File "/Users/PokemonGo-Bot/pokemongo_bot/datastore.py", line 15, in
from yoyo import read_migrations, get_backend
ImportError: No module named yoyo
Wed 17 Aug 2016 18:15:27 EDT Pokebot Stopped.

@trademarrk
Copy link

i get that when raise is put in

@cwild
Copy link
Contributor

cwild commented Aug 17, 2016

I was kind of hoping for something else to be honest as the pip freeze showed yoyo-migrations==5.0.3 correctly.

Are you using a virtualenv? You haven't dropped out of it by mistake? Can you re-activate with source bin/activate (or as appropriate for the venv)?

@trademarrk
Copy link

yea thats what i downloaded, should still be there i can reinstall if anything, not to sre how to re activate

@trademarrk
Copy link

The directory '/Users/Paradox/Library/Caches/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 '/Users/Paradox/Library/Caches/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.
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

this is what i get when i reinstall virtualenv

@trademarrk
Copy link

got it to work had to ./setup.sh -i

@cwild
Copy link
Contributor

cwild commented Aug 17, 2016

Glad to hear it is resolved for you.

@trademarrk
Copy link

thanks for the help though (y)

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

3 participants