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 Chris Botos other posts by this author
Jun 1 2009 3:20PM messages near this date
Re: [wxpython-users] Can't get 2.8.10.1 to run | Re: [wxpython-users] Can't get 2.8.10.1 to run
On Mon, Jun 1, 2009 at 2:35 PM, Mike Driscoll
<mdriscoll@[...].us>  wrote:
>  chris botos wrote:
> >
> > Hi,
> >
> > I'm trying to get 2.8.10.1 up and running on a Solaris 10 x86 box, python
> > 2.5.
> >
> > Following the BUILD instructions, and making a couple of adjustments,
> > I have been able to compile everything to the point where one of two
> > things happen, depending on some conditions.
> >
> > 1) With LD_LIBRARY_PATH = /opt/wx/2.8/lib, and the
> > PYTHONPATH=/opt/wx/wxPython-src-2.8.10.1/wxPython:... I get the
> > following:
> >
> > Python 2.5 (r25:51908, Dec 20 2007, 16:09:34)
> > [GCC 3.4.3 (csl-sol210-3_4-branch+sol_rpath)] on sunos5
> > Type "help", "copyright", "credits" or "license" for more information.
> >
> >>>>
> >>>> import wx
> >>>>
> >
> > Traceback (most recent call last):
> >  File "<stdin>", line 1, in <module>
> >  File "/opt/wx/wxPython-src-2.8.10.1/wxPython/wx/__init__.py", line
> > 45, in <module>
> >   from wx._core import *
> >  File "/opt/wx/wxPython-src-2.8.10.1/wxPython/wx/_core.py", line 4, in
> > <module>
> >   import _core_
> > ImportError: ld.so.1: python2.5: fatal: libiconv.so.2: open failed: No
> > such file or directory
> >
> > 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()
> >>>>
> >
> > ----------
> > 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-open
gl > >        --with-gnomeprint >>        --enable-optimize >>        --enable-de
bug_flag > >        --enable-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.
> >
> > Chris Botos
> > ____________________
> 
>  Are you actually trying to run wx from within IDLE? While I don't run
>  Solaris, I have seen IDLE behave badly (especially the Tk GUI version of
>  IDLE) when I try to run wx interactively  like that. In fact, IDLE will
>  either hang, die or spit out a traceback.
> 
>  - Mike
>  _______________________________________________
>  wxpython-users mailing list
>  wxpython-users@[...].org
>  http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
> 

IT WORKS!!  I can run the demo!
Thank you Robin and Mike for your suggestions!

Mention of GTK got me wondering if I could somehow test it
independently.  So I found gtk-demo and ran it under a few different
conditions, and at least as much as I exercised it seemed OK.

Then I tried gedit.  With the LD_LIBRARY_PATH set to /usr/local/lib,
and I typed gedit without arguments, it came up and seemed to be fine.
 It also contained the updated GTK widgets and tool symbols.

However if I tried gedit with an existing filename, it would come up,
but keystrokes did nothing, and after several seconds, it just died
without any error messages.

When I went back to the no-argument case, and tried to save a file, I
got an error dialog that said "UTF8 to 646 is not supported.  Could
not save the file!"

With some googling I found that this message could mean that a file
named "charset.alias" was not found.  I found it in /usr/lib and
copied it to /usr/local/lib. Then gedit then worked fine without
error.

Then I went back and built wx again as I described initially, but took
the detour Robin suggested after the first .make and before .make
install.  $WXDIR/bld/samples/minimal/minimal came up as I am supposing
it should.

BTW this seems like a very nice mid-course check that could save alot
of time if it didn't work.

I went on to finish the build, and the demo came up right away.  What
a beautiful thing to see!  I'll probably have more questions as I
start to use it, but for now I'm going home to celebrate.

Thanks again!  (BTW Mike, I don't use IDLE, but I'm glad to know about
the issue.)

Chris
_______________________________________________
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