Re: Setting upthe dev environment in Mac OS X
Greg Pratt <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Organization | Panix |
| Message-ID | <[email protected]> |
On Thursday, 06 April 2006, Greg Pratt is rumored to have said...
> My guess is that bp.py just doesn't know where to find wxPython's
> pieces. I've had PYTHONPATH defined and pointing to
> /Library/Python/2.3/wx-2.6-mac-unicode/wxPython, but I don't know
> if that variable is even the one I should be concerned about in this
> case.
Re-reading my earlier message got me thinking: the docs for wxPython
state that I should "...ensure that the directory containing wxPython is
contained in the PYTHONPATH environment variable." Hmm, one-off error?
I changed $PYTHONPATH from
/Library/Python/2.3/wx-2.6-mac-unicode/wxPython
...to...
/Library/Python/2.3/wx-2.6-mac-unicode
Voila!
The only other change needed is to change the invocation of bp.py from
"python" to "pythonw". If you forget this, "python" will tell you. :)
$ python src/bp.py
This program needs access to the screen. Please run with 'pythonw',
not 'python', and only when you are logged in on the main display of
your Mac.
canis-major:~/src/bitpim/bitpim gpratt$ pythonw src/bp.py
not returning a bitmap for wxART_ADD_BOOKMARK
not returning a bitmap for wxART_DEL_BOOKMARK
You need to make helphelp.png
[...]
I haven't tested the code yet, but at least now it will load properly.
To review, this can be used to run BitPim from the development download
under Mac OS X 10.4 where you've got the pre-built binary of wxPython
installed:
export PYTHONPATH=/Library/Python/2.3/wx-2.6-mac-unicode
cd /path/to/bitpim
python packaging/buildmodules.py
pythonw src/bp.py
--
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