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

python3 summarize flag bug #510

Closed
kensley opened this issue Mar 14, 2018 · 3 comments
Closed

python3 summarize flag bug #510

kensley opened this issue Mar 14, 2018 · 3 comments

Comments

@kensley
Copy link

kensley commented Mar 14, 2018

System Info

  • Operating System: Ubuntu:16.04 Docker container, host kernel: Linux 977d91afe8d8 4.4.0-112-generic #135-Ubuntu SMP Fri Jan 19 11:48:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • Python Version: 3.5.2
  • Version of catkin_tools: pip3 freeze | grep catkin-tools catkin-tools==0.4.4
  • ROS Distro: kinetic

Issue

When running the following command:
catkin build my_pkg --no-deps --summarize

I get the following output in the end:

Finished  <<< my_pkg                               [ 6.1 seconds ]                                                                                                                                                                                              
                                                                                                                                                                                                                                                                
[build] Successful packages:                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.5/dist-packages/catkin_tools/execution/controllers.py", line 748, in run
    self.print_exec_summary(completed_jobs, warned_jobs, failed_jobs)
  File "/usr/local/lib/python3.5/dist-packages/catkin_tools/execution/controllers.py", line 322, in print_exec_summary
    sorted(successfuls.items() + ignoreds.items()),
TypeError: unsupported operand type(s) for +: 'dict_items' and 'dict_items'

[build] Note: Workspace packages have changed, please re-source setup files to use them.

I'm guessing because python2 returns .items() as a list you add them, but in python3, .items() are view objects.

@kensley
Copy link
Author

kensley commented Jul 26, 2018

Ugly but quick hack:
sorted(list(successfuls.items()) + list(ignoreds.items()))

@mikepurvis mikepurvis mentioned this issue Apr 2, 2019
@timonegk
Copy link
Member

This would be closed by #565.

@timonegk
Copy link
Member

timonegk commented Jun 3, 2020

This issue was fixed in #565 and can be closed.

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

3 participants