[KLUG Members] Re: Python script dies at xmlrpclib.Server
John Holland
john at zoner.org
Mon Dec 6 16:00:56 EST 2004
Did you ever solve this?
It looks like the interface was changed. The valid parameters as of
version 1.0.1 are:
uri, transport=None, encoding=None, verbose=0, allow_none=0
On Mon, Oct 18, 2004 at 02:02:26PM -0400, Adam Tauno Williams wrote:
> I've got a Python script I've used before (on Fedora I think), but now it pukes
> with...
>
> awilliam at estate3:~/tmp/SafetyLoad> ./import_perscomp.py
> Please enter username: adam
> Please enter password for user adam: ********
> Please enter filename: SafetyTraining.csv
> Traceback (most recent call last):
> File "./import_perscomp.py", line 408, in ?
> password = cfg.password)
> TypeError: __init__() got an unexpected keyword argument 'login'
>
> .. perhaps someone with more Python experience can go "Ah Ha!". This script
> dies at xmlrpclib.Server(....). Perhaps this is some kind of version issue?
>
> server = xmlrpclib.Server(cfg.servername,
> login = cfg.username,
> password = cfg.password)
>
> What the script does is bulk import data from a delimited file into
> OpenGroupware, creating enterprise objects, contact objects, and the assignment
> of contacts to entprises.
>
> I'm thinking I should write a book: "Why I've come to hate scripting
> languages."
>
> Adam Tauno Williams
> Network & Systems Administrator
> Morrison Industries
> Grand Rapids, Mi. USA
> _______________________________________________
> Members mailing list
> Members at kalamazoolinux.org
>
>
--
John Holland
john at zoner.org
http://www.zoner.org
More information about the Members
mailing list