1 Nov 2004 fxn   » (Master)

Perl Quiz of the Week

Today I wrote the summary for the current quiz, which was about writing a Tk roller coaster simulator. Four solutions were submitted, one of them uses POV-Ray instead of Tk, and another one is written in Python. There were several custom extensions: trains, parameterized gravities and time scales, data display, etc. It was fun. I sent the draft to Mark.

Tkinter under Mac OS X

When I tried to run the Python solution I saw neither the Python that comes with Panther, nor my compiled Python could run Tk.

After searching a bit I saw that the python from Fink supports it, good, at least I could play with it a bit launching the X server. Nevertheless, I wanted Python to use Tcl/Tk Aqua, and so I tried to compile the sources again with --enable-framework. Unfortunately, though, make frameworkinstall gave an error:

    ./python.exe ./Mac/scripts/cachersrc.py -v /Library/Frameworks/
    Python.framework/Versions/2.3/lib/python2.3/plat-mac /Library/
    Frameworks/Python.framework/Versions/2.3/Mac/Tools
    Traceback (most recent call last):
      File "./Mac/scripts/cachersrc.py", line 7, in ?
        import macresource
      File "/Users/fxn/src/Python-2.3.4/Lib/plat-mac/macresource.py", line 3, in ?
        from Carbon import Res
      File "/Users/fxn/src/Python-2.3.4/Lib/plat-mac/Carbon/Res.py", line 4, in ?
        from _Res import *
    ImportError: Failure linking new module: : dyld: ./python.exe Undefined symbols:
    /Users/fxn/src/Python-2.3.4/build/lib.darwin-7.5.0-Power_Macintosh-2.3/
    _Res.so undefined reference to _CtlObj_New expected to be defined in the 
    executable
    /Users/fxn/src/Python-2.3.4/build/lib.darwin-7.5.0-Power_Macintosh-2.3/
    _Res.so undefined reference to _MenuObj_New expected to be defined in the 
    executable
    /Users/fxn/src/Python-2.3.4/build/lib.darwin-7.5.0-Power_Macintosh-2.3/
    _Res.so undefined reference to _PyArg_ParseTuple expected to
    make[1]: *** [installmacsubtree] Error 1
    make: *** [frameworkinstallmaclib] Error 2
Google didn't help there. Is that build broken?

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!