Git Product home page Git Product logo

Comments (8)

KRRT7 avatar KRRT7 commented on September 26, 2024

Hi @kayhayen , i asked the user over at PyDis to open an issue, when i try to reproduce it myself using factory
nuitka --remove-output --standalone --run --enable-plugin=pyside6 ddmi.py

Traceback (most recent call last):
  File "C:\Users\Divine\Desktop\PyDis\DDMI~1.DIS\ddmi.py", line 389, in <module>
  File "C:\Users\Divine\Desktop\PyDis\DDMI~1.DIS\ddmi.py", line 42, in __init__
  File "C:\Users\Divine\Desktop\PyDis\DDMI~1.DIS\ddmi.py", line 151, in init_ui
TypeError: patched_connect() got an unexpected keyword argument 'slot'

we get this, i think i remember reading that it had been fixed previously, regression maybe?

from nuitka.

KRRT7 avatar KRRT7 commented on September 26, 2024

this might've been an premature issue, when i checked what .connect() takes
i see this

(method) def connect(
    slot: object,
    type: ConnectionType = ...
) -> Connection

so i assumed it was right, and well, i think it should be?
however, once we change the code to

    self.zip_browse_button.clicked.connect(lambda: self.browse_path(self.zip_entry, False))

    self.game_path_browse_button.clicked.connect(lambda: self.browse_path(self.game_path_entry, True))

    self.auto_button.clicked.connect(lambda: self.auto_toggle())

    self.newdir_checkbox.stateChanged.connect(lambda state: utils.check_changed(state, self))

    self.mod_path_browse_button.clicked.connect(lambda: self.browse_path(self.mod_path_entry, True))

    self.process_button.clicked.connect(lambda: self.on_button_click())

    self.delete_button.clicked.connect(lambda: utils.delete_ddlc(self.game_path_entry.text(), self))

without the explicit slot= argument, it compiles fine.

from nuitka.

kayhayen avatar kayhayen commented on September 26, 2024

The signature of that C backed functions is hard to get by, I went with receiver for the argument name. But the evidence there seems to suggest that is indeed to be named slot which would make sense. I will try my test cases with explicit keyword arguments and uncompiled, to see if there is version differences, PySide2/PySide6 and within PySide6 itself.

from nuitka.

kayhayen avatar kayhayen commented on September 26, 2024

I was getting this, when I tried it on Windows with 6.6.1 and 6.6.0 uncompiled now:

TypeError: disconnect() takes no keyword arguments

But I think it takes a receiver argument. A recent fix was that it's optional, meaning to disconnect all receivers.

For connect, I am getting this:

TypeError: SignalInstance() missing required argument 'slot' (pos 1)

So, the name receiver is wrong I guess, not sure where I have it from now.

from nuitka.

kayhayen avatar kayhayen commented on September 26, 2024

Even old PySide6 had that name, I tried 6.3.2 right now, just to see if they changed it.

from nuitka.

kayhayen avatar kayhayen commented on September 26, 2024

Even PySide2 needs that (for which we have almost the same code in place)

from nuitka.

kayhayen avatar kayhayen commented on September 26, 2024

Thanks for your report, this is fixed on the factory branch, which is a development version under rapid development. You can try it out by going here: https://nuitka.net/doc/factory.html

Feedback if this is working is very welcome, just please do not share plans of doing it, but rather confirmations or denials of it working.

from nuitka.

kayhayen avatar kayhayen commented on September 26, 2024

Part of the 2.0.3 hotfix that I just made.

from nuitka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.