Greg Pratt
2006-04-06 20:18:57 UTC
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 ***@panix.com
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
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 ***@panix.com
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