2011-12-24 122 views
0

當我用我的UI文件運行Pyuic時,它會給出以下錯誤。Pyqt會話管理錯誤

# pyuic detector.ui Session management error: None of the authentication protocols specified are supported 
# -*- coding: utf-8 -*- 

# Form implementation generated from reading ui file 'detector.ui' 
# 
# Created: Sat Dec 24 07:32:27 2011 
#  by: The PyQt User Interface Compiler (pyuic) 3.18.1 
# 
# WARNING! All changes made in this file will be lost! 


from qt import * 

它作爲root用戶。當我以普通用戶身份運行時它沒有給出第一行:「會話管理錯誤:沒有指定的身份驗證協議被支持」。但它不創建任何文件。

我有Debian的擠壓

+2

這不是'pyqt4'。它是'pyqt3',或多或少都是死的。 – Blender

+0

這個錯誤與pyqt3沒有任何關係(這是[仍然支持](http://www.riverbankcomputing.com/software/pyqt/download3)btw)。 – ekhumoro

+0

顯然它做到了,因爲他不得不刪除舊的pyqt工具,並用pyqt4替換:) – jdi

回答

0

我只是刪除了pyqt-tools包並安裝pyqt4-dev-tools包中的pyuic4。現在一切正常。

謝謝@Blender指點我的解決方案