I installed package tethne-0.8 (successfully on Windows 10, which worked well (that is, I could import it). Then, I started fiddling around a little bit, uninstalling the package, installing an older version, uninstalling the older version, and finally re-installing tethne-0.8. I really regret doing so (I should have known!), because now, importing tethne throws the following error:
File "C:\Python27\lib\site-packages\tethne\classes\feature.py", line 8, in <module>
from tethne.utilities import _iterable
ImportError: cannot import name _iterable
Tethne-0.8 is said to have installed successfully and I've checked all dependencies, which are also okay. I've also looked into the feature.py file:
"""
Classes in this module provide structures for additional data about
:class:`.Paper`\s.
"""
from collections import Counter, defaultdict
from tethne.utilities import _iterable
try: # Might as well use numpy if it is available.
import numpy as np
argsort = lambda l: list(np.argsort(l))
except ImportError:
from tethne.utilities import argsort
...and the utilities.py file:
def _iterable(o):
if hasattr(o, '__iter__'):
return o
else:
return [o]
I have obviously tried googling the issue. It's driving me crazy and really hope someone has a tip!