Hi Giuseppe,
When I try to run
proc:system("/usr/local/bin/tesseract") I get the error [proc:code0001]
On my system, I get the (expected) error…
[proc:error] Cannot run program "/usr/local/bin/tesseract":
CreateProcess error=2, Das System kann die angegebene Datei nicht finden
…so we may need to find out what code 1 means in your case. Could you
run the query with debugging enabled and pass us on the stack trace?
And your error code indicates that you are using an older version of
BaseX. Does it work with a more recent version? If not, what do you
get?
Best,
Christian
Similarly:
proc:system("tesseract") returns [proc:error] Cannot run program "tesseract": error=2, No such file or directory
Similarly:
proc:system("tesseract", (), map {"dir" : "/usr/local/bin/"}) returns [proc:error] Cannot run program "tesseract" (in directory "/usr/local/bin"): error=2, No such file or directory
The command "tesseract" works at the command line. I suspect there may be a problem with permissions: is there a way to overcome this error? Thanks.
Best,
Giuseppe