Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django webapplication Failed to load the native TensorFlow runtime. in Heroku

I have try to deploy my AI application in Heroku with Tensorflow. Im getting error like Failed to load the native Tensor Flow runtime.

Error message from heroku while start the server.

thanks in advance.

like image 717
Cadmus Avatar asked Oct 13 '17 12:10

Cadmus


1 Answers

There is ImportError: PyUnicodeUCS4_FromString as per the stack trace.

This happens when you have more than one versions of Python installed, You are probably running the compiled module with a different interpreter than the one you compiled the module with.

Python can be built with an internal Unicode representation of UCS2 or UCS4.

Newly created Python applications on Heroku default uses the Python 3.6.2 runtime.

You can specify an arbitrary version of Python to be used to run your application. read docs python-runtimes heroku devcenter

like image 129
Satendra Avatar answered Nov 20 '22 07:11

Satendra