-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: No module named 'mapping' #6
Comments
I have the same problem. Looks like it's meant to import the local module |
Yes, it's meant to import TRANSLIT_DICT from mapping.py. How did you install it? I just opened Terminal and did the following:
However, I am using Python 2.7.10 whereas @sorrat is using 3.5.2. Which version are you using @rspeer? |
The library does not support python3:
|
Also using 3.5.2, and yes, the problems are what sorrat described. I assumed that Python 3 would be fine because there are versions of Python 3 listed in the setup.py. |
@sorrat @rspeer here's an abstract of the issue: To fix this, we need to update mapping.py and replace every instance of d.iteritems() with iter(d.items()):
Furthermore, list comprehension is not supported in Python 2.6 so I will remove that version from the supported Python version list in setup.py. Here's the pull request for the fix currently on the python3-iteritems-fix branch. If someone can confirm that it now works with their Python 3 environment then I will happily merge the pull request to master and release this new version to PyPI. |
Issue #6: updated dictionary iteration logic to ensure compatibility …
@georgeslabreche no issues found. |
@sorrat @rspeer: CyrTranslit v0.4 has been uploaded to PyPI: https://pypi.python.org/pypi/cyrtranslit |
python 3.5.2
cyrtranslit-0.3
Traceback:
The text was updated successfully, but these errors were encountered: