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

AttributeError: 'module' object has no attribute 'Interpreter' #63

Closed
amineHorseman opened this issue Jun 1, 2016 · 4 comments
Closed

Comments

@amineHorseman
Copy link

Hello,

It seems that both em and empy build a package with the same name.

When I tried to install RosAria on a fresh install of Kinetic Kame, the following error occured in file "/opt/ros/kinetic/lib/python2.7/dist-packages/genmsg/template_tools.py", Line 76:

interpreter = em.Interpreter(output=ofile, globals=g, options=em.RAW_OPT:True,em.BUFFERED_OPT:True})
AttributeError: 'module' object has no attribute 'Interpreter

I solved this problem by simply uninstalling em, and installing empy:

pip uninstall em
pip install empy

May be someone should investigate the problem?

@tfoote
Copy link
Member

tfoote commented Jun 1, 2016

As you diagnosed em and empy are colliding in namespaces.

https://pypi.python.org/pypi/em
https://pypi.python.org/pypi/EmPy/3.3.2

I'd suggest filing a ticket upstream for em: https://github.com/ikalnitsky/em about the conflict since it appears to be a much smaller and more recent project.

For our purposes, empy is a core upstream dependency we rely upon. It needs to be installed and not the em package. If there's any package in the ROS ecosystem depending on em please ticket it. But I do not know of any such package.

@tfoote
Copy link
Member

tfoote commented Sep 17, 2019

For cross reference it's been ticketed on em here: ikalnytskyi/em#9

@awaisk65
Copy link

Hello,

It seems that both em and empy build a package with the same name.

When I tried to install RosAria on a fresh install of Kinetic Kame, the following error occured in file "/opt/ros/kinetic/lib/python2.7/dist-packages/genmsg/template_tools.py", Line 76:

interpreter = em.Interpreter(output=ofile, globals=g, options=em.RAW_OPT:True,em.BUFFERED_OPT:True})
AttributeError: 'module' object has no attribute 'Interpreter

I solved this problem by simply uninstalling em, and installing empy:

pip uninstall em
pip install empy

May be someone should investigate the problem?

pip install empy will install the updated version, which give "em module has no attribute em.Interpreter". You need to install the downgraded version of empy.
pip install empy==3.3.4

@kamronkhakimov
Copy link

I have had the same problem. The issue seems to be the em, empy modules.
Try to use these lines of code:

pip uninstall em
pip install empy==3.3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants