Skip to content

AttributeError: type object 'tqdm' has no attribute 'get_new' #1084

@neomatrix369

Description

@neomatrix369
  • I have marked all applicable categories:
    • exception-raising bug
    • visual output bug
    • documentation request (i.e. "X is missing from the documentation." If instead I want to ask "how to use X?" I understand [StackOverflow#tqdm] is more appropriate)
    • new feature request
  • I have visited the [source website], and in particular read the [known issues]
  • I have searched through the [issue tracker] for duplicates
  • I have mentioned version numbers, operating system and environment

While running this on a Kaggle Kernel I got this error, below are the details of the version of tqdm being used along with the system info.

System + tqdm version info

4.53.0 3.7.6 | packaged by conda-forge | (default, Mar 23 2020, 23:03:20) 
[GCC 7.3.0] Linux

Error message (+call stack)

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<timed exec> in <module>

/kaggle/usr/lib/nlp_profiler_class/nlp_profiler_class.py in apply_text_profiling(self, dataframe, text_column, params)
     94         """
     95 
---> 96         return nlp_profiler.apply_text_profiling(dataframe, text_column, params)

/opt/conda/lib/python3.7/site-packages/nlp_profiler/core.py in apply_text_profiling(dataframe, text_column, params)
     60             actions_mappings.remove(item)
     61 
---> 62     apply_profiling_progress_bar = get_progress_bar(actions_mappings)
     63     for _, (param, action_description, action_function) in \
     64             enumerate(apply_profiling_progress_bar):

/opt/conda/lib/python3.7/site-packages/nlp_profiler/generate_features/parallelisation_methods/__init__.py in get_progress_bar(values)
     18 
     19 def get_progress_bar(values: list) -> tqdm:
---> 20     return tqdm(values, ncols=PROGRESS_BAR_WIDTH)
     21 
     22 

/opt/conda/lib/python3.7/site-packages/tqdm/asyncio.py in __new__(cls, *args, **kwargs)
     64 
     65     def __new__(cls, *args, **kwargs):
---> 66         return cls.get_new(super(tqdm_asyncio, cls), std_tqdm, *args, **kwargs)
     67 
     68 

AttributeError: type object 'tqdm' has no attribute 'get_new'

Here are the source files for NLP Profiler referred above in the call stack:

Any reason this could be happening?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions