-
Notifications
You must be signed in to change notification settings - Fork 141
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
ValueError: mutable default <class 'stopes.core.stopes_module.Requirements'> for field requirements is not allowed: use #8
Comments
Hello
|
The changes proposed by @dtometzki worked for me. However, I'm encountering another issue: Traceback (most recent call last):
File "/home/xqw/miniconda3/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/data/patchranking/large_concept_model/.venv/lib/python3.12/site-packages/tqdm/contrib/logging.py", line 93, in logging_redirect_tqdm
yield
File "/data/patchranking/large_concept_model/.venv/lib/python3.12/site-packages/stopes/core/launcher.py", line 324, in schedule
result = await self._schedule_array(module, value_array)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/patchranking/large_concept_model/.venv/lib/python3.12/site-packages/stopes/core/launcher.py", line 540, in _schedule_array
raise ArrayTaskError(
stopes.core.launcher.ArrayTaskError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/patchranking/large_concept_model/scripts/prepare_wikipedia.py", line 103, in <module>
fire.Fire(run)
File "/data/patchranking/large_concept_model/.venv/lib/python3.12/site-packages/fire/core.py", line 135, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/patchranking/large_concept_model/.venv/lib/python3.12/site-packages/fire/core.py", line 468, in _Fire
component, remaining_args = _CallAndUpdateTrace(
^^^^^^^^^^^^^^^^^^^^
File "/data/patchranking/large_concept_model/.venv/lib/python3.12/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/data/patchranking/large_concept_model/scripts/prepare_wikipedia.py", line 99, in run
asyncio.run(launcher.schedule(stopes_module))
File "/home/xqw/miniconda3/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/home/xqw/miniconda3/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/xqw/miniconda3/lib/python3.12/asyncio/base_events.py", line 685, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/data/patchranking/large_concept_model/.venv/lib/python3.12/site-packages/stopes/core/launcher.py", line 319, in schedule
with logging_redirect_tqdm():
File "/home/xqw/miniconda3/lib/python3.12/contextlib.py", line 191, in __exit__
exc.__traceback__ = traceback
^^^^^^^^^^^^^^^^^
File "<string>", line 4, in __setattr__
dataclasses.FrozenInstanceError: cannot assign to field '__traceback__' I'm not sure if this is related to the changes I just made, or it's just another issue regarding how the developers handle dataclasses. |
Hi, @dtometzki! |
Hi, @Charley-xiao! |
Hi, @elbayadm. Thanks for replying. Yes, I ran |
@Charley-xiao give it a try after pulling the latest changes (to fix the default_factory issue) and running
|
It worked! Thank you so much, @elbayadm. The mix of the environments is indeed the problem. |
Hi, I still have the same error as reported above - this is from a checkout of main including #11 - python 3.12.3 on ubuntu.
|
Hi @StephenJHardy. It seems like you're using two different environments |
Hello @elbayadm the changes are missing in packages stopes. /opt/conda/lib/python3.11/site-packages/stopes/modules/preprocess/line_processor.py. I got the same erroro again
After my changes from above it works:
Should we open a new issue for this ? Because i cant reopen it |
@dtometzki I re-opened this issue. In #11, I only fixed the training errors caused by |
Hello together,
merry christmas. I get the following error when execute: hat is wrong here
what is wrong here ?
Best regards
Damian
The text was updated successfully, but these errors were encountered: