Ich versuche mit supervisord
zu interagieren, und ich möchte mit ihm über einen Unix-Socket sprechen (es ist eine Shared-Hosting-Umgebung).Verwenden Sie Python xmlrpclib mit Unix-Domain-Sockets?
Was ich bisher versucht ist:
import xmlrpclib
server = xmlrpclib.ServerProxy('unix:///path/to/supervisor.sock/RPC2')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/xmlrpclib.py", line 1549, in __init__
raise IOError, "unsupported XML-RPC protocol"
IOError: unsupported XML-RPC protocol
/path/to/supervisor.sock
besteht auf jeden Fall. URIs in der Form 'unix: ///path/to/supervisor.sock/RPC2' werden von supervisord
verwendet, wo ich die Idee hatte. Die Dokumente behandeln keine Unix-Sockets: http://docs.python.org/library/xmlrpclib.html.
Ist das möglich? Soll ich eine andere Bibliothek benutzen?