NLP_Toolkit icon indicating copy to clipboard operation
NLP_Toolkit copied to clipboard

Problem in installing the package

Open SivaAndMe opened this issue 5 years ago • 1 comments

I installed nlptoolkit package through pip. But the following line is repeatedly giving me an error.

 from nlptoolkit.utils.config import Config

I tried upgrading pandas, tqdm as these are shown as some possible fixes here. But, I still was not able to resolve the error. Please provide some guidelines to get through this error.**

_ImportError                               Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/tqdm/_tqdm.py in pandas(tclass, *targs, **tkwargs)

ImportError: cannot import name 'DataFrameGroupBy'

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
5 frames
<ipython-input-14-3c9cb5b4622f> in <module>()
      1 # try:
----> 2 from nlptoolkit.utils.config import Config
      3 # except Exception as e:
      4   # print(e)
      5 try:

/usr/local/lib/python3.6/dist-packages/nlptoolkit/__init__.py in <module>()
      1 from . import ASR
----> 2 from . import classification
      3 from . import clustering
      4 from . import generation
      5 from . import ner

/usr/local/lib/python3.6/dist-packages/nlptoolkit/classification/__init__.py in <module>()
----> 1 from . import models

/usr/local/lib/python3.6/dist-packages/nlptoolkit/classification/models/__init__.py in <module>()
      6 from . import XLMRoBERTa
      7 from . import GIN
----> 8 from . import infer

/usr/local/lib/python3.6/dist-packages/nlptoolkit/classification/models/infer.py in <module>()
     12 import logging
     13 
---> 14 tqdm.pandas(desc="prog-bar")
     15 logging.basicConfig(format='%(asctime)s [%(levelname)s]: %(message)s', \
     16                     datefmt='%m/%d/%Y %I:%M:%S %p', level=logging.INFO)

/usr/local/lib/python3.6/dist-packages/tqdm/_tqdm.py in pandas(tclass, *targs, **tkwargs)

ImportError: cannot import name 'PanelGroupBy'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below._



SivaAndMe avatar Sep 03 '20 15:09 SivaAndMe

use a recent tqdm. You probably want tqdm>=4.61.2 at https://github.com/plkmo/NLP_Toolkit/blob/fb8371c8c0d9fc188bebef421e05a8d1b9697105/requirements.txt#L32

casperdcl avatar Jul 13 '21 10:07 casperdcl