On Sun, Jun 10, 2012 at 3:12 AM, Yann Leboulanger <aste...@lagaule.org> wrote:
> On 06/09/2012 11:07 PM, Zhihao Yuan wrote:
>>
>> When RST is activated, and you type a message
>>
>>   File "/usr/local/share/gajim/src/common/demandimport.py", line 58, in
>> _load
>>     mod = _origimport(head, globals, locals)
>>
>> in /usr/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py
>>
>> try:
>>     import roman            #<--- fail
>> except ImportError:
>>     import docutils.utils.roman as roman
>
>
> I don't have any problem with RST. Could you be more precise?
>
> Which Gajim version? You seem to be under linux, python2.7?

gajim hg latest, FreeBSD, python27, docutils 0.9.

>
> could you give the full traceback?
>
> Maybe you miss python-roman package on which python-docutils depends?

No.
import roman            #<--- fail

****
This is under a try: block, so it should not fail. But demandimport
cause it to fail.
****

03:55:05 (E) gajim.c.ged Error while running an even handler: <bound
method Connection._nec_message_outgoing of
<common.connection.Connection object at 0x810b3ccd0>>
Traceback (most recent call last):
  File "/usr/local/share/gajim/src/common/ged.py", line 93, in raise_event
    if handler(*args, **kwargs):
  File "/usr/local/share/gajim/src/common/connection.py", line 1858,
in _nec_message_outgoing
    delayed=obj.delayed, attention=obj.attention, callback=cb)
  File "/usr/local/share/gajim/src/common/connection.py", line 270, in
_prepare_message
    from common.rst_xhtml_generator import create_xhtml
  File "/usr/local/share/gajim/src/common/demandimport.py", line 95,
in _demandimport
    return _import(name, globals, locals, fromlist, level)
  File "/usr/local/share/gajim/src/common/rst_xhtml_generator.py",
line 143, in <module>
    Generator = HTMLGenerator()
  File "/usr/local/share/gajim/src/common/rst_xhtml_generator.py",
line 114, in __init__
    writer_name='html')
  File "/usr/local/lib/python2.7/site-packages/docutils/core.py", line
93, in set_components
    self.set_reader(reader_name, self.parser, parser_name)
  File "/usr/local/lib/python2.7/site-packages/docutils/core.py", line
83, in set_reader
    self.reader = reader_class(parser, parser_name)
  File "/usr/local/lib/python2.7/site-packages/docutils/readers/__init__.py",
line 49, in __init__
    self.set_parser(parser_name)
  File "/usr/local/lib/python2.7/site-packages/docutils/readers/__init__.py",
line 61, in set_parser
    self.parser = parser_class()
  File 
"/usr/local/lib/python2.7/site-packages/docutils/parsers/rst/__init__.py",
line 149, in __init__
    self.state_classes = states.state_classes
  File "/usr/local/share/gajim/src/common/demandimport.py", line 86,
in __getattribute__
    self._load()
  File "/usr/local/share/gajim/src/common/demandimport.py", line 58, in _load
    mod = _origimport(head, globals, locals)
  File "/usr/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py",
line 1019, in <module>
    class Body(RSTState):
  File "/usr/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py",
line 1047, in Body
    'upperroman': roman.fromRoman}
  File "/usr/local/share/gajim/src/common/demandimport.py", line 86,
in __getattribute__
    self._load()
  File "/usr/local/share/gajim/src/common/demandimport.py", line 58, in _load
    mod = _origimport(head, globals, locals)
ImportError: No module named roman


>
> --
> Yann
> _______________________________________________
> Gajim-devel mailing list
> Gajim-devel@gajim.org
> http://lists.gajim.org/cgi-bin/listinfo/gajim-devel



-- 
Zhihao Yuan, nickname lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/
_______________________________________________
Gajim-devel mailing list
Gajim-devel@gajim.org
http://lists.gajim.org/cgi-bin/listinfo/gajim-devel

Reply via email to