kermitt2 / grobid_client_python

Python client for GROBID Web services
Apache License 2.0
275 stars 74 forks source link

No module named 'grobid_client.grobid_client' #68

Closed smalvar closed 5 months ago

smalvar commented 8 months ago

When running grobid_client --input ..., I got:

File "/home/saramalvar/anaconda3-copy/envs/nougat/bin/grobid_client", line 33, in <module>
    sys.exit(load_entry_point('grobid-client-python==0.0.7', 'console_scripts', 'grobid_client')())
  File "/home/saramalvar/anaconda3-copy/envs/nougat/bin/grobid_client", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/home/saramalvar/anaconda3-copy/envs/nougat/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/home/saramalvar/anaconda3-copy/envs/nougat/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'grobid_client.grobid_client'
lfoppiano commented 7 months ago

Dear @smalvar, could you please provide some more information on the environment? How did you install grobid_client? Which libraries are you using? etc...

Regards Luca

PiotrowskiD commented 6 months ago

Hi, I have the same issue - I'm using python 3.11.7, installed grobid client via pip with pip install grobid-client (version 0.8.5)

PiotrowskiD commented 6 months ago

I've also tried a clean conda env with python 3.9 and got the same effect

lfoppiano commented 6 months ago

I think that you should install it as pip install grobid-client-python, instead. There is another package called grobid-client which has perhaps diverged somehow.

PiotrowskiD commented 6 months ago

That worked, thanks! :D