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

install rosjava error

asked 2012-04-23 09:20:09 -0500

Kat gravatar image

I have troubles installing rosjava_core.

Building > :rosjava_actionlib:compileJava > Resolving dependencies ':rosjava_a:rosjava_actionlib:compileJava

FAILURE: Build failed with an exception.

  • What went wrong: Could not resolve all dependencies for configuration ':rosjava_actionlib:compile'. > Could not find group:ros, module:message.actionlib_msgs, version:0.0.0-SNAPSHOT. Required by: ros.rosjava_core:rosjava_actionlib:0.0.0-SNAPSHOT

Then I tried this tutorial: http://docs.rosjava.googlecode.com/hg/rosjava_core/html/installing.html

  • sudo apt-get install python-setuptools (ran fine)
  • easy_install --prefix ~/.local -U rosinstall

error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the installation directory:

[Errno 2] No such file or directory: '/home/katrijne/.local/lib/python2.7/site-packages/test-easy-install-4763.write-test'

The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:

/home/katrijne/.local/lib/python2.7/site-packages

This directory does not currently exist. Please create it and try again, or choose a different installation directory (using the -d or --install-dir option).

  • export PATH=$PATH:~/.local/bin
  • ... (see the tutorial)
  • easy_install --prefix ~/.local -U pygments (gives the same error as the previous easy_install)
  • roscd rosjava_core
  • ./gradlew install

21:02:09.331 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception. 21:02:09.331 [ERROR] [org.gradle.BuildExceptionReporter] 21:02:09.331 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: 21:02:09.332 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':rosjava_messages:generateSources'. 21:02:09.334 [ERROR] [org.gradle.BuildExceptionReporter] > Command '/usr/lib/jvm/java-6-openjdk/bin/java' finished with (non-zero) exit value 1. 21:02:09.335 [ERROR] [org.gradle.BuildExceptionReporter] 21:02:09.335 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is: 21:02:09.336 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':rosjava_messages:generateSources'.

Can you help me?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2012-04-26 05:53:36 -0500

damonkohler gravatar image

The documentation for installing rosjava_core has been recently updated to use pip. Please follow the directions as described there (using rosws and pip).

edit flag offensive delete link more
0

answered 2012-04-27 23:12:22 -0500

Kat gravatar image

updated 2012-04-28 01:15:45 -0500

Yes I have noticed that. I have tried to reinstall ros (electric) and rosjava_core because I might have done something wrong. And I followed the tutorial again. Now I get this error:

package rosgraph_msgs does not exist (27 times)

But I can find rosgraph_msgs in the ros folder under stacks/ros_comm/messages

edit flag offensive delete link more

Comments

Please reply to answers with comments, not new answers. It sounds like your workspace isn't set up correctly. Make sure that rosmsg show rosgraph_msgs/Log works before doing the build. If not, I suggest going through the rosws tutorial.

damonkohler gravatar image damonkohler  ( 2012-04-29 20:20:18 -0500 )edit
0

answered 2012-05-02 20:50:16 -0500

Kat gravatar image

updated 2012-05-02 20:53:48 -0500

Ok I solved it! I think my .bashrc in my home directory was the problem.

edit flag offensive delete link more

Comments

I'm having the original issue that's listed here. Previously I was encountering the issue rosgraph_msgs. I commented out everything that was being loaded in .bashrc, now I'm seeing the issue: Execution failed for task ':rosjava_messages:generateSources'.

Yeison Rodriguez gravatar image Yeison Rodriguez  ( 2013-03-24 22:30:03 -0500 )edit

Question Tools

Stats

Asked: 2012-04-23 09:20:09 -0500

Seen: 864 times

Last updated: May 02 '12