<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Errol<br>
<br>
What version of Windows are you running? x64 I guess.<br>
You need to install the 32bit version of Python 2.7, as Delphi 2007
doesn't support 64bit dlls.<br>
<br>
Cheers,<br>
Todd.<br>
<br>
<blockquote cite="mid:000301ce4d17$4591e960$d0b5bc20$@gsds.co.nz"
type="cite">
<pre wrap="">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: <a class="moz-txt-link-abbreviated" href="mailto:delphi-bounces@listserver.123.net.nz">delphi-bounces@listserver.123.net.nz</a>
[<a class="moz-txt-link-freetext" href="mailto:delphi-bounces@listserver.123.net.nz">mailto:delphi-bounces@listserver.123.net.nz</a>] On Behalf Of
<a class="moz-txt-link-abbreviated" href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a>
Sent: Tuesday, May 07, 2013 12:00 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a>
Subject: Delphi Digest, Vol 115, Issue 4
Send Delphi mailing list submissions to
        <a class="moz-txt-link-abbreviated" href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a>
To subscribe or unsubscribe via the World Wide Web, visit
        <a class="moz-txt-link-freetext" href="http://listserver.123.net.nz/mailman/listinfo/delphi">http://listserver.123.net.nz/mailman/listinfo/delphi</a>
or, via email, send a message with subject or body 'help' to
        <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a>
You can reach the person managing the list at
        <a class="moz-txt-link-abbreviated" href="mailto:delphi-owner@listserver.123.net.nz">delphi-owner@listserver.123.net.nz</a>
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 <a class="moz-txt-link-rfc2396E" href="mailto:Steve@webdata.co.nz"><Steve@webdata.co.nz></a>
Subject: [DUG] Running Delphi 2007 with Python 2.7
To: NZ Borland Developers Group - Delphi List
        <a class="moz-txt-link-rfc2396E" href="mailto:delphi@listserver.123.net.nz"><delphi@listserver.123.net.nz></a>
Message-ID: <0019B0AC6A80D4119E5C204C4F4F5020A51D8B@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 <a class="moz-txt-link-rfc2396E" href="mailto:todd.martin.nz@gmail.com"><todd.martin.nz@gmail.com></a>
Subject: Re: [DUG] Running Delphi 2007 with Python 2.7
To: NZ Borland Developers Group - Delphi List
        <a class="moz-txt-link-rfc2396E" href="mailto:delphi@listserver.123.net.nz"><delphi@listserver.123.net.nz></a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:51883FC4.6040604@gmail.com"><51883FC4.6040604@gmail.com></a>
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.
</pre>
<blockquote type="cite">
<pre wrap="">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: <a class="moz-txt-link-abbreviated" href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a>
with Subject: unsubscribe
</pre>
</blockquote>
<pre wrap="">
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<a class="moz-txt-link-freetext" href="http://listserver.123.net.nz/pipermail/delphi/attachments/20130507/f4b5f8d6/">http://listserver.123.net.nz/pipermail/delphi/attachments/20130507/f4b5f8d6/</a>
attachment-0001.html
------------------------------
_______________________________________________
Delphi mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@listserver.123.net.nz">Delphi@listserver.123.net.nz</a>
<a class="moz-txt-link-freetext" href="http://listserver.123.net.nz/mailman/listinfo/delphi">http://listserver.123.net.nz/mailman/listinfo/delphi</a>
End of Delphi Digest, Vol 115, Issue 4
**************************************
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<i>Fortune</i> favours the <b>brave</b></div>
</body>
</html>