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

Updating the bot (with setup.sh -r) fails with message "Too many levels of symbolic links" #4934

Closed
castorfou opened this issue Aug 30, 2016 · 5 comments

Comments

@castorfou
Copy link

Expected Behavior

Bot updated to last version

Actual Behavior

Error is displayed in terminal.

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

http://pastebin.com/g9HZ91QP

Output when issue occurred

Branch master resetting.
HEAD is now at 56339fb Merge dev to master (#4889)
Running virtualenv with interpreter /usr/bin/python2
New python executable in /home/guillaume/Applications/PokemonGo-Bot/bin/python2
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 2327, in
main()
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 711, in main
symlink=options.symlink)
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 924, in create_environment
site_packages=site_packages, clear=clear, symlink=symlink))
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 1230, in install_python
shutil.copyfile(executable, py_executable)
File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 40] Too many levels of symbolic links: '/home/guillaume/Applications/PokemonGo-Bot/bin/python2'
Already up-to-date.
Submodule path 'web': checked out '6ba5609c6151507b5b832a74e471b6b7b1a182c9'
Entering 'web'
From https://github.com/OpenPoGo/OpenPoGoWeb

  • branch master -> FETCH_HEAD
    Updating 6ba5609..607397a
    Fast-forward
    README.md | 2 ++
    config/userdata.js.example | 6 +++++
    css/main.css | 3 ++-
    image/forts/img_pokestop_lure.png | Bin 0 -> 4960 bytes
    index.html | 18 +++++++-------
    js/main.js | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++------
    6 files changed, 89 insertions(+), 18 deletions(-)
    create mode 100644 image/forts/img_pokestop_lure.png
    ./setup.sh: /home/guillaume/Applications/PokemonGo-Bot/bin/pip: /home/guillaume/Applications/PokemonGo-Bot/bin/python: bad interpreter: Too many levels of symbolic links
    ./setup.sh: /home/guillaume/Applications/PokemonGo-Bot/bin/pip: /home/guillaume/Applications/PokemonGo-Bot/bin/python: bad interpreter: Too many levels of symbolic links

Steps to Reproduce

execute ~/Applications/PokemonGo-Bot$ LANG=C ./setup.sh -r

Other Information

OS:
ubuntu 16.04
Branch:
master
Git Commit:
56339fb
Python Version:

Python 2.7.12
Any other relevant files/configs (eg: path files)

@mjmadsen
Copy link
Contributor

Try this before "source bin/activate":
pip install -r requirements.txt --upgrade

But I'm still curious as to why you're getting such an error.

@mjmadsen
Copy link
Contributor

git pull
git submodule update --init --recursive
git submodule foreach git pull origin master
source bin/activate (-- do not skip this step --)
pip install -r requirements.txt --upgrade
pip install -r requirements.txt

@castorfou
Copy link
Author

pip install -r requirements.txt --upgrade
fails with this message:
(PokemonGo-Bot) guillaume@XPS:~/Applications/PokemonGo-Bot$ pip install -r requirements.txt --upgrade
bash: /home/guillaume/Applications/PokemonGo-Bot/bin/pip: /home/guillaume/Applications/PokemonGo-Bot/bin/python: bad interpreter: Too many levels of symbolic links

but sudo pip install -r requirements.txt --upgrade
works

the same for pip install -r requirements.txt

@mjmadsen
Copy link
Contributor

Try the upgrade not in virtualenv

@castorfou
Copy link
Author

Does that mean without executing source bin/activate ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants