I'm trying to deploy AWS function with Chalice framework which uses tensorflow but it gives me following error 'TypeError: parse() got an unexpected keyword argument 'transport_encoding'
code is very simple:
from chalice import Chalice
import tensorflow as tf
app = Chalice(app_name='demotensor')
@app.route('/')
def index():
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
return {'hello': 'world'}
It works properly on local when I run 'chalice local' command but when I try to deploy 'chalice deploy' then it gives me an error.
requirement.txt includes:
tensorflow==1.3.0
Note: I am using windows and I have installed Anaconda 5.0 with Python 3.6, tensorflow without GPU