[KLUG Members] Python script dies at xmlrpclib.Server

Adam Tauno Williams adam at morrison-ind.com
Mon Oct 18 14:02:26 EDT 2004


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


More information about the Members mailing list