Apache OpenOffice (AOO) Bugzilla – Issue 15539
Python integration issues in beta2
Last modified: 2003-06-22 21:35:40 UTC
Hi, current up-to-date build/installation of cws_srx644_ooo11beta2 on GNU/Linux: error: source file 'pyuno.so' cannot be found. error: source file 'libpyuno.so' cannot be found. error: source file 'pythonloader.uno.so' cannot be found. error: source file 'unohelper.py' cannot be found. error: source file 'uno.py' cannot be found. error: source file 'pythonloader.py' cannot be found. error: source file 'python-core-2.2.2.zip' cannot be found. error: source file 'python.sh' cannot be found. error: source file 'libpython.so.2.2.2' cannot be found. Three problems there: 1. nothing builds/delivers python directory: pavel@oo:~/BuildDir/ooo_11beta2_src> grep -r python */prj/build.lst python/prj/build.lst:py python : NULL python/prj/build.lst:py python nmake - all ft_mkout NULL scp/prj/build.lst:cp scp\source\python nmake - all cp_python NULL scp/prj/build.lst:cp scp\util nmake - all cp_util cp_calc cp_chart cp_draw cp_fonts cp_gbl cp_grffilt cp_impress cp_javafilter cp_math cp_off cp_office_root cp_lingu cp_cde.u cp_kde.u cp_gnome.u cp_python NULL 2. pyuno is not tagged for beta2 at all: pavel@pavel:~/Tmp/ooo_11beta2_src/pyuno> cvs log prj/build.lst |grep beta OpenOffice_1_1_beta: 1.1 3. After manual build and deliver in python, checkout, build and deliver in pyuno, everything is found. Installation (./install --prefix=/tmp/NEW) finished with: /bin/chmod: getting attributes of `python-core-2.2.2/bin/python': No such file or directory pavel@oo:/tmp/NEW/OpenOffice.org1.1Beta2/program> ls -al python-core* lrwxrwxrwx 1 pavel users 17 Jun 12 08:57 python-core -> python-core-2.2.2
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!