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

[DEV] Bot doesn't start since the last git pull #1583

Closed
viruz82 opened this issue Jul 29, 2016 · 13 comments
Closed

[DEV] Bot doesn't start since the last git pull #1583

viruz82 opened this issue Jul 29, 2016 · 13 comments

Comments

@viruz82
Copy link

viruz82 commented Jul 29, 2016

Expected Behavior

Bot should start

Actual Behavior

Traceback (most recent call last):
File "pokecli.py", line 40, in
from pokemongo_bot import PokemonGoBot
File "/opt/PokemonGo-Bot/pokemongo_bot/init.py", line 24, in
from pokemongo_bot.socketio_server.runner import SocketIoRunner
File "/opt/PokemonGo-Bot/pokemongo_bot/socketio_server/runner.py", line 5, in
from eventlet import patcher, wsgi
File "/usr/local/lib/python2.7/dist-packages/eventlet/patcher.py", line 4, in
from eventlet.support import six
File "/usr/local/lib/python2.7/dist-packages/eventlet/support/init.py", line 4, in
from eventlet.support import greenlets, six
File "/usr/local/lib/python2.7/dist-packages/eventlet/support/greenlets.py", line 3, in
import greenlet
ImportError: /usr/local/lib/python2.7/dist-packages/greenlet.so: undefined symbol: _PyTrash_thread_deposit_object

Steps to Reproduce

python pokecli.py --config ./configs/config_01.json

Other Information

new requirements have been installed with pip install -r requirements.txt
OS: Debian 7.11
Git Commit: a1433f2

@viruz82 viruz82 changed the title Bot doesn't start since the last git pull [DEV] Bot doesn't start since the last git pull Jul 29, 2016
@axpatito
Copy link
Contributor

Did you try pip install -r requirements.txt --upgrade?

@markkvdb
Copy link

markkvdb commented Jul 29, 2016

As stated in the error message you have to install additional packages. Just run
$ source bin/activate
$ pip install -r requirements.txt
again and everything should be fine.

@viruz82
Copy link
Author

viruz82 commented Jul 29, 2016

@patitoaxel
Already done, doesn't help. :(

@markkvdb
Done the provided steps and still get this:

Traceback (most recent call last):
File "pokecli.py", line 40, in
from pokemongo_bot import PokemonGoBot
File "/opt/PokemonGo-Bot/pokemongo_bot/init.py", line 24, in
from pokemongo_bot.socketio_server.runner import SocketIoRunner
File "/opt/PokemonGo-Bot/pokemongo_bot/socketio_server/runner.py", line 5, in
from eventlet import patcher, wsgi
File "/opt/PokemonGo-Bot/local/lib/python2.7/site-packages/eventlet/patcher.py", line 4, in
from eventlet.support import six
File "/opt/PokemonGo-Bot/local/lib/python2.7/site-packages/eventlet/support/init.py", line 4, in
from eventlet.support import greenlets, six
File "/opt/PokemonGo-Bot/local/lib/python2.7/site-packages/eventlet/support/greenlets.py", line 3, in
import greenlet
ImportError: /opt/PokemonGo-Bot/local/lib/python2.7/site-packages/greenlet.so: undefined symbol: _PyTrash_thread_deposit_object

@Chrischi-
Copy link

Chrischi- commented Jul 29, 2016

do

$ virtualenv .
$ source bin/activate

and run python pokecli.py again.

@viruz82
Copy link
Author

viruz82 commented Jul 29, 2016

Same error...

@Chrischi-
Copy link

Chrischi- commented Jul 29, 2016

did you try all steps?

$ virtualenv .
$ source bin/activate
$ pip install -r requirements.txt
$ git submodule init
$ git submodule update

@lukaszraczylo
Copy link

It's caused by outdated python version ( via python-greenlet/greenlet#24 ). You're probably on 2.7.3 ( as I am )

@viruz82
Copy link
Author

viruz82 commented Jul 29, 2016

@Chrischi-
When doing it again I get the following error:

Obtaining pgoapi from git+https://github.com/tejado/pgoapi.git@81e786cabf027a1c8fbd1e9a07e1c11aa3d8ee8b#egg=pgoapi (from -r requirements.txt (line 1))
  Updating ./src/pgoapi clone (to 81e786cabf027a1c8fbd1e9a07e1c11aa3d8ee8b)
  Could not find a tag or branch '81e786cabf027a1c8fbd1e9a07e1c11aa3d8ee8b', assuming commit.
  Running setup.py egg_info for package pgoapi
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/opt/PokemonGo-Bot/src/pgoapi/setup.py", line 9, in <module>
        install_reqs = parse_requirements(path_req, session=False)
    TypeError: parse_requirements() got an unexpected keyword argument 'session'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/opt/PokemonGo-Bot/src/pgoapi/setup.py", line 9, in <module>

    install_reqs = parse_requirements(path_req, session=False)

TypeError: parse_requirements() got an unexpected keyword argument 'session'

@lukaszraczylo
Yes, I'm on 2.7.3. This is the last stable release in my Debian 7.11.

@Leerzeichen
Copy link

On Ubuntu 12.04 this one solved the issue... Maybe also on Debian

sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7
sudo apt-get update
sudo apt-get install python2.7

From here (Last Answer)

@1cu
Copy link

1cu commented Jul 29, 2016

@viruz82 you just downgraded pip (virtualenv . did that). Upgrade it by running easy_install -U pip.
@lukaszraczylo can confirm. Bot stopped working on Debian 7.11 with Python 2.7.3 👎

@1cu
Copy link

1cu commented Jul 29, 2016

Fixed the issue on Debian 7.11, Python 2.7.3 by uninstalling greenlet (pip uninstall greenlet) and installing it via easy_install (easy_install greenlet).

@viruz82
Copy link
Author

viruz82 commented Jul 29, 2016

@1cu
Thank you mate, that fixed it! :D

@LasseSkogland
Copy link

Close this issue, issue resolved.

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