PythonEval.cc: ‘PyString_AsString’ was not declared in this scope

Bug #1063039 reported by Karl Sackett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenCog
New
High
Unassigned

Bug Description

Debian Linux 7.0
OpenCog revision 7652
Cython 0.17.1

Scanning dependencies of target PythonEval
[ 61%] Building CXX object opencog/cython/CMakeFiles/PythonEval.dir/PythonEval.cc.o
/home/krs/src/opencog/opencog/cython/PythonEval.cc: In member function ‘void opencog::PythonEval::printDict(PyObject*)’:
/home/krs/src/opencog/opencog/cython/PythonEval.cc:164:43: error: ‘PyString_AsString’ was not declared in this scope
make[2]: *** [opencog/cython/CMakeFiles/PythonEval.dir/PythonEval.cc.o] Error 1
make[1]: *** [opencog/cython/CMakeFiles/PythonEval.dir/all] Error 2
make: *** [all] Error 2

linas (linasvepstas)
Changed in opencog:
importance: Undecided → High
Revision history for this message
Karl Sackett (karlsackett) wrote :

I was looking through the output from cmake and I saw these lines:

-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Found PythonLibs: /usr/lib/libpython3.2mu.so (found version "3.2.3")
-- Python libs found.

In Debian Linux the default Python is 2.7.3, but somehow CMake was pulling in
libpython3.2mu.so instead of libpython2.7.so.1.0. When I removed the libpython3.2
package the problem went away. The build failed apparently because of the version
mismatch between python and libpython.

Revision history for this message
Ehab (ehabnoreddin) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.