Nice to see your post, I was struggling with these issues.
Thanks for helping me with no 3!
I still cant get point 4 to work properly.
here is what I am doing:
- after i change office/program/redirect.ini
[Bootstrap]
URE_BOOTSTRAP=fundamental.ini
(it was URE_BOOTSTRAP=${ORIGIN}/fundamental.ini)
- I also change office/program/soffice.ini
[Bootstrap]
Logo=1
ProgressBarColor=4,68,155
ProgressFrameColor=58,159,232
ProgressPosition=14,230
ProgressSize=412,7
URE_BOOTSTRAP=fundamental.ini
HideEula=1
(it was URE_BOOTSTRAP=${ORIGIN}/fundamental.ini)
- run soffice "-accept=socket,host=localhost,port=2002;urp;"
- the helloworld.py script is in the office/program dir.
which is a copy and paste of
http://udk.openoffice.org/python/python-bridge.html helloworld.py example
- I call "python helloworld.py" (using openoffice's python) from
office/program dir
I get the error no 4's error
AttributeError: getCurrentComponent
Any other suggested workarounds? Am i missing something?
thanks in advance.
Jörg Budischewski wrote:
>
> Hi,
>
> There are some problems with pyuno in OOo3.0.0 (in particular with the
> python executable). Here the known problems and the workarounds for the
> moment.
>
> Bye,
>
> Joerg
> -----------------
>
> 1)( unix only), you need to set LD_LIBRARY_PATH correctly before
> starting the python executable, eg.
>
> export set
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../../openoffice.org/ure/lib:../../openoffice.org/basis3.0/program
> ./python
>
>
> 2) (windows only) The python scripting framework (scripts within
> openoffice via Extras/Macro/) does not work (at least for me). The cause
> is unknown and under investigation.
>
> 3)
> (windows only) When you try to connect to a running office process, you
> get
>
> __main__.com.sun.star.connection.NoConnectException: Connector
> couldn't connect to socket (WSANOTINITIALISED, WSAStartup() has not been
> called)
>
> You can workaround this, by placing a
>
> import socket
>
> at the top of your script.
>
> 4) (windows only) The python program crashes or you get an attribute error
>
> AttributeError: getCurrentComponent (or some other attribute)
>
> This is because the types could not be loaded due to changes in the uno
> bootstrapping mechanism. You can work around it for now by setting the
> variable set URE_BOOTSTRAP=fundamental.ini
>
> and running python from the
> path/to/office/OpenOffice.org 3/programdirectory.
>
>
> 5) (windows only) Interactive mode in python does not work correctly
> When you start the python executable without parameters, the interactive
> session runs somewhat fuzzy (at least on my machine). When you get the
> prompt >>>> , everything you type will be interpreted as a shell
> command. When you then just press return, you are prompted with your
> current working directory, here you can place a python command. Both
> input modes alternate.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Workarounds-for-pyuno-problems-in-OOo3.0.0-tp19982689p20006733.html
Sent from the openoffice - udk dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]