Skip to content
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 when using past.translate feature for UserDict import #198

Open
khchine5 opened this issue Feb 19, 2016 · 0 comments
Open

ImportError when using past.translate feature for UserDict import #198

khchine5 opened this issue Feb 19, 2016 · 0 comments

Comments

@khchine5
Copy link

Hi,
My code :

from past.translation import install_hooks, remove_hooks
install_hooks(['appy'])
from appy.pod.renderer import Renderer as OriginalAppyRenderer
remove_hooks()

And I has the following error:

File "/home/khchine5/PycharmProjects/lino_fork/lino/modlib/appypod/appy_renderer.py", line 27, in <module>
    from appy.pod.renderer import Renderer as OriginalAppyRenderer
  File "/home/khchine5/.virtualenvs/py3/lib/python3.4/site-packages/past/translation/__init__.py", line 413, in load_module
    exec(code, mod.__dict__)
  File "/home/khchine5/.virtualenvs/py3/lib/python3.4/site-packages/appy/pod/renderer.py", line 26, in <module>
    from appy.shared.zip import unzip, zip
ImportError: No module named 'UserDict'

By looking at past code, I think that it does not consider UserDict change between Python2 and Python3.

Thanks.

@khchine5 khchine5 changed the title ImportError when using past.translate feature on from UserDict import UserDict ImportError when using past.translate feature for UserDict import Feb 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants