Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'scripts': 0.03; 'subject:Python': 0.06; 'anderson': 0.07; 'modify': 0.07; 'subject:help': 0.08; '128': 0.09; 'assuming': 0.09; 'subject:2.7': 0.09; 'runs': 0.10; 'python': 0.11; '2.7': 0.14; '"default"': 0.16; '127': 0.16; '?default?': 0.16; 'fp:': 0.16; 'libraries.': 0.16; 'subject:between': 0.16; 'settings': 0.22; 'appears': 0.22; 'to:name:python-list@python.org': 0.22; 'install': 0.23; 'error': 0.23; 'compared': 0.30; 'program,': 0.31; 'received:169.254': 0.32; 'run': 0.32; 'another': 0.32; 'done.': 0.35; 'url:rec-html40': 0.35; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'received:169': 0.37; 'url:microsoft': 0.37; 'received:10': 0.37; 'version,': 0.38; 'url:office': 0.38; 'to:addr:python-list': 0.38; 'url:schemas': 0.38; 'url:omml': 0.39; 'url:2004': 0.39; 'url:12': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'how': 0.40; 'subject:Can': 0.60; 'simply': 0.61; 'directed': 0.83; '2.5.': 0.84; '2.7.': 0.84; 'delphi': 0.84; 'received:10.242': 0.84 From: Errol Anderson To: "python-list@python.org" Subject: Can anyone help on conflicts between Python 2.5 and 2.7 Thread-Topic: Can anyone help on conflicts between Python 2.5 and 2.7 Thread-Index: Ac7FNdE7tLYt9gXORAmigU6nPoIzHg== Date: Wed, 9 Oct 2013 21:47:54 +0000 Accept-Language: en-NZ, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [68.190.187.251] x-forefront-prvs: 0994F5E0C5 x-forefront-antispam-report: SFV:NSPM; SFS:(199002)(189002)(63696002)(79102001)(76576001)(76796001)(56816003)(15975445006)(76786001)(16236675002)(74876001)(77096001)(81816001)(74706001)(81686001)(54316002)(56776001)(31966008)(74662001)(76176001)(74502001)(47446002)(59766001)(77982001)(33646001)(19609705001)(19300405004)(81342001)(46102001)(50986001)(51856001)(74366001)(49866001)(47736001)(47976001)(54356001)(4396001)(53806001)(83072001)(65816001)(66066001)(80022001)(74316001)(83322001)(19580395003)(85306002)(15202345003)(69226001)(80976001)(81542001)(403724002)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR06MB171; H:BY2PR06MB172.namprd06.prod.outlook.com; CLIP:68.190.187.251; FPR:; RD:InfoNoRecords; A:1; MX:1; LANG:en; Content-Type: multipart/alternative; boundary="_000_162dd5ac741c4aa9b1f50289bbfc67e1BY2PR06MB172namprd06pro_" MIME-Version: 1.0 X-OriginatorOrg: gradient.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 116 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1381355287 news.xs4all.nl 15880 [2001:888:2000:d::a6]:36396 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:56517 --_000_162dd5ac741c4aa9b1f50289bbfc67e1BY2PR06MB172namprd06pro_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I maintain a Delphi program, AAA, that runs Python 2.5 scripts using the Py= thonForDelphi (P4D)interface. I can install both Python 2.5 and Python 2.7= on my computer and AAA is unaffected. However one user of AAA uses anoth= er program, BBB, that requires Python 2.7. When they run AAA, an error is = generated that suggests that AAA has been directed to the Python 2.7 librar= ies. The specific error is identified in Python27\lib\linecache.py line 127 with open(fullname, 'rU') as fp: as compared with Python25\lib\linecache.py line 128 fp =3D open(fullname, 'rU') It appears that the BBB program installs Python 2.7 to be the "default" Pyt= hon version, although I do not know how this is done. Assuming BBB cannot = be changed, I would like to know how I can modify AAA so that it ignores an= y "default" settings and simply runs Python 2.5. Regards Errol Anderson --_000_162dd5ac741c4aa9b1f50289bbfc67e1BY2PR06MB172namprd06pro_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I maintain a Delphi program, AAA, that runs Python 2= .5 scripts using the PythonForDelphi (P4D)interface.  I can install bo= th Python 2.5 and Python 2.7 on my computer and AAA is unaffected.  &n= bsp;However one user of AAA uses another program, BBB, that requires Python 2.7.  When they run AAA, an error is genera= ted that suggests that AAA has been directed to the Python 2.7 libraries.

 

The specific error is identified in Python27\lib\lin= ecache.py line 127

        with open= (fullname, 'rU') as fp:

 

as compared with Python25\lib\linecache.py line 128<= o:p>

        fp =3D op= en(fullname, 'rU')

 

It appears that the BBB program installs Python 2.7 = to be the “default” Python version, although I do not know how = this is done.  Assuming BBB cannot be changed, I would like to know ho= w I can modify AAA so that it ignores any “default” settings and simply runs Python 2.5.

 

Regards

 

Errol Anderson

 

 

 

--_000_162dd5ac741c4aa9b1f50289bbfc67e1BY2PR06MB172namprd06pro_--