You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Andy Levy <an...@magus.co.uk> on 2008/02/04 15:45:57 UTC

hot-backup.py error question

I'm a bit of a newbie on subversion.
 
Trying to run hot-backup but getting an error message:
 
hot-backup.py --archive=gz /sub /subbackup

Traceback (most recent call last):
  File "hot-backup.py", line 68, in ?
    opts, args = getopt.gnu_getopt(sys.argv[1:], "h?", ["archive-type=",
"help"])
AttributeError: 'module' object has no attribute 'gnu_getopt'
 
Running python2.2.3
 
Have I missed something?
 
Thx Andy

Re: hot-backup.py error question

Posted by jeremy hinds <je...@gmail.com>.
On Feb 4, 2008 8:45 AM, Andy Levy <an...@magus.co.uk> wrote:
>
>
> I'm a bit of a newbie on subversion.
>
> Trying to run hot-backup but getting an error message:
>
> hot-backup.py --archive=gz /sub /subbackup
>
> Traceback (most recent call last):
>   File "hot-backup.py", line 68, in ?
>     opts, args = getopt.gnu_getopt(sys.argv[1:], "h?", ["archive-type=",
> "help"])
> AttributeError: 'module' object has no attribute 'gnu_getopt'
>
> Running python2.2.3
>
> Have I missed something?
>
> Thx Andy

http://www.python.org/doc/current/lib/module-getopt.html says
gnu_getopt is new in version 2.3, so an upgrade of your python install
should do the trick.

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

Re: hot-backup.py error question

Posted by Rush Manbert <ru...@manbert.com>.
Andy Levy wrote:
> I'm a bit of a newbie on subversion.
>  
> Trying to run hot-backup but getting an error message:
>  
> hot-backup.py --archive=gz /sub /subbackup
> 
> Traceback (most recent call last):
>   File "hot-backup.py", line 68, in ?
>     opts, args = getopt.gnu_getopt(sys.argv[1:], "h?", ["archive-type=",
> "help"])
> AttributeError: 'module' object has no attribute 'gnu_getopt'
>  
> Running python2.2.3
>  
> Have I missed something?
>  
> Thx Andy
> 

hot_backup.py needs a newer version of Python, because in 2.2.x the 
getopt module didn't have a method called gnu_getopt.

You should probably get Python 2.5.

- Rush

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