PythonEval.cc: ‘PyString_AsString’ was not declared in this scope
Bug #1063039 reported by
Karl Sackett
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/
/home/krs/
/home/krs/
make[2]: *** [opencog/
make[1]: *** [opencog/
make: *** [all] Error 2
Changed in opencog: | |
importance: | Undecided → High |
To post a comment you must log in.
I was looking through the output from cmake and I saw these lines:
-- Found PythonInterp: /usr/bin/python (found version "2.7.3") libpython3. 2mu.so (found version "3.2.3")
-- Found PythonLibs: /usr/lib/
-- Python libs found.
In Debian Linux the default Python is 2.7.3, but somehow CMake was pulling in 7.so.1. 0. When I removed the libpython3.2
libpython3.2mu.so instead of libpython2.
package the problem went away. The build failed apparently because of the version
mismatch between python and libpython.