[ros-users] In dynamic_reconfigure: an error (OSX)

Nicholas Butko nbutko at ucsd.edu
Tue Nov 9 18:28:01 UTC 2010


Trying to build hokuyo_node on OSX, I get an error that I traced back to dynamic_reconfigure. 

Somehow cmake is generating spurious python dependencies (see below). The problem is that a binary .egg file is identified as a dependency, but it is treaded like a folder. So the .egg file exists, but is not a folder, and when make tries to look into the folder that doesn't exist, it can't find the file. But the .egg file works just fine, as shown below (import works just fine in Python). 

I'm not sure how to debug this, and I'm not sure how it can be fixed. Does anyone with more experience with Python and CMake have any ideas? 

--Nick 




0-1e-c2-b9-c8-99:dynamic_reconfigure nick$ make
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
[rosbuild] Building package dynamic_reconfigure
[rosbuild] Including /Users/nick/ros/ros/core/roscpp/cmake/roscpp.cmake
[rosbuild] Including /Users/nick/ros/ros/core/roslisp/cmake/roslisp.cmake
[rosbuild] Including /Users/nick/ros/ros/core/rospy/cmake/rospy.cmake
[rosbuild] Including /Users/nick/ros/other/ros_experimental/rosjava/cmake/rosjava.cmake
-- Java version 1.6.0.22 configured successfully!
[rosbuild] Including /Users/nick/ros/other/ros_experimental/rosoct/cmake/rosoct.cmake
MSG: gencfg_cpp on:Test.cfg
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/nick/ros/stacks/driver_common/dynamic_reconfigure/build
cd build && make 
make[3]: *** No rule to make target `/Library/Python/2.6/site-packages/PyYAML-3.09-py2.6-macosx-10.6-universal.egg/yaml/representer.py', needed by `../cfg/cpp/dynamic_reconfigure/TestConfig.h'.  Stop.
make[2]: *** [CMakeFiles/ROSBUILD_gencfg_cpp.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

0-1e-c2-b9-c8-99:dynamic_reconfigure nick$ echo $PYTHONPATH
/Users/nick/ros/ros/core/roslib/src::/usr/local/lib/python2.6/site-packages
0-1e-c2-b9-c8-99:dynamic_reconfigure nick$ python
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from yaml import representer
>>> quit()




More information about the ros-users mailing list