Im not sure why this does not work
import xmlrpc.client
url = 'http://localhost:8069'
db = 'odoodb'
username = 'username'
password = '123456'
common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
print(common.version())
# result
File "/home/tony/Documents/odoo17/custom-addons/mbi/api.py", line 13, in
print(common.version())
xmlrpc.client.ProtocolError: /xmlrpc/2/common: 404 NOT FOUND>
I added these parameters to my config but the error is the same. The code works for external servers but not localhost
xmlrpc = True
xmlrpc-port = 8069