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

ImportError: cannot import name 'ParserError' from 'pandas.errors' #119

Open
0nliner opened this issue Jul 26, 2021 · 0 comments
Open

ImportError: cannot import name 'ParserError' from 'pandas.errors' #119

0nliner opened this issue Jul 26, 2021 · 0 comments

Comments

@0nliner
Copy link

0nliner commented Jul 26, 2021

I tried to run demo from library documentation (https://pypi.org/project/pdftotree/)

import pdftotree
import pathlib

pdf_file = pathlib.Path.cwd() / "test.pdf"
pdftotree.parse(pdf_file, html_path=None, model_type=None, model_path=None, favor_figures=True, visualize=False)

Here is bug i got:

Traceback (most recent call last):
File "/home/wizard/PycharmProjects/pdfToHTMLConverter/main.py", line 1, in
import pdftotree
File "/home/wizard/PycharmProjects/pdfToHTMLConverter/venv/lib/python3.8/site-packages/pdftotree/init.py", line 6, in
from pdftotree.core import parse
File "/home/wizard/PycharmProjects/pdfToHTMLConverter/venv/lib/python3.8/site-packages/pdftotree/core.py", line 24, in
from pdftotree.TreeExtract import TreeExtractor
File "/home/wizard/PycharmProjects/pdfToHTMLConverter/venv/lib/python3.8/site-packages/pdftotree/TreeExtract.py", line 9, in
import tabula
File "/home/wizard/PycharmProjects/pdfToHTMLConverter/venv/lib/python3.8/site-packages/tabula/init.py", line 3, in
from .io import convert_into, convert_into_by_batch, read_pdf, read_pdf_with_template
File "/home/wizard/PycharmProjects/pdfToHTMLConverter/venv/lib/python3.8/site-packages/tabula/io.py", line 33, in
from .errors import CSVParseError, JavaNotFoundError
File "/home/wizard/PycharmProjects/pdfToHTMLConverter/venv/lib/python3.8/site-packages/tabula/errors/init.py", line 1, in
from pandas.errors import ParserError
ImportError: cannot import name 'ParserError' from 'pandas.errors' (/home/wizard/PycharmProjects/pdfToHTMLConverter/venv/lib/python3.8/site-packages/pandas/errors/init.py)

Process finished with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant