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: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Tuesday, May 07, 2013 12:00 PM To: [email protected] Subject: Delphi Digest, Vol 115, Issue 4 Send Delphi mailing list submissions to [email protected] 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 [email protected] You can reach the person managing the list at [email protected] 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 <[email protected]> Subject: [DUG] Running Delphi 2007 with Python 2.7 To: NZ Borland Developers Group - Delphi List <[email protected]> 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 <[email protected]> Subject: Re: [DUG] Running Delphi 2007 with Python 2.7 To: NZ Borland Developers Group - Delphi List <[email protected]> Message-ID: <[email protected]> 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: [email protected] > Admin: http://delphi.org.nz/mailman/listinfo/delphi > Unsubscribe: send an email to [email protected] > 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 [email protected] http://listserver.123.net.nz/mailman/listinfo/delphi End of Delphi Digest, Vol 115, Issue 4 ************************************** _______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: [email protected] Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [email protected] with Subject: unsubscribe
