You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run "xfuse run my-config.toml --save-path my-run" in cmd, everything is fine.
When I run this python file in debug mode,and my args is "run myconfig.toml --save-path my-run"
import re
import sys
from xfuse.__main__ import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cli())
I got this error
Traceback (most recent call last):
File "D:\xfuse\xfuse\__main__.py", line 585, in run
_run(
File "D:\xfuse\xfuse\run.py", line 149, in run
with Session(
File "D:\xfuse\xfuse\session\session.py", line 45, in __enter__
_apply_session(get_session())
File "D:\xfuse\xfuse\session\session.py", line 85, in _apply_session
setter(getattr(session, name, default))
File "D:\xfuse\xfuse\session\items\genes.py", line 10, in _set_genes
dataloader.reset_workers()
AttributeError: 'DataLoader' object has no attribute 'reset_workers'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\xfuse\xfuse\__main__.py", line 585, in run
_run(
File "D:\xfuse\xfuse\session\session.py", line 64, in __exit__
assert self == _SESSION_STACK.pop()
AssertionError
I want to read the code in debug mode, how to solve this problem?
The text was updated successfully, but these errors were encountered:
Thank you for this report! Can you tell me which IDE this is? It's very difficult to tell what could be going wrong. As a guess, maybe the debug mode failed to resolve a naming conflict, causing a mixup of classes. If that is the case, you can maybe try renaming the DataLoader class in xfuse/data/utility/misc.py to something else. This is very much a shot in the dark, though, and probably won't help. Let us know if you figure anything out.
I run "xfuse run my-config.toml --save-path my-run" in cmd, everything is fine.
When I run this python file in debug mode,and my args is "run myconfig.toml --save-path my-run"
I got this error
I want to read the code in debug mode, how to solve this problem?
The text was updated successfully, but these errors were encountered: