Setting upthe dev environment in Mac OS X

Greg Pratt <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Organization Panix
Message-ID <[email protected]>
I finally had some time this week to set up the development environment
on my Mac OS X 10.4.5 system (PPC).  I've run into a problem running
bp.py that leads me to think that I've missed something.

First, I built pySerial (2.2), swig (1.3.29), APSW (3.2.7-r1), and
libusb (0.1.12) from source, and installed wxPython 2.6.3.2 (Unicode)
via the pre-built package provided at www.wxpython.org.  This last item
went into its default install location (most of the pieces reside in
/Library/Python/2.3/).  The rest of the pieces were either installed in
/usr/local or /Library/Python/2.3//site-packages, as appropriate.

I installed Subversion and retrieved the entire source tree:

    svn co https://svn.sourceforge.net/svnroot/bitpim/trunk/bitpim

I then set up BitPim and tried running it, with an annoying failure:

    $ env | grep -i python
    LD_LIBRARY_PATH=/Library/Python/2.3/wx-2.6-mac-unicode/wx
    PYTHONPATH=/Library/Python/2.3/wx-2.6-mac-unicode/wxPython

    $ python packaging/buildmodules.py
    ===== src/native/usb
    SWIG Version 1.3.29
    /usr/local/include/usb.h:329: Warning(302): Identifier 'usb_device' redefined (ignored),
    /usr/local/include/usb.h:241: Warning(302): previous definition of 'usb_device'.
    ===== src/native/strings
    running build
    running build_ext
    building 'jarow' extension
    creating build
    creating build/temp.darwin-8.5.0-Power_Macintosh-2.3
    gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c jarow.c -o build/temp.darwin-8.5.0-Power_Macintosh-2.3/jarow.o
    creating build/lib.darwin-8.5.0-Power_Macintosh-2.3
    gcc -Wl,-F. -Wl,-F. -bundle -undefined dynamic_lookup build/temp.darwin-8.5.0-Power_Macintosh-2.3/jarow.o -o build/lib.darwin-8.5.0-Power_Macintosh-2.3/jarow.so

    $ python src/bp.py
    Traceback (most recent call last):
      File "src/bp.py", line 90, in ?
        import gui
      File "/Volumes/Backups/bitpim/src/gui.py", line 41, in ?
        import phonebook
      File "/Volumes/Backups/bitpim/src/phonebook.py", line 101, in ?
        import phonebookentryeditor
      File "/Volumes/Backups/bitpim/src/phonebookentryeditor.py", line 17, in ?
        import wallpaper
      File "/Volumes/Backups/bitpim/src/wallpaper.py", line 23, in ?
        import brewcompressedimage
      File "/Volumes/Backups/bitpim/src/brewcompressedimage.py", line 225, in ?
        class BCIImageHandler(wx.PyImageHandler):
    AttributeError: 'module' object has no attribute 'PyImageHandler'

I'm not familiar with Python or the wxWidgets, so I'm not sure why
PyImageHandler can't be associated with any library or Python file.
I'm hoping this is a missing line of documentation or a "doh!" moment.
What might I be missing here?

--
Gregory Pratt                                               [email protected]
East Rutherford, NJ, USA                       http://www.panix.com/~gp/
"The only good spammer is a dead spammer."
PGP Key Fingerprint:  DC60 FCDE 91E2 3D41 91A3  45DB B474 3D3A 3621 AAFE


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.