Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Python integration issues in beta2 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | udk | Reporter: | pavel | ||||||
Component: | code | Assignee: | Martin Hollmichel <nesshof> | ||||||
Status: | CLOSED FIXED | QA Contact: | issues@udk <issues> | ||||||
Severity: | Trivial | ||||||||
Priority: | P2 | CC: | issues | ||||||
Version: | OOo 1.1 Beta2 | ||||||||
Target Milestone: | OOo 1.1 RC | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||
Developer Difficulty: | --- | ||||||||
Issue Depends on: | 15607 | ||||||||
Issue Blocks: | |||||||||
Attachments: |
|
Description
pavel
2003-06-12 07:02:48 UTC
pyuno depends on python, it should be sufficient to put pyuno as a requirement in some other project's prj/build.lst. tagged and added to instsetoo/prj/build.lst Thanks for fast response Martin. You changed instsetoo/prj/build.lst -> revision 1.13.14.2, but on cws_srx644_ooo11beta2 it is still version 1.13.0.8. pyuno needs also regcomp, ie. cpputools as a pre-requisite and probably many others. Thus it is not buildable right now. After adding cpputools to pyuno/prj/build.lst: ------------- /mnt/hdc2/pavel/BuildDir/ooo_11beta2_src/pyuno/source/module ------------- /mnt/hdc2/pavel/BuildDir/ooo_11beta2_src/pyuno/source/loader ------------- rm -f ../../unxlngi4.pro/lib/pyuno_services.rdb ../../unxlngi4.pro/lib/pyuno_services.tmp ../../unxlngi4.pro/lib/pyuno_services.rdb cd ../../unxlngi4.pro/lib && regcomp -register -r pyuno_services.tmp -c typeconverter.uno -c invocation.uno -c corereflection.uno -c introspection.uno -c invocadapt.uno -c proxyfac.uno -c pythonloader.uno ERROR: create ServiceManager failed! ERROR description: loading component library failed: file:///mnt/hdc2/pavel/BuildDir/ooo_11beta2_src/solver/644/unxlngi4.pro/lib/servicemgr.uno.so dmake: Error code 1, while making '../../unxlngi4.pro/lib/pyuno_services.rdb' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /mnt/hdc2/pavel/BuildDir/ooo_11beta2_src/pyuno/source/loader dmake: Error code 1, while making 'build_all' ---* TG_SLO.MK *--- The problem is that python-core-2.2.2.zip is not extracted in the installation process. I tried a workaround: 1) Start installation by ./setup in the 1.1beta2 installation set. 2) When you create a new OOo install directory for 1.1beta2 such as /{home}/OpenOffice.org1.1, open your terminal. 3) cd /{home}/OpenOffice.org1.1 mkdir program cd program cp /{installation set dir}/f_0401 (=python-core-2.2.2.zip). unzip f_0401 4) Back to the OOo installation process and go on. Then you will not see the following when the installation completes: /bin/chmod: getting attributes of `python-core-2.2.2/bin/python': No such file or directory There should be a more elegant way to solve this question. First problem (regcomp & co) seems to be solved by adding rdbmaker to the pyuno's prj/build.lst. Hi, pyuno is not within the OOo standard installation. It must be switched on explicitly via Custom Setup (Optional Components/PyUNO Bridge). The message /bin/chmod: getting attributes of `python-core-2.2.2/bin/python': No such file or directory , which appears when the PyUNO module is not selected during setup (e.g. Standard installation) is a bug. I will attach a patch to this issue, which fixes this problem. Martin, can you take care, that the patch is applied ? The dependency problem should be solved by adding stoc and cpputools to the build.lst. Martin, will you do this for me ? Bye, Joerg Created attachment 6834 [details]
patch for scp/source/python/unxbasic_python.scp (removes error message during std installation)
Yes, second problem (chmod) is the result of ./install --prefix=/does_not_matter. If I do ./setup instead and choose custom installation and add pythonUNO bridge, everything is OK. Thank you for the patch. I'm starting the full build with those two patches applied. Will report results in 8 hours (ie. when I wake up :-). Build went OK with the attached patch (contains both changes). Created attachment 6840 [details]
Patch for both changes - chmod error and build dependencies
There are issues when building pyuno under Solaris. Just a reminder, pyuno is still not a member of the cvs alias OpenOffice. (anoncvs.services.openoffice.org) patch for unxbasic_python.scp is applied. opened #15762 for pyuno alias. Everything from this bug is fixed - thank you! |