Originally reported by: Andrew Mo (Bitbucket: moandcompany, GitHub: moandcompany)
Cannot import module "intern" from six.moves (Six v1.8.0)
Environment: Python 2.7.6 - MacOS X (10.10.1)
ImportError exception: "ImportError: No module named intern"
Discovered with PyTools 2014.3.5 and PyOpenCL
PyTools (init.py) attempts to import intern from six.moves:
#!python
from six.moves import range, zip, intern, input
Temporary workaround:
Modify PyTools (init.py) to try the import and catch ImportError exceptions:
e.g.
#!python
try:
from six.moves import range, zip, intern, input
except ImportError:
from six.moves import range, zip, input
- Bitbucket: https://bitbucket.org/gutworth/six/issue/107
该提问来源于开源项目:benjaminp/six