Failure to install C extension of a third party library at GAE python Flexible Environment
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.
google-app-engine-python
add a comment |
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.
google-app-engine-python
How is that extension normally installed? How did you install it on your local system?
– Dan Cornilescu
Nov 12 at 14:22
C extension is a partial dependency of shap library. I'm getting the same error as you can see in the following link:
– Ashish Balhara
Nov 12 at 15:41
sorry about unfinish comment. C extension is a partial dependency of shap library installation process, I'm getting the same error in google cloud, as it define in the following link: https://github.com/slundberg/shap/issues/96. The difference is in local it has been resolved. I don't even know whether google cloud can adapt third party library which is using C language file as an extension or not.
– Ashish Balhara
Nov 12 at 15:53
add a comment |
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.
google-app-engine-python
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.
google-app-engine-python
google-app-engine-python
asked Nov 12 at 13:29
Ashish Balhara
1
1
How is that extension normally installed? How did you install it on your local system?
– Dan Cornilescu
Nov 12 at 14:22
C extension is a partial dependency of shap library. I'm getting the same error as you can see in the following link:
– Ashish Balhara
Nov 12 at 15:41
sorry about unfinish comment. C extension is a partial dependency of shap library installation process, I'm getting the same error in google cloud, as it define in the following link: https://github.com/slundberg/shap/issues/96. The difference is in local it has been resolved. I don't even know whether google cloud can adapt third party library which is using C language file as an extension or not.
– Ashish Balhara
Nov 12 at 15:53
add a comment |
How is that extension normally installed? How did you install it on your local system?
– Dan Cornilescu
Nov 12 at 14:22
C extension is a partial dependency of shap library. I'm getting the same error as you can see in the following link:
– Ashish Balhara
Nov 12 at 15:41
sorry about unfinish comment. C extension is a partial dependency of shap library installation process, I'm getting the same error in google cloud, as it define in the following link: https://github.com/slundberg/shap/issues/96. The difference is in local it has been resolved. I don't even know whether google cloud can adapt third party library which is using C language file as an extension or not.
– Ashish Balhara
Nov 12 at 15:53
How is that extension normally installed? How did you install it on your local system?
– Dan Cornilescu
Nov 12 at 14:22
How is that extension normally installed? How did you install it on your local system?
– Dan Cornilescu
Nov 12 at 14:22
C extension is a partial dependency of shap library. I'm getting the same error as you can see in the following link:
– Ashish Balhara
Nov 12 at 15:41
C extension is a partial dependency of shap library. I'm getting the same error as you can see in the following link:
– Ashish Balhara
Nov 12 at 15:41
sorry about unfinish comment. C extension is a partial dependency of shap library installation process, I'm getting the same error in google cloud, as it define in the following link: https://github.com/slundberg/shap/issues/96. The difference is in local it has been resolved. I don't even know whether google cloud can adapt third party library which is using C language file as an extension or not.
– Ashish Balhara
Nov 12 at 15:53
sorry about unfinish comment. C extension is a partial dependency of shap library installation process, I'm getting the same error in google cloud, as it define in the following link: https://github.com/slundberg/shap/issues/96. The difference is in local it has been resolved. I don't even know whether google cloud can adapt third party library which is using C language file as an extension or not.
– Ashish Balhara
Nov 12 at 15:53
add a comment |
1 Answer
1
active
oldest
votes
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?
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53263236%2ffailure-to-install-c-extension-of-a-third-party-library-at-gae-python-flexible-e%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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?
add a comment |
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?
add a comment |
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?
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?
answered Nov 12 at 18:27
Dan Cornilescu
27.5k113161
27.5k113161
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53263236%2ffailure-to-install-c-extension-of-a-third-party-library-at-gae-python-flexible-e%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
How is that extension normally installed? How did you install it on your local system?
– Dan Cornilescu
Nov 12 at 14:22
C extension is a partial dependency of shap library. I'm getting the same error as you can see in the following link:
– Ashish Balhara
Nov 12 at 15:41
sorry about unfinish comment. C extension is a partial dependency of shap library installation process, I'm getting the same error in google cloud, as it define in the following link: https://github.com/slundberg/shap/issues/96. The difference is in local it has been resolved. I don't even know whether google cloud can adapt third party library which is using C language file as an extension or not.
– Ashish Balhara
Nov 12 at 15:53