DRL / blobtools

Modular command-line solution for visualisation, quality control and taxonomic partitioning of genome datasets
GNU General Public License v3.0
187 stars 44 forks source link

Missing "module named req" #72

Closed kmdowney12 closed 6 years ago

kmdowney12 commented 6 years ago

I'm installing Blobtool v1.0 and I keep getting this error thrown back at me following the ./install command.

[+] Checking dependencies... [+] [wget] /usr/local/bin/wget [+] [tar] /usr/bin/tar [+] [pip] pip [+] [python2.7] /Users/kdowney/anaconda3/envs/blob_tools/bin/python [+] Installing python dependencies... Traceback (most recent call last): File "setup.py", line 4, in from pip.req import parse_requirements ImportError: No module named req FAIL.

What can I do to fix this? There are some tips online, but when I modify your code as they recommend, other pieces start failing.

kmdowney12 commented 6 years ago

Also, I'm doing this on a Mac if that matters.

DRL commented 6 years ago

Hi,

sorry for not answering earlier ...

I guess you already noticed that this was caused by your python being python3 instead of python2...

cheers,

dom

kmdowney12 commented 6 years ago

Hi Dom,

Nope, my python was fine. We just switched it over to our Linux machine instead. Works fine there. Thanks though!

Kala Downey Research Assistant Doctoral Student (Alverson Lab) University of Arkansas-Fayetteville kmdowney@email.uark.edu

On Mon, May 28, 2018 at 8:42 AM, Dominik R Laetsch <notifications@github.com

wrote:

Hi,

sorry for not answering earlier ...

I guess you already noticed that this was caused by your python being python3 instead of python2...

cheers,

dom

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/DRL/blobtools/issues/72#issuecomment-392530258, or mute the thread https://github.com/notifications/unsubscribe-auth/AZfI5sAcTxRTQ1_g81NfGsqv8E21Tk3Xks5t2_7QgaJpZM4UJKXP .

DRL commented 6 years ago

Ahso, ... I thought the anaconda3 in your python path meant it was a python3 environment.

let me know if you run into any other problems.

cheers,

dom

TomHarrop commented 6 years ago

Hallo @DRL, I also had this issue using pip 18.0 with python 2.7.15 on Debian 9.5 (stretch)

~/blobtools> which pip
/usr/local/bin/pip
~/blobtools> /usr/local/bin/pip --version
pip 18.0 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)
~/blobtools> which python
/usr/local/bin/python
~/blobtools> /usr/local/bin/python --version
Python 2.7.15

It looks like from pip.req import parse_requirements doesn't work with pip > 10, see: https://stackoverflow.com/a/49867265

Workaround is to downgrade to pip 9 e.g.

python -m pip install pip==9.0.3

Cheers!