Message: previous - next
Month: February 2014

Re: [trinity-devel] kdeutils FTBFS - error: 'PyString_CheckExact' was not declared in this scope

From: "E. Liddell" <ejlddll@...>
Date: Sun, 9 Feb 2014 08:27:13 -0500
On Sun, 09 Feb 2014 00:22:30 -0600
"David C. Rankin" <drankinatty@...> wrote:

> On 02/08/2014 11:38 PM, Darrell Anderson wrote:

> > I have Python 2.7 installed. The Python.h header file has a bunch 
> > of other header file includes, one of which PyString_CheckExact is 
> > defined.
> > 
> > Perhaps look into where PyString_CheckExact is defined in your 
> > version of Python. My guess is your version of Python.h no longer 
> > contains an include where PyString_CheckExact is defined or perhaps 
> > PyString_CheckExact has been replaced by a different function.

> Your guesses are pretty 'spot-on' normally. Arch has python 3.3.3, but also
> includes python 2.7.6 as 'python2'. We should be able to patch the superkaramba
> cmake file to call python2 instead of python which should solve the problem.

A lot of things about string handling changed between Python 2 and Python 3,
and the problems associated with this are one of the main reasons Python 2
is still a going concern.  For practical purposes, it's easiest to treat the two as
separate languages, rather than as two versions of the same language,
because most code is surprisingly difficult to transfer.

E. Liddell