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

Potential trollius issue #520

Closed
1 task done
kensley opened this issue Jul 26, 2018 · 8 comments · Fixed by #574
Closed
1 task done

Potential trollius issue #520

kensley opened this issue Jul 26, 2018 · 8 comments · Fixed by #574

Comments

@kensley
Copy link

kensley commented Jul 26, 2018

System Info

  • Operating System: Docker container running on: Linux 2b5aca1a9b8b 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • Python Version: python --version Python 2.7.12 python3 --version Python 3.5.2
  • Version of catkin_tools:
catkin --version
catkin_tools 0.4.4 (C) 2014-2018 Open Source Robotics Foundation
catkin_tools is released under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
---
Using Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609]
  • ROS Distro: kinetic

Build / Run Issue

  • I did not read this

Expected Behavior

Output build status correctly to the terminal and cleanly exit

Actual Behavior

root@dadc0fe3d78b:/home/ws# catkin build
-------------------------------------------------------
Profile:                     default
Extending:        [explicit] /opt/ros/kinetic
Workspace:                   /home/ws
-------------------------------------------------------
Source Space:       [exists] /home/ws/src
Log Space:         [missing] /home/ws/logs
Build Space:        [exists] /home/ws/build
Devel Space:        [exists] /home/ws/devel
Install Space:     [missing] /home/ws/install
DESTDIR:            [unused] None
-------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        merged
-------------------------------------------------------
Additional CMake Args:       -DCMAKE_BUILD_TYPE=Release
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
-------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
-------------------------------------------------------
Workspace configuration appears valid.

NOTE: Forcing CMake to run for each package.
-------------------------------------------------------
[build] Found '1' packages in 0.0 seconds.                                                                                                                                                                                                    
Starting  >>> catkin_tools_prebuild                                                                                                                                                                                                           
Finished  <<< catkin_tools_prebuild                [ 2.2 seconds ]                                                                                                                                                                            
Starting  >>> <Project_Name>                                                                                                                                                                                                                       
Finished  <<< <Project_Name>                        [ 3.3 seconds ]                                                                                                                                                                            
[build] Summary: All 2 packages succeeded!                                                                                                                                                                                                    
[build]   Ignored:   None.                                                                                                                                                                                                                    
[build]   Warnings:  None.                                                                                                                                                                                                                    
[build]   Abandoned: None.                                                                                                                                                                                                                    
[build]   Failed:    None.                                                                                                                                                                                                                    
[build] Runtime: 5.4 seconds total.                                                                                                                                                                                                           
[build] Note: Workspace packages have changed, please re-source setup files to use them.
Exception ignored in: <bound method BaseEventLoop.__del__ of <_UnixSelectorEventLoop running=False closed=True debug=False>>
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/trollius/base_events.py", line 395, in __del__
  File "/usr/local/lib/python3.5/dist-packages/trollius/unix_events.py", line 65, in close
  File "/usr/local/lib/python3.5/dist-packages/trollius/unix_events.py", line 166, in remove_signal_handler
  File "/usr/lib/python3.5/signal.py", line 47, in signal
TypeError: signal handler must be signal.SIG_IGN, signal.SIG_DFL, or a callable object

This error output shows up after catkin build, catkin run_tests, and catkin test. It does NOT show up after catkin_make or catkin_test_results build.

Steps to Reproduce the Issue

We are using a modified kinetic ros docker - added pip/catkin etc.
Single simple package, few system deps, build, run tests.

Any idea if this is a trollius issue directly or a python2/3 issue?

@dustingooding
Copy link

What's the status of this? Any love from the maintainers on if this should be fixed?

@asimonov-hitachi
Copy link

I experience this on Ubuntu14/ROS Indigo in docker. Any chance to get this fixed? Thank you

@bangyanz
Copy link

bangyanz commented Dec 3, 2018

I experienced this in Ubuntu 18.04. Couldn't find a solution.

@0xjairo
Copy link

0xjairo commented Jan 25, 2019

@kensley , @dustingooding ..any updates on this?

@manuelgentile
Copy link

same error on debian 9.8, python3.5 and lunar

@ct2034
Copy link
Contributor

ct2034 commented Jul 30, 2019

I was having this issue, too. It was gone after removing the catkin-tools folder rm -r .catkin_tools/

@dimon777
Copy link

dimon777 commented Aug 17, 2019

Same issue on ubuntu 18.04.3, Python 3.6.8 after following: https://dev.px4.io/v1.9.0/en/setup/dev_env_linux.html#ros

rm -r .catkin_tools/ didn't solve the issue for me. It looks like python3 issue
And when I switch my python to use python2.7 problem doesn't show up.

@cardboardcode
Copy link

Hi guys, just wanted to elaborate on what @dimon777 said about

"when i switch my python to use python2.7 problem doesn't show up".

To switch back to use python2.7, ensure that your python3 does not have catkin-tools installed.

  1. Check if said package is installed in python3, run the command below in terminal.
    $ pip3 freeze | grep catkin-tools

If there is no output, then it is confirmed that there is no conflicting catkin-tools packages installed on python3 side.

  1. Ensure that your default python is python2.7 by running the command below.
    $ python -V

If not, you can follow this suggested link to change it to python2.7.

  1. Install the python2.7 catkin-tools package, follow the commands below:
    sudo pip install -U catkin_tools
    This command is based on the official catkin documentation.

Hope this helps.

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.

9 participants