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

hydrus setup install failing #439

Closed
1 of 2 tasks
pr4k opened this issue Jan 30, 2020 · 8 comments
Closed
1 of 2 tasks

hydrus setup install failing #439

pr4k opened this issue Jan 30, 2020 · 8 comments

Comments

@pr4k
Copy link

pr4k commented Jan 30, 2020

I'm submitting a

  • bug report.
  • feature request.

Current Behaviour:

Presently on following the instructions as described in Readme to setup local server
the following error occurs while running python setup.py install

  File "setup.py", line 8, in <module>
    from pip._internal.download import PipSession
ModuleNotFoundError: No module named 'pip._internal.download'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 10, in <module>
    from pip.req import parse_requirements
ModuleNotFoundError: No module named 'pip.req'  

I digged around a little for the solution and stumbled upon this

pypa/pip#7645
pypa/pip#7645 (comment)

this is a recently opened issue stating " that any of the code imported from pip may break anytime in future"

Expected Behaviour:

We can install the project locally

Steps to reproduce:

Just follow the instructions given to install the hydus locally

Do you want to work on this issue?

yes

I would really like to work on this

@sjtly16
Copy link

sjtly16 commented Jan 30, 2020

Please try updating pip version it worked for me.
pip install --upgrade pip

@tanmay192
Copy link

tanmay192 commented Jan 30, 2020

Instead of this
pip3 install .
use this
pip3 install -r requirements.txt

@ashish493
Copy link

Also happened with me, a long time ago.
Upgrading pip definitely helped me.

@pr4k
Copy link
Author

pr4k commented Jan 31, 2020

Please try updating pip version it worked for me.
pip install --upgrade pip

Already tried but no help

@pr4k
Copy link
Author

pr4k commented Jan 31, 2020

Instead of this
pip3 install .
use this
pip3 install -r requirements.txt

I never tried pip install . , I always do pip install -r requirements.txt

@pr4k
Copy link
Author

pr4k commented Jan 31, 2020

Also happened with me, a long time ago.
Upgrading pip definitely helped me.

Yeah it was mentioned in many stack overflow answers..... But it was of no help....and also the issue I mentioned above is opened just 6 days ago and mentioned same issue

@ashish493
Copy link

You can try adding this code:-
def parse_requirements(filename): """ load requirements from a pip requirements file """ lineiter = (line.strip() for line in open(filename)) return [line for line in lineiter if line and not line.startswith("#")]
Steps for adding:-
1.)create a directory pip/
2.)add an empty file pip/init.py
3.)add a file pip/req.py
4.)put the code above into pip/req.py:
5.)modify the line in setup.py
"reqs = install_reqs"

If it doesn't work, try downgrading your pip version.

@pr4k
Copy link
Author

pr4k commented Feb 1, 2020

You can try adding this code:-
def parse_requirements(filename): """ load requirements from a pip requirements file """ lineiter = (line.strip() for line in open(filename)) return [line for line in lineiter if line and not line.startswith("#")]
Steps for adding:-
1.)create a directory pip/
2.)add an empty file pip/init.py
3.)add a file pip/req.py
4.)put the code above into pip/req.py:
5.)modify the line in setup.py
"reqs = install_reqs"

If it doesn't work, try downgrading your pip version.

Downgrading pip to version 19.3.1 works like a charm, i think it should be mentioned in the requirements file till the time the bug is fixed in the latest pip release

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

No branches or pull requests

4 participants