To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=53315
                  Issue #:|53315
                  Summary:|pyuno project : include uno.py in the sys.path
                Component:|porting
                  Version:|680m123
                 Platform:|Other
                      URL:|
               OS/Version:|FreeBSD
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|ENHANCEMENT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|mh
              Reported by:|maho





------- Additional comments from [EMAIL PROTECTED] Sun Aug 14 23:39:56 -0700 
2005 -------
if i type
% cd /work/ports/editors/openoffice-2.0-devel/work/pyuno/
% source ../FreeBSDEnv.sh
% cd demo
% python hello_world_comp.py
Traceback (most recent call last):
  File "hello_world_comp.py", line 1, in ?
    import uno
ImportError: No module named uno
% pwd ; find . -name "uno.py"
/work/ports/editors/openoffice-2.0-devel/work/pyuno
./source/module/uno.py
./unxfbsd.pro/lib/uno.py

here are uno.py and deliver'ed like:
COPY: ../unxfbsd.pro/lib/uno.py ->
/work/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/lib/pyuno/uno.py

so i think this is  reasonable to apply following patch, namely adding 
/work/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/lib/pyuno
in sys.path as well.

fails.
% which python
/work/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/bin/python
and
% python
Python 2.3.4 (#1, Jun 20 2005, 13:48:59)
[GCC 3.4.1 [FreeBSD]] on freebsd5
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/work/ports/editors/openoffice-2.0-devel/work/pyuno/demo',
'/work/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/lib',
'/work/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/lib/python',
'/work/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/lib/python/lib-dynload',
'/work/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/lib/python23.zip',
'/work/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/lib/python2.3',
'/work/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/lib/python2.3/plat-freebsd5',
'/work/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/lib/python2.3/lib-tk',
'/work/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/lib/python2.3/lib-dynload']
>>>
this is because there is no uno.py in this sys.path.
so i think this is  reasonable to apply following patch, namely adding 
/work/ports/editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/lib/pyuno
in sys.path as well.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to