Re: Re: RST & Pyblosxom
Wari Wahab <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <1075084056.14951.16.camel@minisync> |
A few reasons here:
* Python tries to read the file but can't do so.
* Solution: chmod 644 rst.py
* Python tries to compile the plugin, but cannot do so.
* Soultion: If you have shell access, go to the plugins directory,
run the python interpreter, type 'import rst', ignore
the errors, exit from the python shell, and hopefully,
you'll get rst.pyc file.
* rst module fails when doing:
'from docutils.core import publish_string'
* Symptom: The error you get, 'ImportError: No module named rst' is
misleading, but it is the error you are going to get due
to the way the plugin initialization is done, that is,
too much exception handling *sorry*.
* Solution: Install the CVS snapshot version of docutils, not the
release version. Try 'from docutils.core import
publish_string' in the interpreter, see if that works.
If all else fail, mail pyblosxom-users again.
On Sun, 2004-01-25 at 10:11, will guaraldi wrote:
> It depends on what web-server you're using and how it's set up. On my
> server, we have the error log in /var/log/apache/error_log . If I check
> there, it tells me exactly what the errors were.
>
> What you're seeing is that the web-server is probably running as a
> different user and you need to give that user permissions to read the file
> in order for it to run the plugin.
>
> Don't know if that helps or not. Some of the issues involved are a bit
> more complicated and change from server to server.
>
> /will
>
>
> On Sat, 24 Jan 2004, Doug Ransom wrote:
> >
> > I found if I copied a module to the plugins directory but did not chmod it to 755, pyblosxom will know its there, try and run it, and fail.
> >
> > I don't know if there is any way to make this easier to debug? A warning to check permissions?
> >
> > I am new to linux, that contributes to my problems getting stuff working.
> >
> > Doug
> >
> >
> >
> > [email protected] wrote:
> >
> > >hi,
> > >
> > >I cc'ed the pyblosxom-users list in case anybody there can help. It looks
> > >like the python interpreter can't find rst.py. According to
> > >http://cvs.sourceforge.net/viewcvs.py/pyblosxom/pyblosxom/contrib/entryparsers/README?rev=1.3&view=auto,
> > >you have to copy this file into your plugins directory. If that's not the
> > >issue, I'm not sure what the problem is.
> > >
> > >good luck!
> > >Sean
> > >
> > >On Sat, 24 Jan 2004, Doug Ransom wrote:
> > >
> > >
> > >
> > >>Sean,
> > >>
> > >>I have no hope of getting restrutcured text working with pyblosxom and
> > >>rst.py. Would you plese take a quick look at the attached apache log
> > >>file snippet and let me know if anything strikes you as obvious.
> > >>
> > >>Doug
> > >>
> > >>
> > >>
> > >[...]
> > >[Sat Jan 24 08:35:24 2004] [error] [client 64.180.83.196] File
> > >"/usr/local/lib/python2.3/site-packages/Pyblosxom/pyblosxom.py", line 268,
> > >in run
> > >[Sat Jan 24 08:35:24 2004] [error] [client 64.180.83.196]
> > >plugin_utils.initialize_plugins(config)
> > >[Sat Jan 24 08:35:24 2004] [error] [client 64.180.83.196] File
> > >"/usr/local/lib/python2.3/site-packages/Pyblosxom/plugin_utils.py", line
> > >74, in initialize_plugins
> > >[Sat Jan 24 08:35:24 2004] [error] [client 64.180.83.196] _module =
> > >__import__(mem)
> > >[Sat Jan 24 08:35:24 2004] [error] [client 64.180.83.196] ImportError: No
> > >module named rst
> > >
> > >
> > >
> > >
> > >
> >
> >
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn