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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to