Comments (8)
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.
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.
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.
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.
Even old PySide6 had that name, I tried 6.3.2 right now, just to see if they changed it.
from nuitka.
Even PySide2 needs that (for which we have almost the same code in place)
from nuitka.
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.
Part of the 2.0.3 hotfix that I just made.
from nuitka.
Related Issues (20)
- Error after compiling with multiprocessing
- coremltools package gives fatal error on MacOS HOT 3
- SCONS-linker crashes at linking stage with error UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 184714: invalid continuation byte HOT 3
- console pop up when my exe executes another exe (already disabled windows console mode) HOT 1
- nuitka cannot find black.cache when packaging black
- match-case statement causes segfault
- Can not compile the code with paddleOCR HOT 1
- onefile bootstrap binary build failed as it couldn't find C++ compiler HOT 4
- QtSql does not work with Nuitka on macOS HOT 5
- ImportError: cannot import name ChromeService from selenium.webdriver.chrome.service HOT 1
- What exactly is included in the binary file created after Nuitka compilation? HOT 1
- Nuitka ignores implicit dependencies of OpenCV for opencv-based programs. HOT 6
- Error using newest version of KivyMD==2.0.1.dev0 HOT 1
- "Scalability issue" - macOS Catalina 10.15.7 HOT 4
- pip module can't exe after build HOT 2
- Slow executable startup time on MacOS
- Import User-Provided Modules at Runtime
- About LicenseReport Generation HOT 6
- FileNotFoundError: Shared library with base name 'llama' not found
- KivyMD + angle_sdl2 incompatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuitka.