classner/clustertools

Error in python3.6 environment

ShuangjunLiu opened this issue · 1 comments

Simply import the package

import clustertools.db.tools as cdbt

The error is

File "/home/jun/miniconda3/lib/python3.6/site-packages/clustertools-0.2-py3.6.egg/clustertools/db/tools.py", line 3, in
import StringIO as _strio
ModuleNotFoundError: No module named 'StringIO'

If this package is specially for python2.7, then why I got a package name of
clustertools-0.2-py3.6.egg

Thanks.

Hi Shuangjun,

the .egg name is generated for the python version you are using, so if you're using Python 3.6 that's what's generated. That doesn't mean that it works with Python 3.6 and indeed, I only tested this with Python 2.7.

If you want to use it with Python 3.6, the StringIO error is easy to fix, but you probably also have to adapt some bytes/unicode conversions at other places.

Best,
Christoph