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

non-default argument 'models_cache' follows default argument #6

Open
smith-co opened this issue Apr 4, 2024 · 2 comments
Open

non-default argument 'models_cache' follows default argument #6

smith-co opened this issue Apr 4, 2024 · 2 comments

Comments

@smith-co
Copy link

smith-co commented Apr 4, 2024

The uploaded code for SCHA.py gives error:

SCHAPreprocessResult(PreprocessResult[MethodKey, AlmostKey, MyMethodDictValue]):

lib/python3.10/dataclasses.py", line 544, in _init_fn
    raise TypeError(f'non-default argument {f.name!r} '
TypeError: non-default argument 'models_cache' follows default argument

@BlastWind will you please help?

@code2graph
Copy link

@BlastWind I am also having this issue.

@BlastWind
Copy link
Collaborator

Hey folks, first of all, sorry for the late reply. Finished my thesis, so I can now address any concerns anytime.

I am unable to reproduce such an error. This error should only occur, as stated in the error, if I put fields with default values after the non-default models_cache field, which is not the case in the implementation.

But you seem to be using python 3.10 as well, so it's probably not a version mismatch. How are you calling the examples? I am doing a python -m examples.Java.JavaSCHA.SCHA your_java_repo/ -o output/ (from the root folder).

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

3 participants