Posted by Capricorn20 on July 23, 2009 at 10:44am
| Project: | Python Services API |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I have Services 6.x-2.x-dev and I have tried the code from github but when it runs I get an error:
bagside@bagvapp:~/rer$ python drupal_services.py
Traceback (most recent call last):
File "drupal_services.py", line 163, in <module>
drupal = DrupalServices(config)
File "drupal_services.py", line 133, in __init__
config['domain'], config['key'])
File "drupal_services.py", line 76, in __init__
BasicServices.__init__(self, url)
File "drupal_services.py", line 35, in __init__
self.connection = self.system.connect()
File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
return u.close()
File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: '1'>This seems to happen on any code I try with the system.connect() command. Do you have any code that is working with keys that I can try?
Thanks.