[Moin-user] 'module' object has no attribute 'expat' when saving from gui editor
David Cramer
dcramer at motive.com
Tue Jan 6 09:40:38 EST 2009
Ok, thanks for the tip. I didn't know that mattered for the GUI editor.
Here's some more information about what I've done and what the symptoms
are:
Immediately after upgrading to 1.8.1, the GUI editor was working for at
least one of the four wikis I have running off this box, but giving that
same "expat" error for another one. I decided to save working on that
for later, assuming it was some misconfiguration in the one wiki.
In the mean time, I wanted to get the "Render as DocBook" thing working.
This is a feature I need and was a big reason for upgrading (it produced
bad DocBook in 1.5.x). "Render as DocBook" complained that it needed
4suite, so I installed 4Suite-1.0b1 and 4Suite-XML-1.0.2, however
"Render as DocBook" still didn't work but it no longer complained about
4suite not being installed. Further investigation revealed that 4Suite
is having problems finding libraries. For example, when I run "4xml
-help", I get "ImportError: ld.so.1: python: fatal: libgcc_s.so.1: open
failed: No such file or directory", but if I first do "export
LD_LIBRARY_PATH=/usr/local/lib", 4xml works. Something I read made me
think that installing pyxml would help, so I installed the latest
version (0.8.4). After that "Render as DocBook" works for all pages that
do not use the <<Include()>> macro. However, it appears that this may
have broken the GUI editor.
So my current situation is:
* 4Suite-1.0b1 and 4Suite-XML-1.0.2 installed, but the 4Suite commands
fail unless the environment variable LD_LIBRARY_PATH=/usr/local/lib.
* PyXML 0.8.4 is installed (I did it --without-xpath --without-xslt
because the 4suite instructions say that works better:
http://4suite.org/docs/howto/UNIX.xml)
* GUI editor does not work with the expat error I mentioned below.
* "Render as DocBook" works for pages that do not have the
<<Include()>> macro. If the page uses Include, moinmoin gives an error
"ImportError: ld.so.1: python: fatal: libgcc_s.so.1: open failed: No
such file or directory", which I assume is my 4suite library problem.
* Other info:
* Platform: SunOS newthing 5.10 Generic_137138-09 i86pc
* Python: Python 2.4.4 (/usr/bin/python)
* MoinMoin: Release 1.8.1 (release)
* gcc (GCC) 3.4.6
My guess is that if 4suite were working I might not even need PyXML. Any
ideas on how to proceed?
Thanks,
David
> -----Original Message-----
> From: R.Bauer [mailto:rb.proj at gmail.com]
> Sent: Tuesday, January 06, 2009 8:16 AM
> To: moin-user at lists.sourceforge.net
> Subject: Re: [Moin-user] 'module' object has no attribute
> 'expat' when saving from gui editor
>
> David Cramer schrieb:
> > Hi there,
> > I recently upgraded from 1.5.7 to 1.8.1. Somewhere along
> the way, the
> > GUI editor stopped being able to save pages. You can edit the page
> > fine, but if you click "Save Changes", "Preview", "Text
> Mode", "Check
> > Spelling", or "Cancel" you get the following error (full error is
> > attached): 'module' object has no attribute 'expat'
> >
> > Is there some config change I missed or some package I forgot to
> > install on the new machine?
> >
> > Thanks,
> > David
> >
>
> Normally xml is builtin into the python standard library.
>
> But I know also that for SuSE we often have had to install an
> additional pyxml package. May be that is similiar to SunOS.
>
>
> cheers
> Reimar
>
>
> --------------------------------------------------------------
> ----------------
> _______________________________________________
> Moin-user mailing list
> Moin-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user
>
More information about the Moin-user
mailing list