Hello i'm trying the External API of Odoo so i'm trying something but i have an error when i try to launch my main.py.
import xmlrpc.client
info = xmlrpc.client.ServerProxy('https://demo.odoo.com/start').start()
url, db, username, password = \
info['host'], info['database'], info['user'], info['password']
common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
common.version()
But when i launch this file i have this output :
python main.py
Traceback (most recent call last):
File "main.py", line 1, in <module>
import xmlrpc.client
ImportError: No module named xmlrpc.client
Can someone help me please ? Thanks by advance !