Closed GoogleCodeExporter closed 9 years ago
Which version of Delphi are you using? Just by browsing the code I can see
that there may be a Unicode compatibility issue in this function:
function BinStrToPyStr(const AString : String) : Variant;
var
_str : PPyObject;
begin
_str := GetPythonEngine.PyString_FromStringAndSize(PAnsiChar(AString), Length(AString));
Result := VarPythonCreate(_str);
GetPythonEngine.Py_DECREF(_str);
end;
Original comment by pyscripter
on 27 Aug 2012 at 1:37
Hi,
I'm using Delphi 2010.
Original comment by niall.ma...@gmail.com
on 27 Aug 2012 at 7:45
Partially fixed in version control. Note that to use the PIL library (C
extension) with Python version 2.6 or later you need to add a manifest
(http://code.google.com/p/python4delphi/wiki/P4DPython26). This has been added
to the project.
There is one part of the code that I could not get it to work. (see TODO
item). If anyone can find a workaround, that would be great.
Original comment by pyscripter
on 28 Aug 2012 at 1:14
Original issue reported on code.google.com by
niall.ma...@gmail.com
on 18 Aug 2012 at 8:04