You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Nathan Fiedler <nf...@bluemarsh.com> on 2002/05/03 23:24:36 UTC

hot-backup.py attributeerror: popen3

What are the requirements for getting the tools/backup/hot-backup.py
script to work? When I run it, I get this error.

Beginning hot backup of '/usr/local/svn/repos'.
Traceback (innermost last):
  File "/etc/cron.daily/hot-backup.py", line 54, in ?
    infile, outfile, errfile = os.popen3(svnadmin + " youngest " +
repo_dir)
AttributeError: popen3

I've got the following Python RPMs installed:

rpm-python-4.0.3-1.03
python-1.5.2-35
python-devel-1.5.2-35
python-xmlrpc-1.5.1-7.x.3
python2-devel-2.2.1-1
python2-2.2.1-1
python2-tkinter-2.2.1-1

Is there something else I need in addition to these?

nathan

P.S. I searched Google, Google Groups, and the Subversion dev mailing
list, all to no avail.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: hot-backup.py attributeerror: popen3

Posted by "Edward S. Marshall" <es...@logic.net>.
On Fri, 2002-05-03 at 18:24, Nathan Fiedler wrote:
> What are the requirements for getting the tools/backup/hot-backup.py
> script to work? When I run it, I get this error.

Change the first line of the script from:

	#!/usr/bin/env python

to:

	#!/usr/bin/env python2

That ought to do the trick.

-- 
Edward S. Marshall <es...@logic.net>                http://esm.logic.net/
-----------------------------------------------------------------------
[              Felix qui potuit rerum cognoscere causas.              ]

Re: hot-backup.py attributeerror: popen3

Posted by Tim Moloney <mo...@mrsl.com>.
Nathan Fiedler wrote:
> What are the requirements for getting the tools/backup/hot-backup.py
> script to work? When I run it, I get this error.
> 
> Beginning hot backup of '/usr/local/svn/repos'.
> Traceback (innermost last):
>   File "/etc/cron.daily/hot-backup.py", line 54, in ?
>     infile, outfile, errfile = os.popen3(svnadmin + " youngest " +
> repo_dir)
> AttributeError: popen3
> 
> [...]

Let me preface this by saying that I'm a Python newbie...

I managed to get hot-backup.py to work by doing either of the following.

- execute is via
   bash> python2 ./hot-backup.py'

- change the first line of hot-backup.py to read
   #!/usr/bin/env python2

Since you have python2 installed, either of these should work for you.

-- 
Tim Moloney
ManTech Real-time Systems Laboratory
2015 Cattlemen Road                             \     /
Sarasota, FL  34232                     .________\(O)/________.
(941) 377-6775 x208                        '  '  O(.)O  '  '


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org