[yt-users] solution to wxPython installation problem
Michael Kuhlen
mqk at astro.berkeley.edu
Wed Apr 14 14:46:33 PDT 2010
I just installed yt 1.6 (stable branch) for the first time. I ran
into some trouble with the wxPython installation. I realize that it's an
optional component, but since I found a solution to my problem,
I thought I'd share it here.
I'm installing yt on an x86_64 machine running Ubuntu 9.04,
2.6.28-18. The error I got during the wxPython installation was:
src/gtk/_gdi_wrap.cpp:31407: error: ‘class wxGraphicsRenderer’ has no
member named ‘CreateBitmap’
Some googling revealed this:
http://groups.google.com/group/wxPython-users/browse_thread/thread/129ba27e2f868c3c
Applying the patch discussed at the end of that thread allowed
the compilation of wxPython to complete successfully. To be more
specific, you need to add this one line
wxGraphicsBitmap CreateBitmap( const wxBitmap &bitmap ) const {
return wxNullGraphicsBitmap; }
after line 4197 in the file
$YT_DIR/src/wxPython-src-2.8.10.1/wxPython/src/gtk/_gdi_wrap.cpp.
Might be worth including this patch in the version of wxPython
that is downloaded from yt.enzotools.org.
Mike
--
*********************************************************************
* *
* Dr. Michael Kuhlen Theoretical Astrophysics Center *
* email: mqk at astro.berkeley.edu UC Berkeley *
* cell phone: (831) 588-1468 601 Campbell Hall *
* skype username: mikekuhlen Berkeley, CA 94720 *
* *
*********************************************************************
More information about the yt-users
mailing list