Python-camelot (Error: GhostscriptNotFound while it is installed)
I am trying to extract tabular data from pdf using camelot and I am getting the following error.
Code:
tables = camelot.read_pdf(file_name)
Error:
GhostscriptNotFound: Please make sure that Ghostscript is installed and available on the PATH environment variable
I have already installed Ghostscript and I have it available on the PATH environment variable.
Please find below version details:
- Windows-10-10.0.17134-SP0
- Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]
- NumPy 1.14.3
- openCV 3.4.3
- Camelot 0.3.2
Please help resolve this issue.
python python-camelot
add a comment |
I am trying to extract tabular data from pdf using camelot and I am getting the following error.
Code:
tables = camelot.read_pdf(file_name)
Error:
GhostscriptNotFound: Please make sure that Ghostscript is installed and available on the PATH environment variable
I have already installed Ghostscript and I have it available on the PATH environment variable.
Please find below version details:
- Windows-10-10.0.17134-SP0
- Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]
- NumPy 1.14.3
- openCV 3.4.3
- Camelot 0.3.2
Please help resolve this issue.
python python-camelot
2
You can see here how Camelot is trying to find your GhostScript. github.com/socialcopsdev/camelot/blob/… On Windows, it's looking for "gswin32c" or "gswin64c". Can you confirm that you can run "gswin32c" or "gswin64c" on your command line?
– AKX
Nov 15 '18 at 12:09
add a comment |
I am trying to extract tabular data from pdf using camelot and I am getting the following error.
Code:
tables = camelot.read_pdf(file_name)
Error:
GhostscriptNotFound: Please make sure that Ghostscript is installed and available on the PATH environment variable
I have already installed Ghostscript and I have it available on the PATH environment variable.
Please find below version details:
- Windows-10-10.0.17134-SP0
- Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]
- NumPy 1.14.3
- openCV 3.4.3
- Camelot 0.3.2
Please help resolve this issue.
python python-camelot
I am trying to extract tabular data from pdf using camelot and I am getting the following error.
Code:
tables = camelot.read_pdf(file_name)
Error:
GhostscriptNotFound: Please make sure that Ghostscript is installed and available on the PATH environment variable
I have already installed Ghostscript and I have it available on the PATH environment variable.
Please find below version details:
- Windows-10-10.0.17134-SP0
- Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]
- NumPy 1.14.3
- openCV 3.4.3
- Camelot 0.3.2
Please help resolve this issue.
python python-camelot
python python-camelot
edited Nov 15 '18 at 12:07
barbsan
2,48051324
2,48051324
asked Nov 15 '18 at 12:03
Venkatesan RVenkatesan R
62
62
2
You can see here how Camelot is trying to find your GhostScript. github.com/socialcopsdev/camelot/blob/… On Windows, it's looking for "gswin32c" or "gswin64c". Can you confirm that you can run "gswin32c" or "gswin64c" on your command line?
– AKX
Nov 15 '18 at 12:09
add a comment |
2
You can see here how Camelot is trying to find your GhostScript. github.com/socialcopsdev/camelot/blob/… On Windows, it's looking for "gswin32c" or "gswin64c". Can you confirm that you can run "gswin32c" or "gswin64c" on your command line?
– AKX
Nov 15 '18 at 12:09
2
2
You can see here how Camelot is trying to find your GhostScript. github.com/socialcopsdev/camelot/blob/… On Windows, it's looking for "gswin32c" or "gswin64c". Can you confirm that you can run "gswin32c" or "gswin64c" on your command line?
– AKX
Nov 15 '18 at 12:09
You can see here how Camelot is trying to find your GhostScript. github.com/socialcopsdev/camelot/blob/… On Windows, it's looking for "gswin32c" or "gswin64c". Can you confirm that you can run "gswin32c" or "gswin64c" on your command line?
– AKX
Nov 15 '18 at 12:09
add a comment |
2 Answers
2
active
oldest
votes
Download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html and add it to the path if required
add a comment |
Adding both the "bin" and "lib" paths for Ghostscript to the PATH worked for me:
C:Program Filesgsgs9.26bin
C:Program Filesgsgs9.26lib
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%2f53319099%2fpython-camelot-error-ghostscriptnotfound-while-it-is-installed%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
Download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html and add it to the path if required
add a comment |
Download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html and add it to the path if required
add a comment |
Download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html and add it to the path if required
Download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html and add it to the path if required
answered Dec 6 '18 at 10:42
SyenixSyenix
83
83
add a comment |
add a comment |
Adding both the "bin" and "lib" paths for Ghostscript to the PATH worked for me:
C:Program Filesgsgs9.26bin
C:Program Filesgsgs9.26lib
add a comment |
Adding both the "bin" and "lib" paths for Ghostscript to the PATH worked for me:
C:Program Filesgsgs9.26bin
C:Program Filesgsgs9.26lib
add a comment |
Adding both the "bin" and "lib" paths for Ghostscript to the PATH worked for me:
C:Program Filesgsgs9.26bin
C:Program Filesgsgs9.26lib
Adding both the "bin" and "lib" paths for Ghostscript to the PATH worked for me:
C:Program Filesgsgs9.26bin
C:Program Filesgsgs9.26lib
answered Dec 28 '18 at 22:32
chermansonchermanson
365
365
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.
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%2f53319099%2fpython-camelot-error-ghostscriptnotfound-while-it-is-installed%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
2
You can see here how Camelot is trying to find your GhostScript. github.com/socialcopsdev/camelot/blob/… On Windows, it's looking for "gswin32c" or "gswin64c". Can you confirm that you can run "gswin32c" or "gswin64c" on your command line?
– AKX
Nov 15 '18 at 12:09