getomni-ai / zerox

PDF to Markdown with vision models
https://getomni.ai/ocr-demo
MIT License
6.74k stars 367 forks source link

Unable to copy files #5

Closed edishu closed 2 months ago

edishu commented 4 months ago

When trying this I get the error operation not permitted

[Error: EPERM: operation not permitted, copyfile '/home/uber.pdf' -> 'tmp/your-app-temp/uber.pdf'] {
  errno: -1,
  code: 'EPERM',
  syscall: 'copyfile',
  path: '/home/uber.pdf',
  dest: 'tmp/your-app-temp/uber.pdf'
}
tylermaran commented 4 months ago

hey @edishu, can you share the code snippit you're using to call zerox? I'd like to see if I can replicate.

We run an ensureDir check on the temp folder the app uses, but there might be some permission errors.