PokemonGoF / PokemonGo-Bot

The Pokemon Go Bot, baking with community.
MIT License
3.86k stars 1.54k forks source link

Cannot pip install on dev branch, but master works #290

Closed RobbieTheWagner closed 8 years ago

RobbieTheWagner commented 8 years ago

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

Grace commented 8 years ago

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

RobbieTheWagner commented 8 years ago

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

douglascamata commented 8 years ago

Consider using virtualenv guys. It should work.

RobbieTheWagner commented 8 years ago

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

douglascamata commented 8 years ago

output of which pip and which python?

vanrzuf commented 8 years ago

i have the same error with installing requirements

RobbieTheWagner commented 8 years ago

@douglascamata

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

and

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

douglascamata commented 8 years ago

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

douglascamata commented 8 years ago

What a weird error, makes no sense!

RobbieTheWagner commented 8 years ago

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

douglascamata commented 8 years ago

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

RobbieTheWagner commented 8 years ago

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

RobbieTheWagner commented 8 years ago

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