colomemaria / epiScanpy

Episcanpy: Epigenomics Single Cell Analysis in Python
BSD 3-Clause "New" or "Revised" License
139 stars 33 forks source link

episcanpy does not install / work through any channel of download (conda, pip, git pull) #54

Closed mvinyard closed 4 years ago

mvinyard commented 4 years ago
/home/mvinyard/.local/lib/python3.6/site-packages/anndata/_core/anndata.py:21: FutureWarning: pandas.core.index is deprecated and will be removed in a future version.  The public classes are available in the top-level namespace.
  from pandas.core.index import RangeIndex
/home/mvinyard/.local/lib/python3.6/site-packages/numba/errors.py:137: UserWarning: Insufficiently recent colorama version found. Numba requires colorama >= 0.3.9
  warnings.warn(msg)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-1-18b9f5d5285b> in <module>
----> 1 import episcanpy.api as epi

~/.local/lib/python3.6/site-packages/episcanpy/__init__.py in <module>
     16 __version__ = get_versions()['version']
     17 
---> 18 check_versions()
     19 annotate_doc_types(sys.modules[__name__], 'episcanpy')
     20 del get_versions, sys, check_versions, annotate_doc_types

~/.local/lib/python3.6/site-packages/episcanpy/utils.py in check_versions()
     32     #       use the following hack...
     33     if anndata.__version__ != '0+unknown':
---> 34         if anndata.__version__ < LooseVersion('0.6.10'):
     35             raise ImportError('Scanpy {} needs anndata version >=0.6.10, not {}.\n'
     36                               'Run `pip install anndata -U --no-deps`.'

/usr/lib/python3.6/distutils/version.py in __gt__(self, other)
     62 
     63     def __gt__(self, other):
---> 64         c = self._cmp(other)
     65         if c is NotImplemented:
     66             return c

/usr/lib/python3.6/distutils/version.py in _cmp(self, other)
    333             other = LooseVersion(other)
    334 
--> 335         if self.version == other.version:
    336             return 0
    337         if self.version < other.version:

AttributeError: 'Version' object has no attribute 'version'

This is the most informative error I can get - I also tried installing anndata first, separately. no luck so far.

le-ander commented 4 years ago

related: #51

DaneseAnna commented 4 years ago

Hi,

Indeed, epiScanpy has compatibility issues with the latest release of scanpy and anndata. I just updated epiScanpy requirements to install epiSscanpy with previous released of scanpy and anndata.

You should be able to install epiScanpy with pip (pip install git+https://github.com/colomemaria/epiScanpy or pip install episcanpy). I will fix the compatibility issue with scanpy and anndata before doing a new conda release.