[lxml-dev] Compiling lxml with OpenOffice embeded python 2.3.4 runtime

Hello, following these instructions: http://codespeak.net/lxml/build.html#static-linking-on-windows Running these commands: C:\Download\lxml-source\lxml-1.0.2>set PATH="C:\Program Files\OpenOffice.org 2.0\program";"C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\bin";"C:\Program Files\Microsoft Visual Studio\VC98\Bin" C:\Download\lxml-source\lxml-1.0.2>set PYTHONPATH="C:\Program Files\OpenOffice.org 2.0\program";"C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib" C:\Download\lxml-source\lxml-1.0.2>python setup.py bdist_wininst --static Building lxml version 1.0.2 *NOTE*: Trying to build without Pyrex, needs pre-generated 'src/lxml/etree.c' ! running bdist_wininst running build running build_py running build_ext Traceback (most recent call last): File "setup.py", line 170, in ? ext_modules = ext_modules, File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\core.py", line 149, in setup dist.run_commands() File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\dist.py", line 907, in run_commands self.run_command(cmd) File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\dist.py", line 927, in run_command cmd_obj.run() File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\command\bdist_wininst.py", line 101, in run self.run_command('build') File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\cmd.py", line 333, in run_command self.distribution.run_command(command) File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\dist.py", line 927, in run_command cmd_obj.run() File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\command\build.py", line 107, in run self.run_command(cmd_name) File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\cmd.py", line 333, in run_command self.distribution.run_command(command) File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\dist.py", line 927, in run_command cmd_obj.run() File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\command\build_ext.py", line 243, in run force=self.force) File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\ccompiler.py", line 1173, in new_compiler return klass (None, dry_run, force) File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\msvccompiler.py", line 206, in __init__ self.__macros = MacroExpander(self.__version) File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\msvccompiler.py", line 112, in __init__ self.load_macros(version) File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\msvccompiler.py", line 128, in load_macros self.set_macro("FrameworkSDKDir", net, "sdkinstallrootv1.1") File "C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib\distutils\msvccompiler.py", line 118, in set_macro self.macros["$(%s)" % macro] = d[key] KeyError: 'sdkinstallrootv1.1' My guess is that it is related to my MS-VS installation. I have no experience with MS compilation. (I don't even know why it is installed on my PC :-). I would be grateful if anybody can help me to build this or tell me where I can download an lxml 1.0.2 or more recent (or not too old) build for win32 and Python 2.3.4. Olivier. ------ World Intellectual Property Organization Disclaimer: This electronic message may contain privileged, confidential and copyright protected information. If you have received this e-mail by mistake, please immediately notify the sender and delete this e-mail and all its attachments. Please ensure all e-mail attachments are scanned for viruses prior to opening or using.

Hi Olivier, Olivier Collioud wrote:
Looks like it. Though I'm not sure which 'sdk' is referred to here. Might also be the OOo SDK.
I have no experience with MS compilation. (I don't even know why it is installed on my PC :-).
Guess you accidentally installed MS-Windows, that tends to install a lot of Microsoft stuff. ;)
We usually don't have Windows binaries for Python 2.3. Martijn keeps building Linux eggs for it, mainly to support Web-Servers, but most people are on 2.4 by now. What about installing a normal Python 2.3 (from python.org), build lxml against that and then just /install/ it to the OOo Python directory? Stefan

Olivier Collioud wrote:
It's the OOo SDK. You might have to install it: http://www.openoffice.org/dev_docs/source/sdk/ Stefan

Hi Olivier, Olivier Collioud wrote:
Looks like it. Though I'm not sure which 'sdk' is referred to here. Might also be the OOo SDK.
I have no experience with MS compilation. (I don't even know why it is installed on my PC :-).
Guess you accidentally installed MS-Windows, that tends to install a lot of Microsoft stuff. ;)
We usually don't have Windows binaries for Python 2.3. Martijn keeps building Linux eggs for it, mainly to support Web-Servers, but most people are on 2.4 by now. What about installing a normal Python 2.3 (from python.org), build lxml against that and then just /install/ it to the OOo Python directory? Stefan

Olivier Collioud wrote:
It's the OOo SDK. You might have to install it: http://www.openoffice.org/dev_docs/source/sdk/ Stefan
participants (2)
-
Olivier Collioud
-
Stefan Behnel