JohnCardinal / crunchy

Automatically exported from code.google.com/p/crunchy
0 stars 0 forks source link

Crunchy crashes loading the RST plugin #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have downloaded version 0.9.9 of crunchy and it crashes when I run it.
Traceback here:

[manuel] [~/descargas/firefox/crunchy]$ python crunchy.py
Could not create the user directory.
No configuration file found.
Traceback (most recent call last):
  File "crunchy.py", line 157, in <module>
    run_crunchy(port=_port, url=_url)
  File "crunchy.py", line 47, in run_crunchy
    pluginloader.init_plugin_system(server)
  File "/home/manuel/descargas/firefox/crunchy/src/pluginloader.py", line
68, in init_plugin_system
    mod = __import__ (plugin, globals())
  File "src/plugins/rst.py", line 51, in <module>
    class InterpreterDirective(rst.Directive):
AttributeError: 'module' object has no attribute 'Directive'
[manuel] [~/descargas/firefox/crunchy]$

I have Python 2.5.1 (r251:54863, Oct  5 2007, 13:50:07) in Kubuntu 7.10.

Original issue reported on code.google.com by humi...@gmail.com on 11 Mar 2008 at 2:11

GoogleCodeExporter commented 9 years ago
This is strange, the rst module should have a Directive attribute.

It sounds like you have some other module called rst that is overriding the 
crunchy
rst module - can you tell me what happens whan you import rst from a normal 
python
terminal.

Original comment by johannes...@gmail.com on 17 Mar 2008 at 10:32

GoogleCodeExporter commented 9 years ago
This looks more like a problem with the docutils intallation.  Crunchy uses the
following:
if _docutils_installed:
    provides = set(["/rst"])
    from os import linesep
    from docutils.parsers import rst

I suggest having a look at the docutils version and find out if it is perhaps 
out of
date, or try at the python prompt
from docutils.parsers import rst
dir(rst)

The output should be
['Directive', 'DirectiveError', 'Parser', '__builtins__', '__doc__', 
'__docformat__',
'__file__', '__name__', '__path__', 'convert_directive_function', 'directives',
'docutils', 'frontend', 'languages', 'nodes', 'roles', 'states', 'tableparser']

I'm setting the status of this issue as invalid.

Original comment by andre.ro...@gmail.com on 21 Mar 2008 at 11:30