Can't get 2.8.10.1 to run

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-opengl \
        --with-gnomeprint \
        --enable-optimize \
        --enable-debug_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

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 \
        --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.

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

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-opengl \
        --with-gnomeprint \
        --enable-optimize \
        --enable-debug_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

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

···

On Mon, Jun 1, 2009 at 2:35 PM, Mike Driscoll <mdriscoll@co.marshall.ia.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-opengl \
--with-gnomeprint \
--enable-optimize \
--enable-debug_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@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users