Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

future.utils.six not found when trying to import skbio modules

Tags:

skbio

I just installed numpy and scikit-bio using pip3. If I import DNASequence in an interactive session I get an error message:

>>> from skbio.sequence import DNASequence
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.4/site-packages/skbio/__init__.py", line 64, in <module>
    from skbio.stats.distance import DistanceMatrix
  File "/usr/local/lib/python3.4/site-packages/skbio/stats/distance/__init__.py", line 293, in <module>
    from ._base import (DissimilarityMatrixError, DistanceMatrixError,
  File "/usr/local/lib/python3.4/site-packages/skbio/stats/distance/_base.py", line 11, in <module>
    from future.utils.six import StringIO, string_types
ImportError: No module named 'future.utils.six'

Running 'pip3 list' shows me that six 1.8.0 is installed. Even more strange, if I repeat the import statement, DNASequence is loaded correctly. Any idea what's causing this behavior?

I'm running Mac OS X 10.9.5 (Mavericks), Python 3.4.1 (installed via homebrew).

like image 673
John Conery Avatar asked Sep 29 '22 16:09

John Conery


1 Answers

This was an issue with a change to the future package in version 0.14.0 (the removal of future.utils.six, as noted here).

We have this fixed in the development version of scikit-bio, but in the meantime you can get this working again with the release versions as follows:

pip uninstall future pip install future==0.13.1

See here for some more discussion of the issue if you're interested.

like image 86
gregcaporaso Avatar answered Oct 07 '22 20:10

gregcaporaso