Re: weird error with pyblio-1.3.4

"Frédéric Gobry" <[email protected]> Mon, 26 Nov 2007 22:01:50 +0000
Newsgroups gmane.comp.gnome.apps.pybliographer
Message-ID <[email protected]>
2007/11/26, S=E9bastien Barth=E9lemy <[email protected]>:
>
> Le dimanche 25 novembre 2007 =E0 15:45 +0100, S=E9bastien Barth=E9lemy a
> =E9crit :
> > Le lundi 05 novembre 2007 =E0 10:44 +1300, Jochen a =E9crit :
> > > Hi there,
> > >
> > > after installing pyblio-1.3.4 I can't start pybliographic-1.3. It fai=
ls
> > > with the following error:
> > > Traceback (most recent call last):
> > >   File "/usr/bin/pybliographer-1.3", line 181, in ?
> > >     execfile (filename, user_global)
> > >   File "/usr/share/pyblio-1.3/pybliographic.py", line 25, in ?
> > >     from Legacy.GnomeUI.Pybliographic import Pybliographic
> > >   File "/usr/share/pyblio-1.3/Legacy/GnomeUI/Pybliographic.py", line =
26,
> > > in ?
> > >     from Legacy.GnomeUI import Document, Utils
> > >   File "/usr/share/pyblio-1.3/Legacy/GnomeUI/Document.py", line 39, i=
n ?
> > >     from Legacy.GnomeUI.Medline import MedlineUI
> > >   File "/usr/lib/python2.4/site-packages/uno.py", line 301, in
> > > _uno_import
> > >     raise ImportError( "type "+ name + "." +x + " is unknown" )
> > > ImportError: type Legacy.GnomeUI.Medline.MedlineUI is unknown
> > >
> > > I can't really make anything out of this why is uno used for importin=
g.
> > > I thought uno is the OOffice interface for python. This is python2.4
> > > btw.
> >
> > Hello
> >
> > I encounter the same problem trying to install from arch on a ubuntu
> > gutsy computer (using python 2.5).
> >
> > I don't understand what is happening. I also encountered this
> > uno-related bug previously
> > https://bugs.launchpad.net/ubuntu/+source/openoffice.org2/+bug/139077
> >
> > I don't know if this is related
>
> I still don't know, but commenting the lines 42-47 in
> Legacy/GnomeUI/Citation.py prevent uno to be loaded and then it works !
>
> #try:
> #    from Pyblio.Cite.WP.OpenOffice import OOo
> #    available.append((OOo, _('OpenOffice.org')))
> #
> #except ImportError, msg:
> #    log.warn('cannot import OpenOffice.org support: %s' % msg)
>
> If there is a better way to do the same thing, I'm interested

Hmm, fixing the uno install? I reckon it plays with the import path
somehow (which pyblio already tweaked beforehand). I don't have this
issue on my box, so it's hard for me to guess what's going on. Could
you have a look at the uno module and see if it does something to
sys.path?

Cheers,
-- =

Fr=E9d=E9ric

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/