| View previous topic :: View next topic |
| Author |
Message |
AndrewZ Moderator


Joined: 21 Jun 2004 Posts: 4148 Location: Colorado, USA
|
Posted: Sun Apr 06, 2008 10:31 am Post subject: couldn't connect to socket (WSANOTINITIALISED, WSAStartup() |
|
|
Hi,
I've been using PyUNO for a while with Linux, but I am having a rough start on Windows XP. Here I am trying the PyUNO hello world but get an error.
| Code: |
C:\Program Files\OpenOffice.org 2.4\program>"C:\Program Files\OpenOffice.org 2.4\program"\python "C:\a\programs\py_hello"\hello_world.py
Traceback (most recent call last):
File "C:\a\programs\py_hello\hello_world.py", line 16, in ?
ctx = resolver.resolve( "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" )
__main__.com.sun.star.connection.NoConnectException: Connector : couldn't connect to socket (WSANOTINITIALISED, WSAStartup() has not been called) |
However, I think OOo is listening OK. I used cports to verify it is listening and telnet to verify it accepts connections.
Update: I noticed someone filed this as issue 87984 _________________ <signature>
* Did you solve your problem? Do others a favor: Post the solution
* OpenOffice.org Ninja
* BleachBit
</signature> |
|
| Back to top |
|
 |
AndrewZ Moderator


Joined: 21 Jun 2004 Posts: 4148 Location: Colorado, USA
|
Posted: Sun Apr 06, 2008 4:36 pm Post subject: |
|
|
Update: solved by going back to v2.3.1 _________________ <signature>
* Did you solve your problem? Do others a favor: Post the solution
* OpenOffice.org Ninja
* BleachBit
</signature> |
|
| Back to top |
|
 |
hanya OOo Advocate

Joined: 04 May 2005 Posts: 344 Location: Japan
|
Posted: Tue Apr 08, 2008 1:55 am Post subject: |
|
|
I got the same error. Now I use the pipe instead of the socket.
| Code: | ctx = resolver.resolve("uno:pipe,name=pypipe;urp;StarOffice.ComponentContext")
|
This works well on OOo 2.4 with WinXP.
Needs to start with:
| Code: | | soffice.exe "-accept=pipe,name=pypipe;urp;StarOffice.ServiceManager" |
|
|
| Back to top |
|
 |
|