Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Lunar failing to complie on raspberry pi


Has anyone yet got Lunar to compile on the pi. I've not really had and source related issues with previous releases however this one is reporting the error below from roslib:

Traceback (most recent call last):
  File "/home/pi/ros_catkin_ws_lunar/build_isolated/roslib/catkin_generated/", line 22, in <module>
    code = generate_environment_script('/home/pi/ros_catkin_ws_lunar/devel_isolated/roslib/')
  File "/home/pi/ros_catkin_ws_lunar/install_isolated/lib/python2.7/dist-packages/catkin/", line 62, in generate_environment_script
    env_after = ast.literal_eval(output.decode('utf8'))
  File "/usr/lib/python2.7/", line 49, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
  File "/usr/lib/python2.7/", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 1
    ROS_DISTRO was set to 'kinetic' before. Please make sure that the environment does not mix paths from different distributions.
SyntaxError: invalid syntax
CMake Error at /home/pi/ros_catkin_ws_lunar/install_isolated/share/catkin/cmake/safe_execute_process.cmake:11 (message):
  returned error code 1
Call Stack (most recent call first):
  /home/pi/ros_catkin_ws_lunar/install_isolated/share/catkin/cmake/catkin_add_env_hooks.cmake:138 (safe_execute_process)
  CMakeLists.txt:29 (catkin_add_env_hooks)

Any suggestions?

Many Thanks