[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: hot-backup.py fails

From: Anthony Baxter <anthony_at_interlink.com.au>
Date: 2003-09-26 18:33:59 CEST

>>> Seth Falcon wrote
> In other words, install a more recent version of Python and the script
> should work.

Alternately, replace the code with
import popen2

This should work on older versions of Python as well as newer versions.

> This should probably be noted somewhere because RedHat continues to ship
> (AFAIK) with an _old_ version of Python (1.5.x). Perhaps something like
> the following could be added to hot-backup.py:

This is no longer the case. Certainly, on this RH9 system, python is
python2.2.2. I think that RH8 and later ships with python2.2.

> major = sys.version_info[0]
> if major < 2: # tell user to upgrade Python and exit gracefully

If it's just popen3 that's needed, the above fix is better. If there's
other reasons for Python2, then you'll need something like the above.
Note, though, that sys.version_info wasn't in Python 1.5.2. You instead
want something like
   version = string.split(sys.version)[0]
   if version < '2':
      raise UpgradePythonPlease


Anthony Baxter     <anthony@interlink.com.au>   
It's never too late to have a happy childhood.
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 26 18:36:28 2003

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.