Re: weird error with pyblio-1.3.4

"Frédéric Gobry" <[email protected]> Mon, 7 Apr 2008 22:56:10 +0100
Newsgroups gmane.comp.gnome.apps.pybliographer
Message-ID <[email protected]>
>  This thread is quite old, but I have the same issue on Ubuntu Gutsy. Are
>  there any news regarding this? This problem breaks OO.o integration on
>  Ubuntu.

I heard of none. I haven't had the time to look at the code S=E9bastien
sent, regarding the way openoffice imports modules. It definitely
redefines __import__, but I haven't checked why it was breaking pyblio
specifically.

>
>  Any help appreciated.
>
>  Cheers,
>  Frederik
>
>  Am Dienstag, den 27.11.2007, 09:42 +0100 schrieb S=E9bastien Barth=E9lem=
y:
>
> > Le lundi 26 novembre 2007 =E0 22:01 +0000, Fr=E9d=E9ric Gobry a =E9crit=
 :
>  > > 2007/11/26, S=E9bastien Barth=E9lemy <barthelemy-S9djqSf+cojYtjvyW6y=
[email protected]>:
>
>
> > > >
>  > > > I still don't know, but commenting the lines 42-47 in
>  > > > Legacy/GnomeUI/Citation.py prevent uno to be loaded and then it wo=
rks !
>  > > >
>  > > > #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?
>  >
>  > Hmm, I was thinking of some "disable_uno" configuration option ;)
>  >
>  > > 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?
>  >
>  > I though about something like that and tried to add the pyblio dirs to
>  > the python path but it didn't helped
>  > ~/share/pyblio-1.3/Legacy:~/share/pyblio-1.3/Legacy/GnomeUI
>  >
>  > My python-uno package comes from ubuntu and is version 1:2.3.0-1ubuntu=
5,
>  > the files are attached.
>  >
>  > There is no sys.path, but they are playing with sys.modules around line
>  > 256, maybe this is related.
>
>
>
>
>
> -------------------------------------------------------------------------
>  This SF.net email is sponsored by: Microsoft
>  Defy all challenges. Microsoft(R) Visual Studio 2008.
>
>
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  _______________________________________________
>  Pybliographer-general mailing list
>  Pybliographer-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>  https://lists.sourceforge.net/lists/listinfo/pybliographer-general
>
>



-- =

Fr=E9d=E9ric

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference =

Register now and save $200. Hurry, offer ends at 11:59 p.m., =

Monday, April 7! Use priority code J8TLD2. =

http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java=
one