scorelab / Bassa

Automated Download Queue for Communities to take the best use of Internet bandwidth
GNU General Public License v3.0
168 stars 493 forks source link

Fix error in setup.py No module named 'pip.req' #934

Closed apg360 closed 3 years ago

apg360 commented 3 years ago

Fix the error as seen here : https://stackoverflow.com/questions/25192794/no-module-named-pip-req

Description

https://stackoverflow.com/questions/25192794/no-module-named-pip-req Before = pip.req import parse_requirements After = try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: # for pip <= 9.0.3 from pip.req import parse_requirements

Related Issue

Link to the issue here: "Error when initial setup #933"

Motivation and Context

For a successful setup, otherwise unable to setup Bassa

How Has This Been Tested?

After fix, "python3 setup.py develop" is able to finish successfully

Types of changes

Checklist:

JaDogg commented 3 years ago

Looks reasonable. Let's wait for another review.

kmehant commented 3 years ago

@apg360 can you point your pull request to the develop branch as the master branch is not updated

apg360 commented 3 years ago

@apg360 can you point your pull request to the develop branch as the master branch is not updated

Done, thank you.