keras-contrib icon indicating copy to clipboard operation
keras-contrib copied to clipboard

Can't load pickle file (Keras Model) after deployment on the azure server

Open HGamalElDin opened this issue 4 years ago • 0 comments

Describe the bug I wanted to make the keras model pickable, so i used the solution from this issue: #34697 (comment)

it solved my problem perfectly in the local environment, but when I build the project from the docker container on Azure Server and while loading the pickle file it gives,

Can't get attribute 'unpack' on <module 'main' from '/opt/python/3.7.9/bin/gunicorn'>

it's like the gunicorn web server can't interpret or see the "unpack" function, I don't know exactly what's going on in the gunicorn server, any help please!

Environment:

  • OS: linux - Azure server
  • Python Version 3.7.9
  • Tensorflow Version: 2.4
  • Keras Version: 2.3.4

HGamalElDin avatar Jan 25 '21 19:01 HGamalElDin