Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using camelot in Google Function #509

Open
MikiBersa opened this issue Nov 18, 2024 · 0 comments
Open

Using camelot in Google Function #509

MikiBersa opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MikiBersa
Copy link

Hello, I used camelot in a google function but it gives me this error on Ghostscript:

Traceback (most recent call last):
File "/layers/google.python.runtime/python/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/workspace/tool/thread.py", line 45, in run
tables = camelot.read_pdf(self.path_pdf, pages=str(i + 1), flavor='lattice', backgournd=True, line_scale=40)
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/camelot/io.py", line 113, in read_pdf
tables = p.parse(
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/camelot/handlers.py", line 176, in parse
t = parser.extract_tables(
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/camelot/parsers/lattice.py", line 421, in extract_tables
self.backend.convert(self.filename, self.imagename)
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/camelot/backends/ghostscript_backend.py", line 47, in convert
ghostscript.Ghostscript(*gs_command)
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/ghostscript/init.py", line 76, in init
self._instance = gs.new_instance()
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/ghostscript/_gsprint.py", line 172, in new_instance
raise GhostscriptError(rc)
ghostscript._gsprint.GhostscriptError: Fatal

And:

Traceback (most recent call last):
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/ghostscript/init.py", line 125, in del
self.exit()
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/ghostscript/init.py", line 128, in exit
if self._instance:
AttributeError: 'Ghostscript' object has no attribute '_instance'

@MikiBersa MikiBersa added the bug Something isn't working label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant