ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

error building a package with rosjava

asked 2011-10-06 02:38:36 -0500

martin gravatar image


I'm trying to rosmake a package using the as described here.

Everything works fine until I add a dependency on another (self created) package. No problems occur with dependencies on core packages (like std_msgs) or if I don't use the

I get an extension during the run of because the script is trying to locate the "installation of stack None":

[ rosmake ] All 18 linesest: 0.3 sec ]    
rosrun rosjava_bootstrap test >
Traceback (most recent call last):
File "/opt/ros/electric/stacks/rosjava_core/rosjava_bootstrap/scripts/", line 174, in <module>
File "/opt/ros/electric/stacks/rosjava_core/rosjava_bootstrap/scripts/", line 171, in generate_properties_main
File "/opt/ros/electric/stacks/rosjava_core/rosjava_bootstrap/scripts/", line 124, in generate_ros_properties
  props['ros.pkg.%s.version'%(p)] = get_package_version(p)
File "/opt/ros/electric/stacks/rosjava_core/rosjava_bootstrap/scripts/", line 112, in get_package_version
  return get_stack_version_cached(s)
File "/opt/ros/electric/stacks/rosjava_core/rosjava_bootstrap/scripts/", line 106, in get_stack_version_cached
  _stack_version_cache[s] = val = roslib.stacks.get_stack_version(s)
File "/opt/ros/electric/ros/core/roslib/src/roslib/", line 310, in get_stack_version
  return get_stack_version_by_dir(get_stack_dir(stack, env=env))
File "/opt/ros/electric/ros/core/roslib/src/roslib/", line 168, in get_stack_dir
  raise InvalidROSStackException("Cannot location installation of stack %s. ROS_ROOT[%s] ROS_PACKAGE_PATH[%s]"%(stack, env[ROS_ROOT], env.get(ROS_PACKAGE_PATH, '')))
roslib.stacks.InvalidROSStackException: Cannot location installation of stack None.

I'm using the newest ros-electric-rosjava-core (0.1.0-s1313710013~maverick).


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-10-08 04:32:51 -0500

damonkohler gravatar image

I believe that's fixed at head. You can try installing rosjava from source to fix the issue. Or, you can put your new package in a stack.

edit flag offensive delete link more


Putting it in a package worked (didn't try installing it from source). Thanks!
martin gravatar image martin  ( 2011-10-13 20:17:07 -0500 )edit

Question Tools


Asked: 2011-10-06 02:38:36 -0500

Seen: 218 times

Last updated: Oct 08 '11