kermitt2 / grobid_client_python

Python client for GROBID Web services
Apache License 2.0
275 stars 74 forks source link

grobid-0.7.1/grobid-home/pdfalto/mac-64/pdfalto_server": error=13, Permission denied #52

Closed ST-1997 closed 1 year ago

ST-1997 commented 1 year ago

I have a problem when I execute "grobid_client --input /Users/suntong/Desktop/document2slides-main/doc2ppt1/sciduet-build/data/papers --output /Users/suntong/Desktop/document2slides-main/doc2ppt1/sciduet-build/teidir --teiCoordinates processFulltextDocument "

The log is like this: ERROR [2022-09-29 01:43:24,800] org.grobid.core.process.ProcessPdfToXml: IOException while launching the command [/Users/suntong/grobid-0.7.1/grobid-home/pdfalto/mac-64/pdfalto_server, -fullFontName, -noLineNumbers, -noImage, -annotation, -filesLimit, 2000, /Users/suntong/grobid-0.7.1/grobid-home/tmp/origin1003917583986763344.pdf, /Users/suntong/grobid-0.7.1/grobid-home/tmp/DM4MkKZjSD.lxml] : Cannot run program "/Users/suntong/grobid-0.7.1/grobid-home/pdfalto/mac-64/pdfalto_server": error=13, Permission denied ERROR [2022-09-29 01:43:24,801] org.grobid.service.process.GrobidRestProcessFiles: An unexpected exception occurs. ! org.grobid.core.exceptions.GrobidException: [BAD_INPUT_DATA] An error occurred while converting pdf /Users/suntong/grobid-0.7.1/grobid-home/tmp/origin1003917583986763344.pdf

Could you help me? Thank you.

lfoppiano commented 1 year ago

This seems to be an issue with your grobid installation. As you can see the error says:

 Cannot run program "/Users/suntong/grobid-0.7.1/grobid-home/pdfalto/mac-64/pdfalto_server": error=13, Permission denied

Could you try to run

> cd /Users/suntong/grobid-0.7.1/grobid-home/pdfalto/mac-64/
> ./pdfalto_server
> ls -lh 

And get back the results here?

BTW this issue is not related with the grobid python client.

ST-1997 commented 1 year ago

Thank you for your reply! And I have figured this issue earlier. It looks like that my java version is higher than 12. And then I authorized these files with "chmod 777 filename". Then it works. Thank you very much for your reply.