Opened 8 years ago

Closed 7 years ago

#4439 closed defect (fixed)

LaTeX error

Reported by: m_gol Owned by:
Priority: high Milestone: 0.12
Component: None Version: hg
Severity: major Keywords: latex, tb
Cc: Blocked By:
Blocking: OS: All

Description

Creating LaTeX formula and sending it caused two TB (and, obviously, nothing showed up):

Traceback (most recent call last):
  File "gajim.py", line 445, in _process_events
    return self.process_events(fd, flags)
  File "/home/mgol/gajim/src/common/xmpp/idlequeue.py", line 132, in process_events
    obj.pollin()
  File "/home/mgol/gajim/src/common/xmpp/transports_nb.py", line 350, in pollin
    self._do_receive()
  File "/home/mgol/gajim/src/common/xmpp/transports_nb.py", line 500, in _do_receive
    self.on_receive(received)
  File "/home/mgol/gajim/src/common/xmpp/dispatcher_nb.py", line 355, in dispatch
    handler['func'](session,stanza)
  File "/home/mgol/gajim/src/common/connection_handlers.py", line 1821, in _messageCB
    session.received(frm, msgtxt, tim, encrypted, msg)
  File "/home/mgol/gajim/src/session.py", line 231, in received
    xhtml=xhtml, form_node=form_node)
  File "/home/mgol/gajim/src/session.py", line 326, in roster_message
    subject=subject, xhtml=xhtml)
  File "/home/mgol/gajim/src/chat_control.py", line 1880, in print_conversation
    simple=simple, xep0184_id=xep0184_id)
  File "/home/mgol/gajim/src/chat_control.py", line 653, in print_conversation_line
    subject, old_kind, xhtml, simple=simple)
  File "/home/mgol/gajim/src/conversation_textview.py", line 1193, in print_conversation_line
    self.print_real_text(text, text_tags, name, xhtml)
  File "/home/mgol/gajim/src/conversation_textview.py", line 1280, in print_real_text
    index = self.detect_and_print_special_text(text, text_tags)
  File "/home/mgol/gajim/src/conversation_textview.py", line 921, in detect_and_print_special_text
    self.print_special_text(special_text, other_tags)
  File "/home/mgol/gajim/src/conversation_textview.py", line 1079, in print_special_text
    imagepath = self.latex_to_image(special_text)
  File "/home/mgol/gajim/src/conversation_textview.py", line 975, in latex_to_image
    cwd=gettempdir())
  File "/usr/lib/python2.5/subprocess.py", line 594, in __init__
    errread, errwrite)
  File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/home/mgol/gajim/src/chat_control.py", line 554, in _on_message_textview_mykeypress_event
    self.send_message(message) # send the message
  File "/home/mgol/gajim/src/chat_control.py", line 1741, in send_message
    encrypted = encrypted, xep0184_id = xep0184_id)
  File "/home/mgol/gajim/src/chat_control.py", line 1880, in print_conversation
    simple=simple, xep0184_id=xep0184_id)
  File "/home/mgol/gajim/src/chat_control.py", line 653, in print_conversation_line
    subject, old_kind, xhtml, simple=simple)
  File "/home/mgol/gajim/src/conversation_textview.py", line 1193, in print_conversation_line
    self.print_real_text(text, text_tags, name, xhtml)
  File "/home/mgol/gajim/src/conversation_textview.py", line 1280, in print_real_text
    index = self.detect_and_print_special_text(text, text_tags)
  File "/home/mgol/gajim/src/conversation_textview.py", line 921, in detect_and_print_special_text
    self.print_special_text(special_text, other_tags)
  File "/home/mgol/gajim/src/conversation_textview.py", line 1079, in print_special_text
    imagepath = self.latex_to_image(special_text)
  File "/home/mgol/gajim/src/conversation_textview.py", line 975, in latex_to_image
    cwd=gettempdir())
  File "/usr/lib/python2.5/subprocess.py", line 594, in __init__
    errread, errwrite)
  File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Change History (5)

comment:1 Changed 8 years ago by asterix

do you have dvipng?

comment:2 Changed 8 years ago by m_gol

No, but it's not a problem - it's in Ubuntu repo, I can install it via apt if it's needed.

comment:3 Changed 8 years ago by asterix

  • Milestone set to 0.12

indeed it's now required. But Gajim should not allow you to use latex if you miss something.

comment:4 Changed 8 years ago by m_gol

Thank you, now it works. :) I didn't know sth changed about needed programs.

Maybe Gajim allowed me using that because I compiled it when it hasn't been needed yet?

comment:5 Changed 7 years ago by asterix

  • Resolution set to fixed
  • Status changed from new to closed

(In [bca7d99ccd21396c28d6a1a544cd774ee0e042b5]) detect latex conversion error and print them in textview. Fixes #4439

Note: See TracTickets for help on using tickets.