turtlebot / turtlebot_apps

A group of simple demos and exmaples to run on your TurtleBot to help you get started with ROS and TurtleBot.
http://www.ros.org/wiki/turtlebot_apps
196 stars 225 forks source link

Issue with pano_py #121

Closed ccard closed 9 years ago

ccard commented 9 years ago

I am having a similar issue to bit-pirate and i made sure that I have the correct version of python installed and that didn't fix it. I have looked extensively online and can't find a solution to this issue and I was wondering if you may have a solution. I am using ros indigo. My stake trace is bellow:

.../turtlebot/src/turtlebot_apps/software/pano/pano_py/src/pano_cv/opencv.cpp: In function ‘cv::Mat pano_py::{anonymous}::convert_from_cvmat(PyObject*, const char*)’:
.../turtlebot/src/turtlebot_apps/software/pano/pano_py/src/pano_cv/opencv.cpp:60:40: error: ‘PyString_Check’ was not declared in this scope
   if (m->data && PyString_Check(m->data))
                                        ^
.../turtlebot/src/turtlebot_apps/software/pano/pano_py/src/pano_cv/opencv.cpp:63:44: error: ‘PyString_AsString’ was not declared in this scope
       char *ptr = PyString_AsString(m->data) + m->offset;
                                            ^
.../turtlebot/src/turtlebot_apps/software/pano/pano_py/src/pano_cv/opencv.cpp: In function ‘cv::Mat pano_py::{anonymous}::convert_from_cviplimage(PyObject*, const char*)’:
.../turtlebot/src/turtlebot_apps/software/pano/pano_py/src/pano_cv/opencv.cpp:90:31: error: ‘PyString_Check’ was not declared in this scope
   if (PyString_Check(ipl->data)) {
                               ^
.../turtlebot/src/turtlebot_apps/software/pano/pano_py/src/pano_cv/opencv.cpp:91:50: error: ‘PyString_AsString’ was not declared in this scope
     cvSetData(ipl->a, PyString_AsString(ipl->data) + ipl->offset, ipl->a->widthStep);
bit-pirate commented 9 years ago

Please also state, what system you are running on and other important information, such as the python version you are using.

ccard commented 9 years ago

i am using:

stonier commented 9 years ago

Looks rather like some python functionality is missing or not found.

A first step id suggest is checking that it works with trusty and a system install of python 2.7. If that does you can start checking what is different with your source install.

ccard commented 9 years ago

I resolved the issue it turns out that there where left over programs from my upgrade from 12.10 to 14.04 doing a completely fresh install of ubuntu 14.04 fixed the problem. Thanks for your help