Skip to content

Error "ImportError: cannot import name 'ApiClient' from 'grobid_client.client'". Not solved by method in issue #80 #86

@dmcalli2

Description

@dmcalli2

When I run

python3 -m grobid_client.grobid_client --input Prtot_000.pdf --output test.json

I get the following error

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/dvdmcllstr/grobid_client_python/grobid_client/grobid_client.py", line 27, in
from .client import ApiClient
ImportError: cannot import name 'ApiClient' from 'grobid_client.client' (/home/dvdmcllstr/.local/share/r-miniconda/lib/python3.12/site-packages/grobid_client/client.py). Did you mean: 'Client'?

I have read issue #80 which has a similar error message and tried

pip install --upgrade --force-reinstall grobid-client

but this hasn't removed the error.
Can anyone advise please.

I am running the grobid servier - http://localhost:8070/api/isalive returns true and I can see an uploaded pdf on the http://localhost:8070/.

I am running ubuntu 22.04.3 LTS inside WSL2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions