https://issues.apache.org/ooo/show_bug.cgi?id=125677
Issue ID: 125677
Issue Type: DEFECT
Summary: _socket.pyd missing export function "init_socket"
Product: App Dev
Version: 4.1.1
Hardware: PC
OS: Windows 7
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: api
Assignee: [email protected]
Reporter: [email protected]
unoconv (a doc converter) fails on OpenOffice 4.1.1 (Windows Server 2012)
Here is stderr output from unoconv:
----------
unoconv: Cannot find a suitable pyuno library and python binary combination in
C:\Program Files (x86)\OpenOffice 4
ERROR: DLL load failed: 指定されたプロシージャが見つかりません。
unoconv: Cannot find a suitable pyuno library and python binary combination in
C:\Program Files (x86)\OpenOffice 4
ERROR: DLL load failed: 指定されたプロシージャが見つかりません。
unoconv: Cannot find a suitable office installation on your system.
ERROR: Please locate your office installation and send your feedback to:
http://github.com/dagwieers/unoconv/issues
----------
The error occurs on following fragment:
----------
import uno, unohelper
----------
So, I have tried it on OpenOffice's attached python "C:\Program Files
(x86)\OpenOffice 4\program\python.exe":
----------
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on
win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "uno.py", line 36, in <module>
import socket # since on Windows sal3.dll no longer calls WSAStartup
File "C:\Program Files (x86)\OpenOffice
4\program\python-core-2.7.6\lib\socket
.py", line 47, in <module>
import _socket
ImportError: DLL load failed: 指定されたプロシージャが見つかりません。
----------
And, I have checked _socket.pyd by DependencyWalker: "C:\Program Files
(x86)\OpenOffice 4\program\python-core-2.7.6\lib\_socket.pyd"
It has no export function.
Also I have checked my computer's _socket.pyd: C:\Python27\DLLs\_socket.pyd
Is has 2 export functions: init_socket and init_sockobject.
Thus python's "import" fails due to lack of export functions?
And I have replaced OpenOffice's _socket.pyd with my computer's _socket.pyd.
It workd!
So, please fix OpenOffice's _socket.pyd.
pyuno may not work with it.
--
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.