[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: Jan Evert van Grootheest <j.grootheest_at_euronext.nl>
Date: 2003-09-29 11:18:48 CEST

Anthony,

thanks for this suggestion, it makes this line work.
But now the next line then fails.

I guess the better option is to install a newer python.

Thanks,
Jan Evert

Anthony Baxter wrote:

>>>>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
> popen2.popen3(...)
>
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 29 11:20:19 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.