Re: loadComponentFromURL & AttributeError

Stephan Bergmann <[email protected]>
Newsgroups gmane.comp.openoffice.devel.general
Message-ID <[email protected]>
On 01/20/11 11:25, Sandro wrote:
> Hi I'm using uno from python. The script I use is working under Ubuntu 10.04
> (OO 3.2) and Windows 2003 +OOo3 but in XP with OOo 3.2 (italian) is failing
> with an attribute error on loadComponentFromURL.

Is the "OOo3" you use with Windows 2003 the same version as the OOo 3.2 
you use with XP?

> Googling around it seems an error that was present in OOo 3.0.0 due to
> URE_BOOTSTRAP, so I tryed it anyhow with no luck (I tried setting
> os.environ['URE_BOOTSTRAP'] =
> 'vnd.sun.star.pathname:c:\\Programmi\\OpenOffice.Org
> 3\\program\fundamental.ini' both before and after 'import uno') I do see
> that even in OOo3.2 URE_BOOTSTRAP is not set when I import uno,
> nevertheless, the setting I reported abive does not work.

If there were any problems with URE_BOOTSTRAP and Python on Windows in 
OOo 3.2 (sorry, can't remember), I doubt the effect would have been a 
specific failure of loadComponentFromURL.  Rather, it would probably 
have caused Python UNO to not work at all.

-Stephan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.