Open Shaggs opened 5 years ago
AttributeError: 'Client' object has no attribute 'autopilot' python when using
from twilio.rest import Client account_sid = 'xxxx' auth_token = 'xxx' client = Client(account_sid, auth_token) assistant = client.autopilot \ .assistants \ .create( friendly_name='Quickstart Assistant', unique_name='quickstart-assistant' ) print(assistant.sid)
output as follows
D:\coding p\autopilot>create_assistant.py Traceback (most recent call last): File "D:\coding p\autopilot\create_assistant.py", line 10, in <module> assistant = client.autopilot \ AttributeError: 'Client' object has no attribute 'autopilot'
Twilio library installed
Requirement already satisfied: twilio in c:\program files\python36\lib\site-packages (6.14.10) Requirement already satisfied: PyJWT>=1.4.2 in c:\program files\python36\lib\site-packages (from twilio) (1.6.4) Requirement already satisfied: six in c:\program files\python36\lib\site-packages (from twilio) (1.11.0) Requirement already satisfied: pysocks; python_version >= "3.0" in c:\program files\python36\lib\site-packages (from twilio) (1.6.8) Requirement already satisfied: requests>=2.0.0; python_version >= "3.0" in c:\program files\python36\lib\site-packages (from twilio) (2.20.1) Requirement already satisfied: pytz in c:\program files\python36\lib\site-packages (from twilio) (2018.5) Requirement already satisfied: urllib3<1.25,>=1.21.1 in c:\program files\python36\lib\site-packages (from requests>=2.0.0; python_version >= "3.0"->twilio) (1.23) Requirement already satisfied: certifi>=2017.4.17 in c:\program files\python36\lib\site-packages (from requests>=2.0.0; python_version >= "3.0"->twilio) (2018.4.16) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\program files\python36\lib\site-packages (from requests>=2.0.0; python_version >= "3.0"->twilio) (3.0.4) Requirement already satisfied: idna<2.8,>=2.5 in c:\program files\python36\lib\site-packages (from requests>=2.0.0; python_version >= "3.0"->twilio) (2.7)
ok so the pip install does not contain the latest autopilot code. works if downloaded from github and installed manually
Pip will have to be updated (i would assist if i knew how)
AttributeError: 'Client' object has no attribute 'autopilot' python when using
output as follows
Twilio library installed