i want to create API's but from where and how i can install xmlrpc in my ubuntu 20.04 and windows 10 machines.
please, please, give the exact download link which should not confuse for which one i have to download and use.
i created below python file test_api.py and executed but it is showing error.
---------------------------------------------
import xmlrpc.client
url = "127.0.0.1:8016"
db = "odoo16db"
username = "admin"
password = "admin"
common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
uid = common.authenticate(db, username, password, {})
if uid:
print('authenticated')
else:
print('cannot authenticate')
----------------------------------------------
run in terminal: python3 test_api.py
the error:
---------
Traceback (most recent call last):
File "text_api.py", line 9, in
common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
File "/usr/lib/python3.8/xmlrpc/client.py", line 1419, in __init__
raise OSError("unsupported XML-RPC protocol")
OSError: unsupported XML-RPC protocol
please help.
regards