Python-camelot (Error: GhostscriptNotFound while it is installed)










1















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.










share|improve this question



















  • 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















1















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.










share|improve this question



















  • 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













1












1








1








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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












2 Answers
2






active

oldest

votes


















0














Download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html and add it to the path if required






share|improve this answer






























    0














    Adding both the "bin" and "lib" paths for Ghostscript to the PATH worked for me:



    • C:Program Filesgsgs9.26bin

    • C:Program Filesgsgs9.26lib





    share|improve this answer






















      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
      );



      );













      draft saved

      draft discarded


















      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









      0














      Download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html and add it to the path if required






      share|improve this answer



























        0














        Download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html and add it to the path if required






        share|improve this answer

























          0












          0








          0







          Download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html and add it to the path if required






          share|improve this answer













          Download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html and add it to the path if required







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 6 '18 at 10:42









          SyenixSyenix

          83




          83























              0














              Adding both the "bin" and "lib" paths for Ghostscript to the PATH worked for me:



              • C:Program Filesgsgs9.26bin

              • C:Program Filesgsgs9.26lib





              share|improve this answer



























                0














                Adding both the "bin" and "lib" paths for Ghostscript to the PATH worked for me:



                • C:Program Filesgsgs9.26bin

                • C:Program Filesgsgs9.26lib





                share|improve this answer

























                  0












                  0








                  0







                  Adding both the "bin" and "lib" paths for Ghostscript to the PATH worked for me:



                  • C:Program Filesgsgs9.26bin

                  • C:Program Filesgsgs9.26lib





                  share|improve this answer













                  Adding both the "bin" and "lib" paths for Ghostscript to the PATH worked for me:



                  • C:Program Filesgsgs9.26bin

                  • C:Program Filesgsgs9.26lib






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 28 '18 at 22:32









                  chermansonchermanson

                  365




                  365



























                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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 to read a connectionString WITH PROVIDER in .NET Core?

                      In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

                      Museum of Modern and Contemporary Art of Trento and Rovereto