Importing QIIME script as module, error importing from skbio

286 Views Asked by At

I'm trying to import a QIIME script as a module. The script works when I call it through linux cmd, but when I import the QIIME script as a module, I get the error

~/VirtualENV/lib/python2.7/site-packages/skbio/alignment/_ssw_wrapper.so:undefined symbol: PyUnicodeUCS2_Format 

It seems to have a problem with the following line from skbio:

from skbio.alignment._ssw_wrapper import (
    StripedSmithWaterman, local_pairwise_align_ssw, AlignmentStructure)

My IDE is Spyder. After the first time I got the error, I changed my console (in the tools menu) to the same python interpreter as my VirtualENV containing the QIIME packages. I'm running python 2.7. My VirtualENV is in my pythonpath. Is there something I can add to my path to fix this? Thanks in advance, I'm new to importing scripts.

0

There are 0 best solutions below