ros-infrastructure / rosdep

rosdep multi-package manager system dependency tool
http://ros.org/wiki/rosdep
BSD 3-Clause "New" or "Revised" License
77 stars 170 forks source link

create post install hook for the debian to init the database #31

Open tfoote opened 11 years ago

tfoote commented 11 years ago

This will help people avoid tracebacks

ahendrix commented 11 years ago

I just ran into this as well. +1

ahendrix commented 11 years ago

This lack of an install hook is causing ROS startup problems on the PR2:

[narrow_stereo_left-17] process has died [pid 14176, exit code -6, cmd /opt/ros/groovy/stacks/wge100_driver/wge100_camera/bin/wge100_camera_node /diagnostics:=/diagnostics /diagnostics_agg:=/diagnostics_agg camera:=narrow_stereo/left camera_alternate:=narrow_stereo_textured/left name:=narrow_stereo_left log:=/u/ahendrix/.ros/log/4df6bb56-3c5c-11e2-929a-001517c017d5/narrow_stereo_left-17.log]. log file: /u/ahendrix/.ros/log/4df6bb56-3c5c-11e2-929a-001517c017d5/narrow_stereoleft-17.log respawning... [wide_stereo_left-13] restarting process process[wide_stereo_left-13]: started with pid [14830] [narrow_stereo_right-16] restarting process process[narrow_stereo_right-16]: started with pid [14834] [narrow_stereo_left-17] restarting process process[narrow_stereo_left-17]: started with pid [14840] Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Threadblock'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored [rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update' [librospack]: error while executing command terminate called after throwing an instance of 'pluginlib::LibraryLoadException' what(): rospack could not find the image_transport package containing image_transport::PublisherPlugin [prosilica_driver-10] process has died [pid 14546, exit code -6, cmd /opt/ros/groovy/stacks/prosilica_driver/prosilica_camera/bin/prosilica_node /diagnostics:=/diagnostics /diagnostics_agg:=/diagnostics_agg camera:=prosilica name:=prosilica_driver __log:=/u/ahendrix/.ros/log/4df6bb56-3c5c-11e2-929a-001517c017d5/prosilica_driver-10.log]. log file: /u/ahendrix/.ros/log/4df6bb56-3c5c-11e2-929a-001517c017d5/prosilicadriver-10.log respawning... [prosilica_driver-10] restarting process process[prosilica_driver-10]: started with pid [15194] [rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update' [librospack]: error while executing command [rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update' [librospack]: error while executing command terminate called after throwing an instance of 'pluginlib::LibraryLoadException' what(): rospack could not find the image_transport package containing image_transport::PublisherPlugin terminate called after throwing an instance of 'pluginlib::LibraryLoadException' what(): rospack could not find the image_transport package containing image_transport::PublisherPlugin

tfoote commented 11 years ago

You're going to need to work around this on the pr2 in the short term. The post install can do the init, but not the update as the update is specific to the user.

On Sun, Dec 2, 2012 at 12:56 AM, Austin Hendrix notifications@github.comwrote:

This lack of an install hook is causing ROS startup problems on the PR2:

[narrow_stereo_left-17] process has died [pid 14176, exit code -6, cmd /opt/ros/groovy/stacks/wge100_driver/wge100_camera/bin/wge100_camera_node /diagnostics:=/diagnostics /diagnostics_agg:=/diagnostics_agg camera:=narrow_stereo/left camera_alternate:=narrow_stereo_textured/left _name:=narrow_stereo_left log:=/u/ahendrix/.ros/log/4df6bb56-3c5c-11e2-929a-001517c017d5/narrow_stereo_left-17.log]. log file: /u/ahendrix/.ros/log/4df6bb56-3c5c-11e2-929a-001517c017d5/narrow_stereoleft-17.log respawning... [wide_stereo_left-13] restarting process process[wide_stereo_left-13]: started with pid [14830] [narrow_stereo_right-16] restarting process process[narrow_stereo_right-16]: started with pid [14834] [narrow_stereo_left-17] restarting process process[narrow_stereo_left-17]: started with pid [14840] Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread_block'",) in ignored [rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update' [librospack]: error while executing command terminate called after throwing an instance of 'pluginlib::LibraryLoadException' what(): rospack could not find the image_transport package containing image_transport::PublisherPlugin [prosilica_driver-10] process has died [pid 14546, exit code -6, cmd /opt/ros/groovy/stacks/prosilica_driver/prosilica_camera/bin/prosilica_node /diagnostics:=/diagnostics /diagnostics_agg:=/diagnostics_agg camera:=prosilica name:=prosilica_driver __log:=/u/ahendrix/.ros/log/4df6bb56-3c5c-11e2-929a-001517c017d5/prosilica_driver-10.log]. log file: /u/ahendrix/.ros/log/4df6bb56-3c5c-11e2-929a-001517c017d5/prosilicadriver-10.log respawning... [prosilica_driver-10] restarting process process[prosilica_driver-10]: started with pid [15194] [rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update' [librospack]: error while executing command [rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update' [librospack]: error while executing command terminate called after throwing an instance of 'pluginlib::LibraryLoadException' what(): rospack could not find the image_transport package containing image_transport::PublisherPlugin terminate called after throwing an instance of 'pluginlib::LibraryLoadException' what(): rospack could not find the image_transport package containing image_transport::PublisherPlugin

— Reply to this email directly or view it on GitHubhttps://github.com/ros/rosdep/issues/31#issuecomment-10927499.

Tully Foote tfoote@willowgarage.com (650) 475-2827

jon-weisz commented 11 years ago

+1 -- also shouldn't rosdep allow alternate locations for sources.list? It appears to ignore ROS_ETC_DIR, which is a little misleading.

wjwwood commented 11 years ago

https://github.com/astraw/stdeb/pull/50

mikepurvis commented 11 years ago

Just want to +1 this as well.

wjwwood commented 11 years ago

Short of me taking partial maintenance of stdeb, I don't see this happening anytime soon.

NikolausDemmel commented 10 years ago

Just for future reference, once #46 is realized, the post-install hook can also update, not only init. @tfoote details how this should probably work here: https://github.com/ros-infrastructure/rosdep/issues/50#issuecomment-36593077 . And more discussion about this an related issues: https://groups.google.com/forum/#!topic/ros-sig-buildsystem/BsUsgGPbubQ.

trainman419 commented 10 years ago

I'm proposing to fix this in #312 . Please review and comment there.