kermitt2 / grobid_client_python

Python client for GROBID Web services
Apache License 2.0
279 stars 75 forks source link

ImportError: cannot import name 'ApiClient' from 'grobid_client.client' #80

Open chozillla opened 4 weeks ago

chozillla commented 4 weeks ago

`{ "name": "ImportError", "message": "cannot import name 'ApiClient' from 'grobid_client.client' (c:\Users\cehs\AppData\Local\anaconda3\Lib\site-packages\grobid_client\client.py)", "stack": "--------------------------------------------------------------------------- ImportError Traceback (most recent call last) Cell In[11], line 1 ----> 1 from grobid_client.grobid_client import GrobidClient 3 client = GrobidClient(config_path=\"./config.json\") 4 client.process(\"processFulltextDocument\", \"/Users/chemay/Documents/GitHub/EriksholmPublicationRAG/PublicERHreports\",output=\"./PublicERHReportsGROBID\", n=4)

File c:\Users\cehs\AppData\Local\anaconda3\Lib\site-packages\grobid_client\grobid_client.py:27 24 import requests 25 import pathlib ---> 27 from .client import ApiClient 30 class ServerUnavailableException(Exception): 31 pass

ImportError: cannot import name 'ApiClient' from 'grobid_client.client' (c:\Users\cehs\AppData\Local\anaconda3\Lib\site-packages\grobid_client\client.py)" }` I am running a docker container and I got this error when I ran the client. I know 100% the docker is running, it is running on the local port. The issue seems to be with the client.