PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

[dev] bot crashes on startup

Open Mooseymax opened this issue 10 years ago • 18 comments

Expected Behavior

Bot to run

Actual Behavior

Crashing on startup (after latest sync)

The following error happens when doing "pip install -r requirements.txt"

building 'markupsafe._speedups' extension
error: [Error 2] The system cannot find the file specified

And the following error happens when trying to actually run the bot ImportError: No module named socketIO_client

Steps to Reproduce

Whenever I run the dev bot following recent sync.

Other Information

OS: Windows Git Commit: be9e7bb79de33a7d177014184c510b2c60513be8

Mooseymax avatar Jul 29 '16 15:07 Mooseymax

Requirements seem to have changed on one of the releases overnight - try pip install -r requirements.txt --upgrade

zjr8 avatar Jul 29 '16 15:07 zjr8

I had already tried pulling a fresh release from git, so all files are up to date as at the last revision.

Doing pip install -r requirements.txt --upgrade results in the first error listed above.

building 'markupsafe._speedups' extension
error: [Error 2] The system cannot find the file specified

Thanks anyway :)

Mooseymax avatar Jul 29 '16 15:07 Mooseymax

No Worries - at least in my virtual environment the same error was fixed by a dependency update / reinstall - as dependencies were added

python-socketio==1.4.2 flask==0.11.1 socketIO_client==0.7.0 eventlet==0.19.0 universal-analytics-python==0.2.4

Appears to have been changed in thist commit

zjr8 avatar Jul 29 '16 15:07 zjr8

Same here: fresh clone of the dev git and then: pip install -r requirements.txt

creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\markupsafe
copying markupsafe\tests.py -> build\lib.win-amd64-2.7\markupsafe
copying markupsafe\_compat.py -> build\lib.win-amd64-2.7\markupsafe
copying markupsafe\_constants.py -> build\lib.win-amd64-2.7\markupsafe
copying markupsafe\_native.py -> build\lib.win-amd64-2.7\markupsafe
copying markupsafe\__init__.py -> build\lib.win-amd64-2.7\markupsafe
running egg_info
writing MarkupSafe.egg-info\PKG-INFO
writing top-level names to MarkupSafe.egg-info\top_level.txt
writing dependency_links to MarkupSafe.egg-info\dependency_links.txt
warning: manifest_maker: standard file '-c' not found

reading manifest file 'MarkupSafe.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MarkupSafe.egg-info\SOURCES.txt'
copying markupsafe\_speedups.c -> build\lib.win-amd64-2.7\markupsafe
running build_ext
building 'markupsafe._speedups' extension
error: [Error 2] The system cannot find the file specified

----------------------------------------

Command "c:\python27\python.exe -u -c "import setuptools, tokenize;file='c:\users\XXXX\appdata\local\temp\pip-build-wbfv04\MarkupSafe\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record c:\users\XXXX\appdata\local\temp\pip-g5apo2-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\XXXX\appdata\local\temp\pip-build-wbfv04\MarkupSafe\

iggut avatar Jul 29 '16 15:07 iggut

Just tried the master git and that one runs perfectly.....I am unsure what I am going wrong then.

iggut avatar Jul 29 '16 16:07 iggut

My only issue is that the config.json is much better in the dev version along with a few other features.

Mooseymax avatar Jul 29 '16 16:07 Mooseymax

Same here...

Fixed by installing : pip install setuptools==21.2.1

clavat avatar Jul 29 '16 16:07 clavat

Thanks @clavat I've tried installing pip install setuptools==21.2.1 but still getting the error below from socketIO_client import SocketIO ImportError: No module named socketIO_client

Any further help?

Mooseymax avatar Jul 29 '16 17:07 Mooseymax

pip install socketIO_client will fix it.

justinbeatz avatar Jul 29 '16 17:07 justinbeatz

@justinbeatz Thank you for the reply! Fixed the error which resulted in the following error - ImportError: No module named eventlet Fixed error with same style install - pip install eventlet

I'm now coming up to ImportError: No module named flask & have tried pip install flask This comes up with the first error I was getting:

    building 'markupsafe._speedups' extension
    error: [Error 2] The system cannot find the file specified

EDIT: Installing collected packages: pgoapi, MarkupSafe, Jinja2, itsdangerous, flask is the step that it seems to get to just before the error.

Mooseymax avatar Jul 29 '16 17:07 Mooseymax

Try to completely rebuild you virtual environment: pip install -r requirements.txt -I

asnelzin avatar Jul 29 '16 18:07 asnelzin

I am getting the exact same error, running Windows 10, and I've tried running everything specified here and nothing has resolved this issue

Whosdaman avatar Jul 29 '16 18:07 Whosdaman

I don't know where @vamirineni87 comment is, but his suggestion worked

Run pip install setuptools==21.2.1 Then run pip install -r requirements.txt -I

Whosdaman avatar Jul 29 '16 18:07 Whosdaman

yep so I ran the above two commands and now my error has changed:

checking if libyaml is compilable
error: [Error 2] The system cannot find the file specified

----------------------------------------

Command "c:\python27\python.exe -u -c "import setuptools, tokenize;file='c:\users\appdata\local\temp\pip-build-z3dqmi\pyyaml\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record c:\users\appdata\local\temp\pip-_opdo9-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\appdata\local\temp\pip-build-z3dqmi\pyyaml\

Then seeing as how libyaml was missing for some reason I did:

C:\PokemonGo-Bot1>pip install libyaml Collecting libyaml Could not find a version that satisfies the requirement libyaml (from versions: ) No matching distribution found for libyaml

iggut avatar Jul 29 '16 19:07 iggut

FYI workaround to install markupsafe on windows can be found here:

https://github.com/pallets/markupsafe/issues/60

Viper896 avatar Jul 29 '16 20:07 Viper896

^Workaround works fine and can now use the dev bot again

Happy with this at the moment but would be nice to have it fixed in the repo so that people don't have to workaround.

For clarification, to fix the problem, do the following: pip install setuptools==23.2.1 pip install --no-cache-dir markupsafe==0.23

And @iggut you need to download PyYAML-3.11-cp27-cp27m-win32.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyyaml, put it in your PokemonGo-bot folder and do pip install PyYAML-3.11-cp27-cp27m-win32.whl.

Should fix your problem before you use the fix from @Viper896 :)

Mooseymax avatar Jul 29 '16 23:07 Mooseymax

Nope, same thing and I did have that step done @Mooseymax but did it again to make sure

warning: manifest_maker: standard file '-c' not found

reading manifest file 'MarkupSafe.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MarkupSafe.egg-info\SOURCES.txt'
copying markupsafe\_speedups.c -> build\lib.win-amd64-2.7\markupsafe
running build_ext
building 'markupsafe._speedups' extension
error: [Error 2] The system cannot find the file specified

----------------------------------------

Command "c:\python27\python.exe -u -c "import setuptools, tokenize;file='c:\users\x\appdata\local\temp\pip-build-atrk7_\markupsafe\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record c:\users\x\appdata\local\temp\pip-rgblop-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\x\appdata\local\temp\pip-build-atrk7_\markupsafe\

iggut avatar Jul 30 '16 00:07 iggut

Cleaned everything up and did everything all over and this time it worked....I copy pasted the same lines so not sure whats up......but hey it works

iggut avatar Jul 30 '16 00:07 iggut