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: 'TracebackException' object has no attribute 'exc_traceback' #84

Open
liuliAI opened this issue May 10, 2023 · 1 comment

Comments

@liuliAI
Copy link

liuliAI commented May 10, 2023

WARNING - root - Changed type of config entry "max_steps" from int to NoneType
WARNING - ViLT - No observers have been added to this run
INFO - ViLT - Running command 'main'
INFO - ViLT - Started
Global seed set to 0
INFO - lightning - Global seed set to 0
ERROR - ViLT - Failed after 0:00:03!
Traceback (most recent call last):
File "D:\Anaconda3\lib\site-packages\sacred\experiment.py", line 312, in run_commandline
return self.run(
File "D:\Anaconda3\lib\site-packages\sacred\experiment.py", line 276, in run
run()
File "D:\Anaconda3\lib\site-packages\sacred\run.py", line 238, in call
self.result = self.main_function(*args)
File "D:\Anaconda3\lib\site-packages\sacred\config\captured_function.py", line 42, in captured_function
result = wrapped(*args, **kwargs)
File "run.py", line 42, in main
grad_steps = _config["batch_size"] // (
ZeroDivisionError: integer division or modulo by zero

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "run.py", line 11, in
def main(_config):
File "D:\Anaconda3\lib\site-packages\sacred\experiment.py", line 190, in automain
self.run_commandline()
print_filtered_stacktrace()
File "D:\Anaconda3\lib\site-packages\sacred\utils.py", line 493, in print_filtered_stacktrace
print(format_filtered_stacktrace(filter_traceback), file=sys.stderr)
File "D:\Anaconda3\lib\site-packages\sacred\utils.py", line 528, in format_filtered_stacktrace
return "".join(filtered_traceback_format(tb_exception))
File "D:\Anaconda3\lib\site-packages\sacred\utils.py", line 568, in filtered_traceback_format
current_tb = tb_exception.exc_traceback
AttributeError: 'TracebackException' object has no attribute 'exc_traceback'

@highwang
Copy link

highwang commented Jul 3, 2023

did you solve this question??? please help!!!

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

2 participants