ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
0

local variable 'logger' referenced before assignment? [closed]

asked 2014-08-16 06:00:08 -0500

Pat gravatar image

updated 2014-08-16 06:57:26 -0500

bvbdort gravatar image

Using fresh install ROS indigo with Ubuntu 14.04 When trying to start openni2_launch I get below error. What could be wrong?

ros@host1:~$ roslaunch openni2_launch openni2.launch
[openni2.launch] is neither a launch file in package [openni2_launch] nor is [openni2_launch] a launch file name
The traceback for the exception was written to the log file
Traceback (most recent call last):openni2_launch
  File "/opt/ros/indigo/bin/roslaunch", line 35, in <module>
    roslaunch.main()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/__init__.py", line 292, in main
    logger.error(traceback.format_exc())
UnboundLocalError: local variable 'logger' referenced before assignment
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Pat
close date 2014-08-16 17:06:52.276889

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-08-16 14:43:06 -0500

ahendrix gravatar image

roslaunch is complaining that it can't find the openni2_launch package. Do you have it installed?

Try:

sudo apt-get install ros-indigo-openni2-launch
edit flag offensive delete link more

Comments

No :-) THX That solved the issue.

Pat gravatar imagePat ( 2014-08-16 17:05:41 -0500 )edit

Question Tools

Stats

Asked: 2014-08-16 06:00:08 -0500

Seen: 1,298 times

Last updated: Aug 16 '14