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