Reputation: 63
I've deployed my application on the Google App Engine python flexible runtime environment.
I thought to use a library (named as shap) which used to retrieve feature importance from the Random Forest model. I've mentioned its name in the requirement.txt while deploying to app engine.
I also noticed that the installation of c extension(dependency of shap library) has mentioned in the setup file of shap library.
Google Cloud App Engine (Flexible) is supposed to install this library with all dependencies including c extension, but when I run my application on the app engine, it starts getting following error:
name '_cext' is not defined.
here _cext is a c extension. This library is working fine locally. It seems it has a problem with the app engine flexible environment. Any help will be appreciated.
Upvotes: 0
Views: 129
Reputation: 39824
If the solution used locally relies exclusively on pip
commands you may be able to use requirements.txt
file options, see Requirements File Format.
But if you need something else besides executing pip
operations then you probably have to build a custom runtime, see Up-to-date pip with AppEngine Python flex env?
Upvotes: 1