Cannot pip install on dev branch, but master works
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
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.
- Change the first line of requirements.txt to
-e git+https://github.com/tejado/pgoapi.git#egg=pgoapi - Install updated colorama with
pip install colorama --upgrade(This step probably isn't necessary, I'll edit to remove it if it's not.) - Run
sudo pip install -r requirements.txt
OS: OS X 10.11.6 Git Commit: 06fbdb7 Branch: dev
@Grace I tried your instructions and I am getting the same error. TypeError: parse_requirements() got an unexpected keyword argument 'session'
Consider using virtualenv guys. It should work.
@douglascamata I am using virtualenv. It only works with master. Cannot get dev running
output of which pip and which python?
i have the same error with installing requirements
@douglascamata
/Users/rwwagner/PokemonGo-Bot/venv/bin/pip
and
/Users/rwwagner/PokemonGo-Bot/venv/bin/python
I did mention the wrong issue in my commit, ignore it.
What a weird error, makes no sense!
It's something with the dev branch specifically, so not really sure
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 I'm not sure how pulling a specific commit is making this error happen though
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