User:Arbraini

From CDOT Wiki
Jump to: navigation, search

Andrew Braini

email: arbraini@learn.senecac.on.ca

IRC: aBraini

Blog: http://abraini.wordpress.com/

Python Port TODO List
Extract the diffs from the dead-alive-not-maintained python25 cws
Extract the diffs from the jbu one, more recent named python26
Use both diffs to help to understand what the task is, and more

In order to create the .diff patch files I needed to find out which milestone of OpenOffice.org the child work space(cws) was based on. I found this out using EIS. I found that the Python CWS was based on m41 and created the diff file using the svn command $ svn diff http://svn.services.openoffice.org/ooo/tags/DEV300_m41/ http://svn.services.openoffice.org/ooo/cws/python26/ > python26.diff I then ran the patch on my m41 OOo build using patch -p1 python26.diff from the source root dir.

The first build stopping error I ran into was a pretty large one.

/home/arbraini/OOo/DEV300_m41/solver/300/unxlngx6.pro/lib/python/site.py:150: Warning: 'with' will become a reserved keyword in Python 2.6
'import site' failed; use -v for traceback
/home/arbraini/OOo/DEV300_m41/solver/300/unxlngx6.pro/lib/python/site.py:150: Warning: 'with' will become a reserved keyword in Python 2.6
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/arbraini/OOo/DEV300_m41/solver/300/unxlngx6.pro/lib/python/compileall.py", line 15, in <module>
    import os
  File "/home/arbraini/OOo/DEV300_m41/solver/300/unxlngx6.pro/lib/python/os.py", line 757
    bs = b""
           ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/arbraini/OOo/DEV300_m41/solver/300/unxlngx6.pro/lib/python/compileall.py", line 15, in <module>
    import os
  File "/home/arbraini/OOo/DEV300_m41/solver/300/unxlngx6.pro/lib/python/os.py", line 757
    bs = b""
           ^
SyntaxError: invalid syntax
/home/arbraini/OOo/DEV300_m41/solver/300/unxlngx6.pro/lib/python/site.py:150: Warning: 'with' will become a reserved keyword in Python 2.6
/home/arbraini/OOo/DEV300_m41/solver/300/unxlngx6.pro/lib/python/site.py:150: Warning: 'with' will become a reserved keyword in Python 2.6
'import site' failed; use -v for traceback
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/arbraini/OOo/DEV300_m41/solver/300/unxlngx6.pro/lib/python/compileall.py", line 15, in <module>
    import os
  File "/home/arbraini/OOo/DEV300_m41/solver/300/unxlngx6.pro/lib/python/os.py", line 757
    bs = b""
           ^
SyntaxError: invalid syntax
error: Bad exit status from /var/tmp/rpm-tmp.nLtV7u (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.nLtV7u (%install)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/arbraini/OOo/DEV300_m41/solver/300/unxlngx6.pro/lib/python/compileall.py", line 15, in <module>
    import os
  File "/home/arbraini/OOo/DEV300_m41/solver/300/unxlngx6.pro/lib/python/os.py", line 757
    bs = b""
           ^
SyntaxError: invalid syntax
error: Bad exit status from /var/tmp/rpm-tmp.Iqx98u (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Iqx98u (%install)
dmake:  Error code 1, while making '/home/arbraini/OOo/DEV300_m41/sysui/unxlngx6.pro/bin/desktop-integration/broffice.org-redhat-menus-3.1-9383.noarch.rpm'

ERROR: Error 65280 occurred while making /home/arbraini/OOo/DEV300_m41/sysui/desktop/redhat

I dug around on the internet and found some similar issues with other projects that include Python such as Blender and Mozilla. I found out it was missing Python Modules that had been causing the error. Arriving at the Germany machine in person I found xorg had frozen. Trying to restart xorg remotely had subsequently locked the whole system. With the help of Chris Tylor who was on the scene we discovered that the machine had been trying to remove key libraries while it was still running. This is what had caused the crash. Python was included in this list of libraries to be removed. Now it looks as if Germany is pooched and I've begin building on another machine.