ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxpython-users
wxpython-users
Re: [wxpython-users] Can't get 2.8.10.1 to run
by Robin Dunn other posts by this author
Jun 1 2009 11:16AM messages near this date
Re: [wxpython-users] Can't get 2.8.10.1 to run | [wxpython-users] Re: Testing events, I'm missing the gist (Rohan)
chris botos wrote:

>  2) If I add the location of libiconv.so.2, so that  LD_LIBRARY_PATH =
>  /opt/wx/2.8/lib:/usr/local/lib and repeat the above, wx seems to
>  import without error.
>  However, when I try to create an app, as follows, the system hangs, is
>  unresponsive, and I am stuck.
>  
> >>> import wx
> >>> app = wx.PySimpleApp()
>  

Hmm... I can't think of anything there that would hang or get stuck in 
an endless loop, unless it's something in the GTK initialization code.


>  ----------
>  To get to this point, the first thing I did was upgrade to GTK+-2.12.0
>  and dependencies from sunfreeware.com, installed in /usr/local.
>  I've tried a number of variations of the BUILD instructions' parameters.
>  In those cases where the build was completed without apparent error,
>  my procedure has been:
>  
>  setenv LD_LIBRARY_PATH /usr/local/lib
>  setenv PKG_CONFIG_PATH /usr/local/lib/pkgconfig
>  
>  Create .configure and .make in $WXDIR/bld :
>  ../configure    --prefix=/opt/wx/2.8 >         --with-gtk >         --with-opengl >       
  --with-gnomeprint >          --enable-optimize >         --enable-debug_flag >         --en
able-geometry >          --enable-graphics_ctx >         --enable-sound --with-sdl >         
--enable-mediactrl >          --enable-display >         --enable-unicode > 
>  gmake $* >     && gmake -C contrib/src/gizmos $* >     && gmake -C contrib/src/stc $*
>  
>  Then execute:
>  .config
>  .make
>  .make install
>  cd ../wxPython
>  gedit config.py ---> Uncomment the recommended block of code for Solaris
>  python2.5 setup.py build_ext --inplace
>  --include-dirs="/usr/X11R6/include" --force
>          (without the include, there was a compile error)
>  
>  Then I try the experiments from 1 and 2 above.
>  
>  I'd appreciate any help or suggestions.


As far as I can tell you are doing everything right.  Some things I 
would check:

* Is the DISPLAY environment variable set in the terminal you run Python 
from?

* Is Sun's CC or gcc being used for the compilation?  If Sun's CC then 
try gcc.  (IIRC everything from sunfreeware was built with gcc.)

* Try building and running one of the wx samples (run gmake in 
<wx-build-dir> /samples/minimal for example and then run the executable 
built there.)



-- 
Robin Dunn
Software Craftsman
http://wxPython.org

_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
Chris Botos
Mike Driscoll
Chris Botos
Robin Dunn

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved