Re: RST Users?
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Mmm... I have a few guesses: 1. You have "rst" in your load_plugins list, but the "rst.py" file is not in any of your plugin_dirs. 2. The stacktrace below mentions pystaticfile. I'm not entirely sure why since pystaticfile never uses rst. But maybe one of your static pages imports it and uses it? 3. Is it possible that you need to go through and update your plugins? The architecture changed a lot between 0.8 and 0.9 for plugins, so most plugins that worked with 0.8 probably won't work with 0.9 (with some exceptions [sorry bout that--it's the last big architecture change we intend to make prior to 1.0]). Just as a point of reference, I dusted off the cobwebs of my rst knowledge, installed python docutils package, copied the rst.py file from contrib/entryparsers into my plugins directory, added it to my load_plugins list, and wrote a .rst entry and it worked fine for me. Hope that helps--poke me if it doesn't. :) /will On Tue, 30 Mar 2004, Doug Ransom wrote: > > Are there any RST users or pyblosxom out there? Since I upgraded, it > ceased working. I never had much luck with it anyway (I could not > figure out hyperlinks) and am tempted to go to a moinmoin parser. > > D > > > problem occurred in a Python script. Here is the sequence of function > calls leading up to the error, in the order they occurred. > > /home/doug/wwwroot/doug/cgi-bin/pyblosxom.cgi > <cid:part1.09070902.08020804-cmaem7PIVQRoiclzN/[email protected]> > 47 p = PyBlosxom(req) > 48 p.startup() > 49 p.run() > 50 > 51 # vim: shiftwidth=4 tabstop=4 expandtab > *p* = <Pyblosxom.pyblosxom.PyBlosxom instance>, p.*run* = <bound method > PyBlosxom.run of <Pyblosxom.pyblosxom.PyBlosxom instance>> > > /usr/lib/python2.2/site-packages/Pyblosxom/pyblosxom.py > <cid:part2.01030106.00070501-cmaem7PIVQRoiclzN/[email protected]> in > *run*(self=<Pyblosxom.pyblosxom.PyBlosxom instance>) > 266 # import and initialize plugins > 267 import plugin_utils > 268 plugin_utils.initialize_plugins(config) > 269 > 270 # inject our own startup into the callback thing > *plugin_utils* = <module 'Pyblosxom.plugin_utils' from > '/usr/lib/python2.2/site-packages/Pyblosxom/plugin_utils.pyc'>, > plugin_utils.*initialize_plugins* = <function initialize_plugins>, > *config* = {'archive_template': '<li><a > href="%(base_url)s/%(Y)s/%(b)s">%(m)s/%(y)s</a></li>', 'base_url': > 'http://ransom.dyndns.ws/doug', 'blog_author': 'doug ransom [email protected]', > 'blog_description': "Doug Ransom's weblog", 'blog_encoding': 'UTF-8', > 'blog_language': 'en', 'blog_title': "Doug Ransom's web log", 'datadir': > '/home/doug/wwwroot/doug/blosxom', 'depth': 0, 'num_entries': 40, ...} > > /usr/lib/python2.2/site-packages/Pyblosxom/plugin_utils.py > <cid:part3.00000000.00050501-cmaem7PIVQRoiclzN/[email protected]> in > *initialize_plugins*(configdict={'archive_template': '<li><a > href="%(base_url)s/%(Y)s/%(b)s">%(m)s/%(y)s</a></li>', 'base_url': > 'http://ransom.dyndns.ws/doug', 'blog_author': 'doug ransom [email protected]', > 'blog_description': "Doug Ransom's weblog", 'blog_encoding': 'UTF-8', > 'blog_language': 'en', 'blog_title': "Doug Ransom's web log", 'datadir': > '/home/doug/wwwroot/doug/blosxom', 'depth': 0, 'num_entries': 40, ...}) > 72 > 73 for mem in plugin_list: > 74 _module = __import__(mem) > 75 for comp in mem.split(".")[1:]: > 76 _module = getattr(_module, comp) > *_module* = <module 'pystaticfile' from > '/home/doug/wwwroot/doug/pyblosxom-plugins/pystaticfile.py'>, __import__ > /undefined/, *mem* = 'rst' > > *ImportError*: No module named rst > __doc__ = "Import can't find module, or can't find name in module." > __getitem__ = <bound method ImportError.__getitem__ of > <exceptions.ImportError instance>> > __init__ = <bound method ImportError.__init__ of > <exceptions.ImportError instance>> > __module__ = 'exceptions' > __str__ = <bound method ImportError.__str__ of > <exceptions.ImportError instance>> > args = ('No module named rst',) ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click