Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #56517

Can anyone help on conflicts between Python 2.5 and 2.7

From Errol Anderson <errol.anderson@gradient.com>
Subject Can anyone help on conflicts between Python 2.5 and 2.7
Date 2013-10-09 21:47 +0000
Newsgroups comp.lang.python
Message-ID <mailman.908.1381355287.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

I maintain a Delphi program, AAA, that runs Python 2.5 scripts using the PythonForDelphi (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 another 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 libraries.

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 = open(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 how I can modify AAA so that it ignores any "default" settings and simply runs Python 2.5.

Regards

Errol Anderson



Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Can anyone help on conflicts between Python 2.5 and 2.7 Errol Anderson <errol.anderson@gradient.com> - 2013-10-09 21:47 +0000
  Re: Can anyone help on conflicts between Python 2.5 and 2.7 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-10 01:31 +0000
    Re: Can anyone help on conflicts between Python 2.5 and 2.7 Terry Reedy <tjreedy@udel.edu> - 2013-10-09 23:32 -0400
    Re: Can anyone help on conflicts between Python 2.5 and 2.7 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-10 06:04 +0100

csiph-web