Enable plugins?
GaviTSRA opened this issue · 9 comments
I'm getting this error:
Nuitka: Need to use '--enable-plugin=tk-inter' option during compilation for tk-inter to work!
And i understand what it means, but i have no clue on how to do it with this action (if it is possible?).
Is there a way?
I do understand that this is not finished and there are features that nuitka has that this action doesn't provide, i just think that i may be missing something.
lol, I didn't even notice, that the repo is not the Nuitka one, but Nuitka-actions, sorry, this is fresh repo with little things set up so far.
I guess, we should ask Nuitka-actions uses for a link to their config in the issue template.
Ok, let me say this then. Nuitka has plugins, and you normally would have to use --enable-plugin=tk-inter
if you wanted tkinter to work afterwards. Many plugins are automatically on, that one is not. It's a warning, not an error, but it should be taken serious. I assume there is a way to find out, how to enable a Nuitka plugin in the docs of this repo. If not, we need to add it.
One line of action that I see on my side, is that Nuitka provides a way of exposing all its options and have them controlled from the Yaml file (or toml file in case of pyproject, where that is already done). Right now I believe there is code that does this manually and is more a proof of concept with what is considered essential. That may well be incomplete and become outdated easily.
Well I found the plugin-dir option but I'm not sure how to use it
That is not it though, look for --enable-plugin
equivalent. If it's not there, we have to put this one to delayed, until as I say, automatically all options are there. The option you mention is harder to use.
I think one thing that is striking @jimkring is that I feel we cannot really ask people to look at the nuitka --help
output, as that is not even available anywhere. Like I said, we need to generate something there.
@GaviTSRA This is not currently exposed by the Action -- there is not any way to enable the plugins. I'm working on a possible solution...
Ok, thanks
@GaviTSRA Can you pleases try v0.3.2?
It allows to pass a comma separated list of plugins like this:
- uses: Nuitka/Nuitka-Action@v0.3.2
with:
enable-plugins: pyside6, tk-inter
Note that I haven't fully tested everything, so I may have bugs in my powershell/bash scripting. But, I think it should work.