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

Cannot pip install on dev branch, but master works

Open RobbieTheWagner opened this issue 10 years ago • 13 comments

Expected Behavior

Be able to pip install

Actual Behavior

Getting this error:

Obtaining pgoapi from git+git://github.com/tejado/pgoapi.git@1f25e907f3e5f1b603330e71041e1ad7bee7580f#egg=pgoapi (from -r requirements.txt (line 1))
  Updating ./venv/src/pgoapi clone (to 1f25e907f3e5f1b603330e71041e1ad7bee7580f)
  Could not find a tag or branch '1f25e907f3e5f1b603330e71041e1ad7bee7580f', assuming commit.
  Running setup.py egg_info for package pgoapi
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/Users/rwwagner/PokemonGo-Bot/venv/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 16, in <module>

  File "/Users/rwwagner/PokemonGo-Bot/venv/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'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /Users/rwwagner/PokemonGo-Bot/venv/src/pgoapi
Storing complete log in /Users/rwwagner/.pip/pip.log

Steps to Reproduce

Just following the OS X setup instructions on the dev branch and the pip install will fail

Other Information

OS: OS X 10.11.5 Git Commit: 270a79dbe52cf9eec7404bbb5bc112fea4fb219d

RobbieTheWagner avatar Jul 22 '16 21:07 RobbieTheWagner

In order to get the dev branch pip install -r requirements.txt to work on Mac OS X, I had to make a few changes.

  1. Change the first line of requirements.txt to -e git+https://github.com/tejado/pgoapi.git#egg=pgoapi
  2. Install updated colorama with pip install colorama --upgrade (This step probably isn't necessary, I'll edit to remove it if it's not.)
  3. Run sudo pip install -r requirements.txt

OS: OS X 10.11.6 Git Commit: 06fbdb7 Branch: dev

Grace avatar Jul 22 '16 21:07 Grace

@Grace I tried your instructions and I am getting the same error. TypeError: parse_requirements() got an unexpected keyword argument 'session'

RobbieTheWagner avatar Jul 22 '16 22:07 RobbieTheWagner

Consider using virtualenv guys. It should work.

douglascamata avatar Jul 22 '16 22:07 douglascamata

@douglascamata I am using virtualenv. It only works with master. Cannot get dev running

RobbieTheWagner avatar Jul 22 '16 22:07 RobbieTheWagner

output of which pip and which python?

douglascamata avatar Jul 22 '16 22:07 douglascamata

i have the same error with installing requirements

vanrzuf avatar Jul 22 '16 22:07 vanrzuf

@douglascamata

/Users/rwwagner/PokemonGo-Bot/venv/bin/pip

and

/Users/rwwagner/PokemonGo-Bot/venv/bin/python

RobbieTheWagner avatar Jul 22 '16 22:07 RobbieTheWagner

I did mention the wrong issue in my commit, ignore it.

douglascamata avatar Jul 22 '16 22:07 douglascamata

What a weird error, makes no sense!

douglascamata avatar Jul 22 '16 22:07 douglascamata

It's something with the dev branch specifically, so not really sure

RobbieTheWagner avatar Jul 22 '16 22:07 RobbieTheWagner

it's because of the way we download pgoapi, which needs to be locked to a specific commit, otherwise people may get different code if they install before/after others

douglascamata avatar Jul 22 '16 22:07 douglascamata

@douglascamata I'm not sure how pulling a specific commit is making this error happen though

RobbieTheWagner avatar Jul 22 '16 23:07 RobbieTheWagner

For anyone else with this issue install pip from here https://pip.readthedocs.io/en/stable/installing/

The pip included when you brew install python was breaking things

RobbieTheWagner avatar Jul 23 '16 03:07 RobbieTheWagner