之前為了滿足Lphoto、小弟自己在Python2.3上面備了一份PyQt, PyKDE, PIL(sane module現在在這裡面)給他(Python2.4那邊白emerge了XDD)、忙得團團轉、到頭來竟然換到一堆疑似source本身就有問題的訊息:
Code: Select all
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/Lphoto/lphoto.py", line 785, in ?
mw = LMainPhoto(app)
File "/usr/lib/python2.3/site-packages/Lphoto/lphoto.py", line 54, in __init__
self.initModePanel(self.mainView)
File "/usr/lib/python2.3/site-packages/Lphoto/lphoto.py", line 368, in initModePanel
self.newAlbumButton = self.createToolBarButton(None, "buttonadd.png", hb, i18n("add a new album"))
File "/usr/lib/python2.3/site-packages/Lphoto/lphoto.py", line 326, in createToolBarButton
b = QPushButton(label, vb)
TypeError: argument 2 of QPushButton() has an invalid type
lphoto: ERROR: Communication problem with lphoto, it probably crashed.
這應該是code本身就有錯吧?我試過把前後項argument(label, vb)對調一下、但是輸出結果是一樣的。
(根據官方文件,QPushButton的狀態是:QPushButton is fully implemented.)
PyQt-3 version 3.17
PyKDE version 3.16.0
不知道有沒有前輩有類似經驗可以幫小弟指點迷津?謝謝
(我有試過之前國外的wiki上有的lphoto ebuild、但是已經太out-of-date了點。)