Comments (6)
Are you able to provide a minimal example of the two forms, one working or not, as sources files in a zip file? I am a bit confused what is supposed to not work and what is.
from nuitka.
Are you able to provide a minimal example of the two forms, one working or not, as sources files in a zip file? I am a bit confused what is supposed to not work and what is.
i should invite you to my private repo, you can check where the bug on file main_proxy_manager.py
from nuitka.
Are you able to provide a minimal example of the two forms, one working or not, as sources files in a zip file? I am a bit confused what is supposed to not work and what is.
acc, then you can check the codes to fixing nuitka
from nuitka.
I don't execute other people's code for security reasons, at least not for free. I really need a small reproducer. From what you are saying, that should be easy to create for you, and hard for me.
from nuitka.
I don't execute other people's code for security reasons, at least not for free. I really need a small reproducer. From what you are saying, that should be easy to create for you, and hard for me.
whole codes already included on this post. I was tried create sample codes like this
import sys
from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton, QVBoxLayout, QWidget, QTextEdit
from PySide6.QtCore import Slot
from src.pyside.Worker import WorkerThread
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.init_ui()
def init_ui(self):
self.setWindowTitle('PySide6 Background Task Example')
self.setGeometry(100, 100, 400, 300)
# Main layout
layout = QVBoxLayout()
# Text area to display results
self.text_area = QTextEdit()
self.text_area.setReadOnly(True)
layout.addWidget(self.text_area)
# Button to start the background task
self.start_button = QPushButton('Start Task')
self.start_button.clicked.connect(self.start_task)
layout.addWidget(self.start_button)
# Set the central widget
central_widget = QWidget()
central_widget.setLayout(layout)
self.setCentralWidget(central_widget)
def start_task(self):
# Disable the button to prevent multiple clicks
self.start_button.setEnabled(False)
self.text_area.append("Task started...")
# Create and start the worker thread with a custom function and arguments
self.worker_thread = WorkerThread(self.long_running_task, 5)
self.worker_thread.result_signal.connect(self.task_finished)
self.worker_thread.start()
@Slot(str)
def task_finished(self, result):
# Enable the button again and display the result
self.start_button.setEnabled(True)
self.text_area.append(result)
def long_running_task(self, seconds):
import time
time.sleep(seconds) # Simulate a long-running task
return f"Task completed after {seconds} seconds!"
if __name__ == '__main__':
app = QApplication(sys.argv)
main_window = MainWindow()
main_window.show()
sys.exit(app.exec())
Then I built with Nuitka, no problem occurred. I'm also confused >.<
from nuitka.
It's not strictly my task to resolve your confusion. If you have something that is reproducible, I will gladly look at it, but for now I do not believe that the issue exists. I can be proven wrong and I invite you, and I definitely think there might be issues behind it, but I think you need to consider this page: https://nuitka.net/user-documentation/common-issue-solutions.html
from nuitka.
Related Issues (20)
- How to customize the cached directory HOT 1
- Python 3.12 test failures due to assertions HOT 5
- Failure to delete onefile build folders on Windows HOT 6
- Typo in Warning Message HOT 8
- opcua generated sources is too large for C compilers HOT 5
- Consider using "default" entry points HOT 2
- Packaging Error with PyOpenGL in Editable Mode HOT 4
- Generate compile_commands.json (Bump scons version to 4.x) HOT 9
- Can I include LGPL code in Nuitka, e.g. PySide6? HOT 4
- Pyqt5 issue: FATAL: pyqt5: Plugin issue while working on 'Plugin initialization failed' HOT 3
- Nuitka might generate unsafe code HOT 20
- Performance question on nuitka code HOT 1
- Suggestion: macOS bundle compliance HOT 4
- Issues with compiling tsai HOT 1
- ModuleNotFoundError: No module named 'imp' in python 3.12 HOT 1
- Creating an exe that uses Flet with a custom icon only changes the binary icon, not the app itself HOT 33
- Nuitka doesn't catch illegal characters in dest paths of data files HOT 2
- Ubuntu 24.04 Python needs to be supported (was Building xonsh shell with python 3.12: scons backend failure) HOT 17
- PySide6: could not load the Qt platform plugin "xcb" in "" even though it was found HOT 17
- Debug compilation fails with `pillow` used by `matplotlib` (`-Werror=unused-but-set-variable`) HOT 4
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.