TwilioDevEd / video-access-token-server-python

Twilio Video server-side web app in Python
MIT License
21 stars 20 forks source link

ImportError: No module named access_token #14

Open Prendo93 opened 7 years ago

Prendo93 commented 7 years ago

I followed the readme and got an error on startup.

It seems the twilio.jwt no longer has the access_token attribute

(venv) MacBook-Pro:video-quickstart-python user$ python app.py 
Traceback (most recent call last):
  File "app.py", line 4, in <module>
    from twilio.jwt.access_token import AccessToken
ImportError: No module named access_token

(venv) MacBook-Pro:video-quickstart-python user$ python
Python 2.7.13 (default, Dec 17 2016, 23:03:43) 
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import twilio.jwt
>>> dir(twilio.jwt)
['DecodeError', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'b', 'base64', 'base64url_decode', 'base64url_encode', 'binary', 'decode', 'encode', 'hashlib', 'hmac', 'json', 'signing_methods', 'text_type']

I'm using twilio-6.3.dev0.tar.gz according to the pip logs.

Prendo93 commented 7 years ago

Note, changing the requirements.txt line 2 to twilio==6.0.0rc13 and re-running pip install -r requirements.txt makes it work