question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hydrus setup install failing

See original GitHub issue

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

https://github.com/pypa/pip/issues/7645 https://github.com/pypa/pip/issues/7645#issuecomment-578204001

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
pr4kcommented, 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

0reactions
ashish493commented, Jan 31, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing and Updating - hydrus network - GitHub Pages
Clean installs​​ The problem is usually that a library file has been renamed in a new version and hydrus has trouble figuring out...
Read more >
HYDRUS Installation and Activation
The installation program for the full version of HYDRUS is only avilable to customers who purchased a HYDRUS license. They will receive a...
Read more >
Getting Started: Installing - PTRannies Journal - hydrus network
Very rarely, hydrus needs a clean install. This can be due to a special update like when we moved from 32-bit to 64-bit...
Read more >
"setup.py install" does not coexist nicely with "pip ...
Installing one package in the namespace using setup.py develop and the other using setup.py install (order does not matter). You can see the ......
Read more >
README.md · master · prkc / hydrus-why-sqlite · GitLab
SQLite does not need to be "installed" before it is used. There is no "setup" procedure. There is no server process that needs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found