[DUG] Delphi Digest, Vol 115, Issue 4

Todd Martin todd.martin.nz at gmail.com
Fri May 10 14:47:50 NZST 2013


Hi Errol

What version of Windows are you running? x64 I guess.
You need to install the 32bit version of Python 2.7, as Delphi 2007
doesn't support 64bit dlls.

Cheers,
Todd.

> Hi Todd
>
> Sorry I didn't make myself clear.  Replies as follows:
>
> Was the old version of "Python for Delphi" working ok with Delphi 2007 and
> Python 2.5?   Yes 
> Is the latest version of "Python for Delphi" working ok with Delphi 2007 and
> Python 2.5?   Yes
> Is the latest version of "Python for Delphi" working ok with Delphi < 2006
> and Python 2.7?  Never tried it but I doubt if this would work - see below.
>
> I believe my problem is much more basic than a Unicode issue.  The
> PythonEngine unit simply does not recognize Python27.dll.   By judicious
> editing, I can force the unit to load python27.dll, but then it fails in
> MapDll when assigning @PyEval_CallObject and possibly other variables.
>
> It looks like P4D has not been updated to work for Python 2.7 and later
> versions.  Can anyone confirm this?
>
> Regards
>
> Errol
>
>
>
>  
>
> -----Original Message-----
> From: delphi-bounces at listserver.123.net.nz
> [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of
> delphi-request at listserver.123.net.nz
> Sent: Tuesday, May 07, 2013 12:00 PM
> To: delphi at listserver.123.net.nz
> Subject: Delphi Digest, Vol 115, Issue 4
>
> Send Delphi mailing list submissions to
> 	delphi at listserver.123.net.nz
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://listserver.123.net.nz/mailman/listinfo/delphi
> or, via email, send a message with subject or body 'help' to
> 	delphi-request at listserver.123.net.nz
>
> You can reach the person managing the list at
> 	delphi-owner at listserver.123.net.nz
>
> When replying, please edit your Subject line so it is more specific than
> "Re: Contents of Delphi digest..."
>
>
> Today's Topics:
>
>    1. Running Delphi 2007 with Python 2.7 (Stephen Barker)
>    2. Re: Running Delphi 2007 with Python 2.7 (Todd Martin)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 7 May 2013 10:47:07 +1200
> From: Stephen Barker <Steve at webdata.co.nz>
> Subject: [DUG] Running Delphi 2007 with Python 2.7
> To: NZ Borland Developers Group - Delphi List
> 	<delphi at listserver.123.net.nz>
> Message-ID: <0019B0AC6A80D4119E5C204C4F4F5020A51D8B at NTSERVER>
> Content-Type: text/plain
>
> Hi all,
>
> I'm submitting this on someone else's behalf, and hopefully someone here has
> some ideas:
>
> -----------------
>
> I maintain a Delphi 2007 application that uses Python for Delphi to run
> Python scripts.  I currently use Python 2.5 and wish to upgrade to Python
> 2.7.  However, the latest version of Python for Delphi seems to recognize
> only up to Python 2.6 and Delphi 2006.  How do I get my program working with
> Python 2.7?
>
> When I uninstall Python 2.5, install Python 2.7 and recompile the Delphi
> application, it crashes as it is unable to find python25.dll.
>
>
> I would appreciate any help on this.
>
> -----------------
>
>
> cheers,
> Steve
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 07 May 2013 11:41:56 +1200
> From: Todd Martin <todd.martin.nz at gmail.com>
> Subject: Re: [DUG] Running Delphi 2007 with Python 2.7
> To: NZ Borland Developers Group - Delphi List
> 	<delphi at listserver.123.net.nz>
> Message-ID: <51883FC4.6040604 at gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Stephen
>
> You have thrown too many variables into this question.
>
> Was the old version of "Python for Delphi" working ok with Delphi 2007 and
> Python 2.5?
> Is the latest version of "Python for Delphi" working ok with Delphi 2007 and
> Python 2.5?
> Is the latest version of "Python for Delphi" working ok with Delphi <
> 2006 and Python 2.7?
>
> I would say your problems are related to unicode. I can't remember if Delphi
> 2007 saves source code in UTF-8 by default, so you might need to explicity
> state the encoding at the top of the python script files.
>
> |# encoding: utf-8|
>
>
> Todd.
>> Hi all,
>>
>> I'm submitting this on someone else's behalf, and hopefully someone 
>> here has some ideas:
>>
>> -----------------
>>
>> I maintain a Delphi 2007 application that uses Python for Delphi to 
>> run Python scripts.  I currently use Python 2.5 and wish to upgrade to 
>> Python 2.7.  However, the latest version of Python for Delphi seems to 
>> recognize only up to Python 2.6 and Delphi 2006.  How do I get my 
>> program working with Python 2.7?
>>
>> When I uninstall Python 2.5, install Python 2.7 and recompile the 
>> Delphi application, it crashes as it is unable to find python25.dll.
>>
>>
>> I would appreciate any help on this.
>>
>> -----------------
>>
>>
>> cheers,
>> Steve
>> _______________________________________________
>> NZ Borland Developers Group - Delphi mailing list
>> Post: delphi at listserver.123.net.nz
>> Admin: http://delphi.org.nz/mailman/listinfo/delphi
>> Unsubscribe: send an email to delphi-request at listserver.123.net.nz 
>> with Subject: unsubscribe
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://listserver.123.net.nz/pipermail/delphi/attachments/20130507/f4b5f8d6/
> attachment-0001.html 
>
> ------------------------------
>
> _______________________________________________
> Delphi mailing list
> Delphi at listserver.123.net.nz
> http://listserver.123.net.nz/mailman/listinfo/delphi
>
> End of Delphi Digest, Vol 115, Issue 4
> **************************************
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with Subject: unsubscribe


-- 
/Fortune/ favours the *brave*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20130510/260ae92e/attachment.html 


More information about the Delphi mailing list