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

Recent upstream changes to python-empy #6

Open
kvmanohar22 opened this issue Mar 15, 2024 · 1 comment · May be fixed by #8
Open

Recent upstream changes to python-empy #6

kvmanohar22 opened this issue Mar 15, 2024 · 1 comment · May be fixed by #8

Comments

@kvmanohar22
Copy link

Hey all,

I recently updated my arch packages and this update has left ros in a broken state. And this is due to the upstream dependency python-empy package.

Recently the package python-empy was updated from 3.3.4 to 4.0.1. And 4.0.1 introduced quite a few breaking changes. And ros-noetic-catkin depends on this python-empy package.

Error while updating the ros-noetic-* packages after pacman -Syu:

Traceback (most recent call last):
  File "/opt/ros/noetic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 49, in <module>
  File "/opt/ros/noetic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 49, in <module>
    genmsg.template_tools.generate_from_command_line_options(
  File "/opt/ros/noetic/lib/python3.11/site-packages/genmsg/template_tools.py", line 213, in generate_from_command_line_options
    genmsg.template_tools.generate_from_command_line_options(
  File "/opt/ros/noetic/lib/python3.11/site-packages/genmsg/template_tools.py", line 213, in generate_from_command_line_options
    generate_from_file(argv[1], options.package, options.outdir, options.emdir, options.includepath, msg_template_dict, srv_template_dict)
    generate_from_file(argv[1], options.package, options.outdir, options.emdir, options.includepath, msg_template_dict, srv_template_dict)
  File "/opt/ros/noetic/lib/python3.11/site-packages/genmsg/template_tools.py", line 156, in generate_from_file
  File "/opt/ros/noetic/lib/python3.11/site-packages/genmsg/template_tools.py", line 154, in generate_from_file
    _generate_srv_from_file(input_file, output_dir, template_dir, search_path, package_name, srv_template_dict, msg_template_dict)
    _generate_msg_from_file(input_file, output_dir, template_dir, search_path, package_name, msg_template_dict)
  File "/opt/ros/noetic/lib/python3.11/site-packages/genmsg/template_tools.py", line 109, in _generate_srv_from_file
  File "/opt/ros/noetic/lib/python3.11/site-packages/genmsg/template_tools.py", line 93, in _generate_msg_from_file
    _generate_from_spec(input_file,
  File "/opt/ros/noetic/lib/python3.11/site-packages/genmsg/template_tools.py", line 77, in _generate_from_spec
    _generate_from_spec(input_file,
  File "/opt/ros/noetic/lib/python3.11/site-packages/genmsg/template_tools.py", line 77, in _generate_from_spec
    interpreter = em.Interpreter(output=ofile, globals=g, options={em.RAW_OPT:True,em.BUFFERED_OPT:True})
    interpreter = em.Interpreter(output=ofile, globals=g, options={em.RAW_OPT:True,em.BUFFERED_OPT:True})
                                                                   ^^^^^^^^^^
                                                                   ^^^^^^^^^^
AttributeError: module 'em' has no attribute 'RAW_OPT'
AttributeError: module 'em' has no attribute 'RAW_OPT'

It seems to me this can be resolved by explicitly specifying the last version which was working (3.3.4) in the PKGBUILD file. But this would pull in two packages i.e., 4.0.1 and 3.3.4.

Are we good to specify the package version 3.3.4 in the PKGBUILD file?

@cybaol
Copy link

cybaol commented Apr 27, 2024

@acxz
python-empy3 exists on AUR. Please replace python-empy by python-empy3. Thanks!

@cybaol cybaol linked a pull request Apr 28, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants