Python - 'No suitable library found for ods' Pyinstaller
I wrote a script that opens and fetches values from .ods
file and creates a new sheet and writes values using pyexcel
and pyexcel_ods3
. After converting into an executable I get this error No suitable library found for ods
.
Code :
sheet = pyexcel.get_sheet(file_name="sample.ods")
pyexcel - 0.4.2
pyexcel-io - 0.3.1
pyexcel-ods3 - 0.3.0
PyInstaller - 3.2.1
PS : I tried hidden imports and hook. I did some work and think its due to __import__
in manager.py
ofpyexcel_io
.
python-3.x pyinstaller pyexcel
add a comment |
I wrote a script that opens and fetches values from .ods
file and creates a new sheet and writes values using pyexcel
and pyexcel_ods3
. After converting into an executable I get this error No suitable library found for ods
.
Code :
sheet = pyexcel.get_sheet(file_name="sample.ods")
pyexcel - 0.4.2
pyexcel-io - 0.3.1
pyexcel-ods3 - 0.3.0
PyInstaller - 3.2.1
PS : I tried hidden imports and hook. I did some work and think its due to __import__
in manager.py
ofpyexcel_io
.
python-3.x pyinstaller pyexcel
We have no idea what you wrote.
– Mad Physicist
Jan 26 '17 at 15:05
Sorry. This is my first time asking a question. My script works when running it as a script but after converting it to an executable causes error as 'No suitable library found for ods' .
– Guhan
Jan 26 '17 at 15:21
Trim down to a minimal example that exhibits the same behavior. Probably just an import and a printout of the package version will suffice. Then post it here (in your question, not in the comments).
– Mad Physicist
Jan 26 '17 at 15:23
Have you tried adding bothpyexcel
andpyexcel_ods3
tohidden_imports
?
– taleinat
Jan 26 '17 at 20:18
add a comment |
I wrote a script that opens and fetches values from .ods
file and creates a new sheet and writes values using pyexcel
and pyexcel_ods3
. After converting into an executable I get this error No suitable library found for ods
.
Code :
sheet = pyexcel.get_sheet(file_name="sample.ods")
pyexcel - 0.4.2
pyexcel-io - 0.3.1
pyexcel-ods3 - 0.3.0
PyInstaller - 3.2.1
PS : I tried hidden imports and hook. I did some work and think its due to __import__
in manager.py
ofpyexcel_io
.
python-3.x pyinstaller pyexcel
I wrote a script that opens and fetches values from .ods
file and creates a new sheet and writes values using pyexcel
and pyexcel_ods3
. After converting into an executable I get this error No suitable library found for ods
.
Code :
sheet = pyexcel.get_sheet(file_name="sample.ods")
pyexcel - 0.4.2
pyexcel-io - 0.3.1
pyexcel-ods3 - 0.3.0
PyInstaller - 3.2.1
PS : I tried hidden imports and hook. I did some work and think its due to __import__
in manager.py
ofpyexcel_io
.
python-3.x pyinstaller pyexcel
python-3.x pyinstaller pyexcel
edited Jan 26 '17 at 17:25
Guhan
asked Jan 26 '17 at 14:12
GuhanGuhan
112
112
We have no idea what you wrote.
– Mad Physicist
Jan 26 '17 at 15:05
Sorry. This is my first time asking a question. My script works when running it as a script but after converting it to an executable causes error as 'No suitable library found for ods' .
– Guhan
Jan 26 '17 at 15:21
Trim down to a minimal example that exhibits the same behavior. Probably just an import and a printout of the package version will suffice. Then post it here (in your question, not in the comments).
– Mad Physicist
Jan 26 '17 at 15:23
Have you tried adding bothpyexcel
andpyexcel_ods3
tohidden_imports
?
– taleinat
Jan 26 '17 at 20:18
add a comment |
We have no idea what you wrote.
– Mad Physicist
Jan 26 '17 at 15:05
Sorry. This is my first time asking a question. My script works when running it as a script but after converting it to an executable causes error as 'No suitable library found for ods' .
– Guhan
Jan 26 '17 at 15:21
Trim down to a minimal example that exhibits the same behavior. Probably just an import and a printout of the package version will suffice. Then post it here (in your question, not in the comments).
– Mad Physicist
Jan 26 '17 at 15:23
Have you tried adding bothpyexcel
andpyexcel_ods3
tohidden_imports
?
– taleinat
Jan 26 '17 at 20:18
We have no idea what you wrote.
– Mad Physicist
Jan 26 '17 at 15:05
We have no idea what you wrote.
– Mad Physicist
Jan 26 '17 at 15:05
Sorry. This is my first time asking a question. My script works when running it as a script but after converting it to an executable causes error as 'No suitable library found for ods' .
– Guhan
Jan 26 '17 at 15:21
Sorry. This is my first time asking a question. My script works when running it as a script but after converting it to an executable causes error as 'No suitable library found for ods' .
– Guhan
Jan 26 '17 at 15:21
Trim down to a minimal example that exhibits the same behavior. Probably just an import and a printout of the package version will suffice. Then post it here (in your question, not in the comments).
– Mad Physicist
Jan 26 '17 at 15:23
Trim down to a minimal example that exhibits the same behavior. Probably just an import and a printout of the package version will suffice. Then post it here (in your question, not in the comments).
– Mad Physicist
Jan 26 '17 at 15:23
Have you tried adding both
pyexcel
and pyexcel_ods3
to hidden_imports
?– taleinat
Jan 26 '17 at 20:18
Have you tried adding both
pyexcel
and pyexcel_ods3
to hidden_imports
?– taleinat
Jan 26 '17 at 20:18
add a comment |
2 Answers
2
active
oldest
votes
Are you sure that the problem is not with using pyexcel to read the .ods file? Try using pyexcel_ods3 for fetching data from the .ods file:
sheet = pyexcel_ods3.read_data("sample.ods")
Once your script works with pyexcel_ods3, please refer to http://io.pyexcel.org/en/latest/pyinstaller.html for addition of hidden-imports.
I recently had similar issues but then I fixed my code and got a working .exe in this way.
add a comment |
You probably need to tell PyInstaller to include the pyexcel_ods3
library by adding it to the hidden_imports
command-line parameter.
Another method to achieve the same goal is to explicitly import pyexcel_ods3
in one of your app's code files. This will cause PyInstaller to recognize the library as a dependency.
I tried it but still its not working.
– Guhan
Jan 27 '17 at 6:30
Please reference stackoverflow.com/questions/42983559/…. And what's missing is:--hidden_imports pyexcel_ods3.ods
. See the note here: pyexcel-io.readthedocs.io/en/latest/…
– chfw
Apr 3 '17 at 9:46
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%2f41875399%2fpython-no-suitable-library-found-for-ods-pyinstaller%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Are you sure that the problem is not with using pyexcel to read the .ods file? Try using pyexcel_ods3 for fetching data from the .ods file:
sheet = pyexcel_ods3.read_data("sample.ods")
Once your script works with pyexcel_ods3, please refer to http://io.pyexcel.org/en/latest/pyinstaller.html for addition of hidden-imports.
I recently had similar issues but then I fixed my code and got a working .exe in this way.
add a comment |
Are you sure that the problem is not with using pyexcel to read the .ods file? Try using pyexcel_ods3 for fetching data from the .ods file:
sheet = pyexcel_ods3.read_data("sample.ods")
Once your script works with pyexcel_ods3, please refer to http://io.pyexcel.org/en/latest/pyinstaller.html for addition of hidden-imports.
I recently had similar issues but then I fixed my code and got a working .exe in this way.
add a comment |
Are you sure that the problem is not with using pyexcel to read the .ods file? Try using pyexcel_ods3 for fetching data from the .ods file:
sheet = pyexcel_ods3.read_data("sample.ods")
Once your script works with pyexcel_ods3, please refer to http://io.pyexcel.org/en/latest/pyinstaller.html for addition of hidden-imports.
I recently had similar issues but then I fixed my code and got a working .exe in this way.
Are you sure that the problem is not with using pyexcel to read the .ods file? Try using pyexcel_ods3 for fetching data from the .ods file:
sheet = pyexcel_ods3.read_data("sample.ods")
Once your script works with pyexcel_ods3, please refer to http://io.pyexcel.org/en/latest/pyinstaller.html for addition of hidden-imports.
I recently had similar issues but then I fixed my code and got a working .exe in this way.
edited Nov 21 '18 at 7:30
answered Nov 20 '18 at 14:02
SarunasSarunas
113
113
add a comment |
add a comment |
You probably need to tell PyInstaller to include the pyexcel_ods3
library by adding it to the hidden_imports
command-line parameter.
Another method to achieve the same goal is to explicitly import pyexcel_ods3
in one of your app's code files. This will cause PyInstaller to recognize the library as a dependency.
I tried it but still its not working.
– Guhan
Jan 27 '17 at 6:30
Please reference stackoverflow.com/questions/42983559/…. And what's missing is:--hidden_imports pyexcel_ods3.ods
. See the note here: pyexcel-io.readthedocs.io/en/latest/…
– chfw
Apr 3 '17 at 9:46
add a comment |
You probably need to tell PyInstaller to include the pyexcel_ods3
library by adding it to the hidden_imports
command-line parameter.
Another method to achieve the same goal is to explicitly import pyexcel_ods3
in one of your app's code files. This will cause PyInstaller to recognize the library as a dependency.
I tried it but still its not working.
– Guhan
Jan 27 '17 at 6:30
Please reference stackoverflow.com/questions/42983559/…. And what's missing is:--hidden_imports pyexcel_ods3.ods
. See the note here: pyexcel-io.readthedocs.io/en/latest/…
– chfw
Apr 3 '17 at 9:46
add a comment |
You probably need to tell PyInstaller to include the pyexcel_ods3
library by adding it to the hidden_imports
command-line parameter.
Another method to achieve the same goal is to explicitly import pyexcel_ods3
in one of your app's code files. This will cause PyInstaller to recognize the library as a dependency.
You probably need to tell PyInstaller to include the pyexcel_ods3
library by adding it to the hidden_imports
command-line parameter.
Another method to achieve the same goal is to explicitly import pyexcel_ods3
in one of your app's code files. This will cause PyInstaller to recognize the library as a dependency.
answered Jan 26 '17 at 20:26
taleinattaleinat
6,4142335
6,4142335
I tried it but still its not working.
– Guhan
Jan 27 '17 at 6:30
Please reference stackoverflow.com/questions/42983559/…. And what's missing is:--hidden_imports pyexcel_ods3.ods
. See the note here: pyexcel-io.readthedocs.io/en/latest/…
– chfw
Apr 3 '17 at 9:46
add a comment |
I tried it but still its not working.
– Guhan
Jan 27 '17 at 6:30
Please reference stackoverflow.com/questions/42983559/…. And what's missing is:--hidden_imports pyexcel_ods3.ods
. See the note here: pyexcel-io.readthedocs.io/en/latest/…
– chfw
Apr 3 '17 at 9:46
I tried it but still its not working.
– Guhan
Jan 27 '17 at 6:30
I tried it but still its not working.
– Guhan
Jan 27 '17 at 6:30
Please reference stackoverflow.com/questions/42983559/…. And what's missing is:
--hidden_imports pyexcel_ods3.ods
. See the note here: pyexcel-io.readthedocs.io/en/latest/…– chfw
Apr 3 '17 at 9:46
Please reference stackoverflow.com/questions/42983559/…. And what's missing is:
--hidden_imports pyexcel_ods3.ods
. See the note here: pyexcel-io.readthedocs.io/en/latest/…– chfw
Apr 3 '17 at 9:46
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.
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%2f41875399%2fpython-no-suitable-library-found-for-ods-pyinstaller%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
We have no idea what you wrote.
– Mad Physicist
Jan 26 '17 at 15:05
Sorry. This is my first time asking a question. My script works when running it as a script but after converting it to an executable causes error as 'No suitable library found for ods' .
– Guhan
Jan 26 '17 at 15:21
Trim down to a minimal example that exhibits the same behavior. Probably just an import and a printout of the package version will suffice. Then post it here (in your question, not in the comments).
– Mad Physicist
Jan 26 '17 at 15:23
Have you tried adding both
pyexcel
andpyexcel_ods3
tohidden_imports
?– taleinat
Jan 26 '17 at 20:18