Errores #120

Error sending MESSAGE in voip2day branch

Added by Iñaki Baz Castillo over 2 years ago. Updated over 2 years ago.

Status:Cerrada Start:08/31/2009
Priority:Normal Due date:
Assigned to:Saúl Ibarra Corretgé % Done:

0%

Category:YASS - core
Target version:0.5.3

Description

When pressing "Instant Message" over a buddy or menu "message" button an error occurs:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/yass/gui/main_c.py", line 169, in _popup_im
    self.window.show_imdlg(buddy.uri)
  File "/usr/lib/python2.5/site-packages/yass/gui/main_w.py", line 113, in show_imdlg
    imdlg = imDlgWindow(self, uri)
  File "/usr/lib/python2.5/site-packages/yass/gui/imdlg_w.py", line 33, in __init__
    self.ui.setupUi(self)
  File "/usr/lib/python2.5/site-packages/yass/gui/ui/ui_imdlg.py", line 33, in setupUi
    self.msgText = QtGui.QPlainTextEdit(self.gridLayoutWidget)
AttributeError: 'module' object has no attribute 'QPlainTextEdit'

History

Updated by Iñaki Baz Castillo over 2 years ago

  • Target version set to voip2day

Updated by Saúl Ibarra Corretgé over 2 years ago

It's not ready to be tested yet!

Updated by Iñaki Baz Castillo over 2 years ago

  • Target version changed from voip2day to 0.5.3

Some occurs in trunk version! (so version changed to 0.5.3).
But it works at home with Qt4 (it fails when I use Qt3). Perhaps there is some change in the API and the IM feature is yass valid for Qt4? :(

Updated by Saúl Ibarra Corretgé over 2 years ago

YASS needs Qt4 libraries, as it was built only to work with Qt4... do you have all dependencies installed? Look at the debian/control file to check the package names.

Updated by Iñaki Baz Castillo over 2 years ago

You are fully right, my fault.
The fact is that I cannot install the deb package since my Kubuntu version has python-qt4 4.3 while YASS requires python-qt4 4.4 so I install with "make install".

Could it be the reason?

Updated by Iñaki Baz Castillo over 2 years ago

I've downdraded to rev 209 (when MESSAGE was implemented) and IM doesn't work (same error). Im sure this works at home so it must be a bug related to python-qt4 version, could it be?

Updated by Saúl Ibarra Corretgé over 2 years ago

Yes, I'm sure there is something wrong with qt4.3, that's why we put qt 4.4 as a dependency :)

Updated by Iñaki Baz Castillo over 2 years ago

So it doesn't work with Ubuntu Hardy (the last TLS version) :(

Updated by Iñaki Baz Castillo over 2 years ago

Opsss :(

http://www.mail-archive.com/qgis-user%40lists.osgeo.org/msg02932.html

QPlainTextEdit class has been added in Qt4.4 I think, so it probably
fails because you have older Qt or PyQt. So either you can upgrade
your installation or metaedit developers can use QTextEdit instead
which is present also in older versions.

Updated by Iñaki Baz Castillo over 2 years ago

Could be possible to use QTextEdit instead of QPlainTextEdit?

Differences to QTextEdit

QPlainTextEdit is a thin class, implemented by using most of the technology that is 
behind QTextEdit and QTextDocument. Its performance benefits over QTextEdit stem 
mostly from using a different and simplified text layout called 
QPlainTextDocumentLayout on the text document (see 
QTextDocument::setDocumentLayout()). The plain text document layout does not support 
tables nor embedded frames, and replaces a pixel-exact height calculation with a 
line-by-line respectively paragraph-by-paragraph scrolling approach. This makes it 
possible to handle significantly larger documents, and still resize the editor with 
line wrap enabled in real time. It also makes for a fast log viewer (see 
setMaximumBlockCount()).

Updated by Saúl Ibarra Corretgé over 2 years ago

No, bcause QPlainTextEdit supports HTML, so we need to be future-proof :)

BTW, we are using HTML capabilities to show username in blod right now.

Updated by Iñaki Baz Castillo over 2 years ago

  • Status changed from Nueva to Cerrada

Updated by Iñaki Baz Castillo over 2 years ago

Adding the following repository makes YASS working with (K)Ubuntu Hardy:

deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu/ hardy main

It's required to update "python-qt4" and "python-sip4".

Also available in: Atom PDF