fix: Remove problematic qRegisterMetaType import that causes deployment failure
- Remove qRegisterMetaType import that is not available in all PyQt5 versions - Remove QTextCursor import and registration that was causing import error - Simplify deployment dialog initialization to avoid PyQt5 compatibility issues - The QTextCursor warning was not critical and the registration was unnecessary This fixes the "cannot import name 'qRegisterMetaType' from 'PyQt5.QtCore'" error that prevented deployment dialog from opening. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
8aafec6bfe
commit
7a71e77aae
@ -32,8 +32,8 @@ from PyQt5.QtWidgets import (
|
||||
QCheckBox, QGroupBox, QScrollArea, QTableWidget, QTableWidgetItem,
|
||||
QHeaderView, QMessageBox, QSplitter, QFrame
|
||||
)
|
||||
from PyQt5.QtCore import Qt, QThread, pyqtSignal, QTimer, qRegisterMetaType
|
||||
from PyQt5.QtGui import QFont, QColor, QPalette, QImage, QPixmap, QTextCursor
|
||||
from PyQt5.QtCore import Qt, QThread, pyqtSignal, QTimer
|
||||
from PyQt5.QtGui import QFont, QColor, QPalette, QImage, QPixmap
|
||||
|
||||
# Import our converter and pipeline system
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'core', 'functions'))
|
||||
@ -317,8 +317,6 @@ class DeploymentDialog(QDialog):
|
||||
|
||||
def __init__(self, pipeline_data: Dict[str, Any], parent=None):
|
||||
super().__init__(parent)
|
||||
# Register QTextCursor for thread-safe signal passing
|
||||
qRegisterMetaType(QTextCursor)
|
||||
|
||||
self.pipeline_data = pipeline_data
|
||||
self.deployment_worker = None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user