hoffstadt / DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://dearpygui.readthedocs.io/en/latest/
MIT License
12.88k stars 671 forks source link

DearPyGUI callback raises number arguments error when app is compiled with Nuitka #1867

Open bandit-masked opened 2 years ago

bandit-masked commented 2 years ago

Placeholder bug report to make sure that https://github.com/Nuitka/Nuitka/issues/1534 is included in the DPG issue list.

There is a separate DPG branche related to this issue. https://github.com/hoffstadt/DearPyGui/tree/nutika_fix

keck-in-space commented 1 year ago

I believe this should be reopened since the fix was reverted.

hugle commented 1 year ago

Same question, why is this fix being reverted? The same function callback parameter appeared in the Nuitka build again.

Originally posted by @Mstpyt in https://github.com/Nuitka/Nuitka/issues/1534#issuecomment-1354679940

hugle commented 1 year ago

The temp solution is mentioned in the discord channel by @Mstpyt

"Nuitka has still a open dpg issue. If you have classes you need to have lambda callbacks otherwise it will fail after the compilation. Other than that, great compiller!"

Discord link

kayhayen commented 1 year ago

Is there anything I can help you with? This is a incompatiblity on the C side, and I understand the fix may have had to be reverted, I can have a look, I did similar fixes for PyQt5 once although incomplete, and relatively complete for PySide6. It usually means to go through official attributes rather than say PyFunction_GET_SELF and the like. The original link 404s, so where are we at here?

kayhayen commented 1 year ago

Is this anything I can help with, I understand a fix has been reverted. Maybe I can check it out, I ought to know how good it can be and maybe help improve it.

Slluxx commented 4 months ago

Just came across this, its still an issue.