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

run problom #45

Open
KwongFuk opened this issue Aug 19, 2024 · 1 comment
Open

run problom #45

KwongFuk opened this issue Aug 19, 2024 · 1 comment

Comments

@KwongFuk
Copy link

(malco-py3.11) PS C:\Users\92529\Desktop\Rare\malco> pheval run -i myinputdirectory -r "malcorunner" -o myoutputdirectory -t tests
could not load template
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\92529\AppData\Local\pypoetry\Cache\virtualenvs\malco-DSIf-2zD-py3.11\Scripts\pheval.exe_main
.py", line 7, in
File "C:\Users\92529\AppData\Local\pypoetry\Cache\virtualenvs\malco-DSIf-2zD-py3.11\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\92529\AppData\Local\pypoetry\Cache\virtualenvs\malco-DSIf-2zD-py3.11\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\92529\AppData\Local\pypoetry\Cache\virtualenvs\malco-DSIf-2zD-py3.11\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\92529\AppData\Local\pypoetry\Cache\virtualenvs\malco-DSIf-2zD-py3.11\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\92529\AppData\Local\pypoetry\Cache\virtualenvs\malco-DSIf-2zD-py3.11\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\92529\AppData\Local\pypoetry\Cache\virtualenvs\malco-DSIf-2zD-py3.11\Lib\site-packages\pheval\cli_pheval.py", line 87, in run
runner_class = get_implementation_resolver().lookup(runner)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\92529\AppData\Local\pypoetry\Cache\virtualenvs\malco-DSIf-2zD-py3.11\Lib\site-packages\class_resolver\api.py", line 176, in lookup
return get_cls(
^^^^^^^^
File "C:\Users\92529\AppData\Local\pypoetry\Cache\virtualenvs\malco-DSIf-2zD-py3.11\Lib\site-packages\class_resolver\api.py", line 378, in get_cls
raise KeyError(
KeyError: "Invalid PhEvalRunner name: malcorunner (normalized to: malcorunner). Valid choices are: ['defaultphevalrunner']"
(malco-py3.11) PS C:\Users\92529\Desktop\Rare\malco>

@leokim-l
Copy link
Member

leokim-l commented Sep 9, 2024

Hi @KwongFuk , thanks for pointing this out. The code is very much a work in progress. I have a feeling the error above may be related to poetry and setup, e.g. what happens with a pull, poetry update?

If you are interested further in the code let me know!
Also, be aware of this line of code:

template = "malco.runner:MalcoRunner"

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