vaex
vaex copied to clipboard
[BUG-REPORT] AttributeError: 'ProgressBar' object has no attribute 'stime0'
Thank you for reaching out and helping us improve Vaex!
Before you submit a new Issue, please read through the documentation. Also, make sure you search through the Open and Closed Issues - your problem may already be discussed or addressed.
Description
Uninitialized class variable stime0
in class ProgressBarBase
https://github.com/vaexio/vaex/blob/master/packages/vaex-core/vaex/misc/progressbar.py
Software information
-
bazel 5.4.0
https://bazel.build/install/os-x#install-with-installer-mac-os-x -
vaex-core==4.16.0
vaex-hdf5==0.12.3
- Vaex was installed via:
load("@rules_python//python:pip.bzl", "pip_parse")
- OS: macOS
13.2.1 (22D68)
Additional information
Error is occurring on line 49 https://github.com/vaexio/vaex/blob/15245cf4332d4423ac58bd737aee27d911a1b252/packages/vaex-core/vaex/misc/progressbar.py#L49C39-L49C39
When value != 0
(line 40), self.stime0
is never initialized
Relevant Stacktrace
df.export(file_path)
File "/app/core/ml_training/pip_deps_vaex_core/site-packages/vaex/progress.py", line 75, in __exit__
self.exit()
File "/app/core/ml_training/pip_deps_vaex_core/site-packages/vaex/progress.py", line 81, in exit
self(1)
File "/app/core/ml_training/pip_deps_vaex_core/site-packages/vaex/progress.py", line 161, in __call__
self.bar.finish()
File "/app/core/ml_training/pip_deps_vaex_core/site-packages/vaex/misc/progressbar.py", line 116, in finish
print(repr(self), file=self.output, end=' ')
File "/app/core/ml_training/pip_deps_vaex_core/site-packages/vaex/misc/progressbar.py", line 128, in __repr__
output = "\r" + bar + super(ProgressBar, self).__repr__()
File "/app/core/ml_training/pip_deps_vaex_core/site-packages/vaex/misc/progressbar.py", line 78, in __repr__
return self.format % self.info()
File "/app/core/ml_training/pip_deps_vaex_core/site-packages/vaex/misc/progressbar.py", line 49, in info
cpu_time_delta = self.stime - self.stime0 + self.utime - self.utime0
AttributeError: 'ProgressBar' object has no attribute 'stime0'