Skip to content

RuntimeError: cannot join current thread #613

@david30907d

Description

@david30907d
  • 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, where applicable:
    import tqdm, sys
    print(tqdm.__version__, sys.version, sys.platform)
  1. version info:

    4.25.0 3.5.2 (default, Nov 23 2017, 16:37:01)
    [GCC 5.4.0 20160609] linux
    
  2. My code:

    for index, file_path in enumerate(tqdm.tqdm(Path(dirpath).iterdir())):
        do something
    
  3. Error messages:

    Exception ignored in: <bound method tqdm.__del__ of 50it [00:31,  1.56it/s]>
    Traceback (most recent call last):
      File "/usr/local/lib/python3.5/dist-packages/tqdm/_tqdm.py", line 885, in __del__
        self.close()
      File "/usr/local/lib/python3.5/dist-packages/tqdm/_tqdm.py", line 1090, in close
        self._decr_instances(self)
      File "/usr/local/lib/python3.5/dist-packages/tqdm/_tqdm.py", line 454, in _decr_instances
        cls.monitor.exit()
      File "/usr/local/lib/python3.5/dist-packages/tqdm/_monitor.py", line 52, in exit
        self.join()
      File "/usr/lib/python3.5/threading.py", line 1051, in join
        raise RuntimeError("cannot join current thread")
    RuntimeError: cannot join current thread
    

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions