Open mottosso opened 5 years ago
Just found out that it seems to be threading related ?
Setting environment variable ALLZPARK_NOTHREADING=1
and launching Allzpark, you will get
TypeError: _on_success() takes 0 positional arguments but 1 was given
And solving it by changing this line https://github.com/mottosso/allzpark/blob/2eacba8a35280b82114d8bcb199c702c6778fcc9/allzpark/control.py#L616 into
def _on_success(result):
Then launch Allzpark again, the warning was gone.
It's likely related to threading yeah, but we need threading I think. The positional argument I think is a difference between Qt 4 and Qt 5. Might be able to solve it (for both) with result=None
.
After #110, that warning is gone, since the command-completion widget is not being used anymore. Not a fix, just leaving a note.
This is our lovely command-completion for profiles at work.
https://github.com/mottosso/allzpark/blob/02fe77dd0f135e1f39a1c238143a2b62dfe1f0ec/allzpark/dock.py#L1154
Uncommenting this line resolves the issue, but I cannot for the life of me figure out why? :( Only affects PySide2 and PyQt5.