Issue 15539 - Python integration issues in beta2
Summary: Python integration issues in beta2
Status: CLOSED FIXED
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 Beta2
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 1.1 RC
Assignee: Martin Hollmichel
QA Contact: issues@udk
URL:
Keywords:
Depends on: 15607
Blocks:
  Show dependency tree
 
Reported: 2003-06-12 07:02 UTC by pavel
Modified: 2003-06-22 21:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
patch for scp/source/python/unxbasic_python.scp (removes error message during std installation) (1004 bytes, patch)
2003-06-12 21:34 UTC, joergbudi
no flags Details | Diff
Patch for both changes - chmod error and build dependencies (1.26 KB, patch)
2003-06-13 07:32 UTC, pavel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2003-06-12 07:02:48 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
Comment 1 pavel 2003-06-12 07:42:27 UTC
pyuno depends on python, it should be sufficient to put pyuno as a
requirement in some other project's prj/build.lst.
Comment 2 Martin Hollmichel 2003-06-12 08:38:22 UTC
tagged and added to instsetoo/prj/build.lst
Comment 3 pavel 2003-06-12 09:00:30 UTC
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.
Comment 4 pavel 2003-06-12 11:04:15 UTC
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 *---
Comment 5 khirano 2003-06-12 15:47:29 UTC
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.
Comment 6 pavel 2003-06-12 16:28:03 UTC
First problem (regcomp & co) seems to be solved by adding rdbmaker to
the pyuno's prj/build.lst.
Comment 7 joergbudi 2003-06-12 21:31:40 UTC
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
Comment 8 joergbudi 2003-06-12 21:34:34 UTC
Created attachment 6834 [details]
patch for scp/source/python/unxbasic_python.scp (removes error message during std installation)
Comment 9 pavel 2003-06-12 21:41:41 UTC
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.

Comment 10 pavel 2003-06-12 22:34:17 UTC
I'm starting the full build with those two patches applied. Will
report results in 8 hours (ie. when I wake up :-).
Comment 11 pavel 2003-06-13 07:25:54 UTC
Build went OK with the attached patch (contains both changes).
Comment 12 pavel 2003-06-13 07:32:10 UTC
Created attachment 6840 [details]
Patch for both changes - chmod error and build dependencies
Comment 13 pavel 2003-06-13 20:08:12 UTC
There are issues when building pyuno under Solaris.
Comment 14 quetschke 2003-06-14 08:34:36 UTC
Just a reminder, pyuno is still not a member of the cvs alias
OpenOffice. (anoncvs.services.openoffice.org)
Comment 15 Martin Hollmichel 2003-06-18 13:23:59 UTC
patch for unxbasic_python.scp is applied.

opened #15762 for pyuno alias.
Comment 16 pavel 2003-06-22 21:35:40 UTC
Everything from this bug is fixed - thank you!