Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'tqdm' object has no attribute 'last_print_t' on Python 3.12 #1537

Open
5 of 6 tasks
mweinelt opened this issue Dec 13, 2023 · 0 comments
Open
5 of 6 tasks

Comments

@mweinelt
Copy link

mweinelt commented Dec 13, 2023

  • I have marked all applicable categories:
    • exception-raising bug
    • visual output bug
  • 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)

Environment

x86_64-linux
Python 3.12.1
pytest 7.4.3
pytest-asyncio 0.23.2
pluggy 1.3.0
tqdm 4.66.1

Description

I'm aware Python 3.12 is not supported according to the trove classifiers, but I hope it will be soon. We're seeing the following exception many times during testing on Python 3.12.1, the tests run fine on 3.11.7.

Exception ignored in: <function tqdm.__del__ at 0x7ffff64a2c00>
Traceback (most recent call last):
  File "/build/tqdm-4.66.1/tqdm/std.py", line 1149, in __del__
    self.close()
  File "/build/tqdm-4.66.1/tqdm/std.py", line 1278, in close
    if self.last_print_t < self.start_t + self.delay:
       ^^^^^^^^^^^^^^^^^
AttributeError: 'tqdm' object has no attribute 'last_print_t'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant