Skip to content

'tqdm' object has no attribute 'pos' #323

@jimanvlad

Description

@jimanvlad

Hi,

I sometimes get this error, with no clear explanation. I wrapped my iterator with tqdm and every now and then, after a few iterations, it comes up with this AttributeError: 'tqdm' object has no attribute 'pos'

Redacted trace below. Any ideas?

\\<inbox>\Inbox\Reports\GFH: 0emails [00:00, ?emails/s]
   File "P:\TS Projects\Python\python3\Lib\threading.py", line 911, in _bootstrap_inner
     self.run()
   File "P:\TS Projects\Python\python3\Lib\threading.py", line 859, in run
     self._target(*self._args, **self._kwargs)
   File "P:\TS Projects\Document Classification\dataExtractor.py", line 111, in startExtractionThread
     extractor.run("emails", inbox, outlook)
   File "P:\TS Projects\Document Classification\dataExtractor.py", line 90, in run
     self.extract_data(mainfolder, restriction, db, collection)
   File "P:\TS Projects\Document Classification\dataExtractor.py", line 79, in extract_data
     walk_folders(folder)
   File "P:\TS Projects\Document Classification\dataExtractor.py", line 78, in walk_folders
     walk_folders(flds)
   File "P:\TS Projects\Document Classification\dataExtractor.py", line 78, in walk_folders
     walk_folders(flds)
   File "P:\TS Projects\Document Classification\dataExtractor.py", line 36, in walk_folders
     for msg in self.iterator:
   File "P:\TS Projects\Python\venv3\lib\site-packages\tqdm-4.10.0-py3.4.egg\tqdm\_tqdm.py", line 883, in __iter__
     self.close()
   File "P:\TS Projects\Python\venv3\lib\site-packages\tqdm-4.10.0-py3.4.egg\tqdm\_tqdm.py", line 984, in close
     self._decr_instances(self)
   File "P:\TS Projects\Python\venv3\lib\site-packages\tqdm-4.10.0-py3.4.egg\tqdm\_tqdm.py", line 398, in _decr_instances
     if inst.pos > instance.pos:
 AttributeError: 'tqdm' object has no attribute 'pos'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions