merenlab / anvio

An analysis and visualization platform for 'omics data
http://merenlab.org/software/anvio
GNU General Public License v3.0
440 stars 145 forks source link

py2 / py3 problems with installation. #533

Closed ctb closed 7 years ago

ctb commented 7 years ago

anvi-self-test disagrees with setup.py:

% anvi-self-test
Your active Python major version ('2') is not compatible with what anvi'o expects :/ We recently switched to Python 3.

but

% grep -i python setup.py
       'Programming Language :: Python :: 2.7',

Also, the install script for Ubuntu linked to from the Installation Menu/Ubuntu Recipe installs everything into Python 2 AFAICT.

ctb commented 7 years ago

Oh, and I get this:

% pip install anvio
Collecting anvio
  Using cached anvio-2.3.2.tar.gz
No files/directories in /tmp/pip-build-edqwt237/anvio/pip-egg-info (from PKG-INFO)

which seems likely to be a py2/py3 problem as well - I'm running pip from python version 3.5 here.

meren commented 7 years ago

This is why I don't like maintaining installation scripts in ad hoc places --we forget to keep them up-to-date :/ Sorry about that, the Ubuntu script clearly needs attention. As well as the setup.py, for which I will send a commit soon. But that description shouldn't result in the error you're getting.

The Python issue with pip is weird. Have you tried from within a virtualenv (copy-pasta for the lazy is here) just to make sure? Another option could be to try this instead to see what is really failing, I feel like it is a dependency issue .. like samtools version or something:

pip install --verbose anvio

Thanks,

ctb commented 7 years ago

I'll write up my install, but it seems clear that it's a problem with setup.py or the directory layout that pip expects, not something else.

I was able to install with python setup.py without a problem (well, with problems, but they were different ones and I fixed them :).

More soon!

meren commented 7 years ago

by the way, @ozcan reminds me that we have an up-to-date Docker file here if you would like to copy-paste from there:

https://gist.github.com/meren/65b1f1bfea1b53e87e10f025d1e4c29a