wx.html2 on Linux x64

Hello,

on OS X and Windows everything runs just fine, but when I compiled wxpython 2.9.4 on Linux and then tried to run with it my program, it returned such exception:

File “/home/solusipse/wxPython-src-2.9.4.0/wxPython/wx/html2.py”, line 125, in New

val = _html2.WebView_New(*args, **kwargs)

NotImplementedError: wx.html2 is not available on this platform.

I just wanted to ask if I should get such error or maybe I did something wrong. I used Arch Linux 64 bit. wxPython compiled without errors - I used that command:

python2.6 build-wxpython.py --build_dir=…/bld

and then exported LD_LIBRARY_PATH and PYTONPATH.

Greetings,

solusipse

solus1ps3@gmail.com wrote:

Hello,
on OS X and Windows everything runs just fine, but when I compiled
wxpython 2.9.4 on Linux and then tried to run with it my program, it
returned such exception:

File "/home/solusipse/wxPython-src-2.9.4.0/wxPython/wx/html2.py", line
125, in New
val = _html2.WebView_New(*args, **kwargs)
NotImplementedError: wx.html2 is not available on this platform.

I just wanted to ask if I should get such error or maybe I did something
wrong. I used Arch Linux 64 bit. wxPython compiled without errors - I
used that command:
python2.6 build-wxpython.py --build_dir=../bld
and then exported LD_LIBRARY_PATH and PYTONPATH.

If the packages that the wxWebView classes depend upon are not installed then wxWidget's configure script will automatically disable building those classes. You'll need at least the -dev packages for libwebkitgtk, or whatever it may be called on Arch Linux. Watch the output of the configure command for more clues.

···

--
Robin Dunn
Software Craftsman

Thanks a lot! This is the package I needed:

https://www.archlinux.org/packages/extra/x86_64/webkitgtk2

Now everything works fine.

W dniu sobota, 27 lipca 2013 20:46:05 UTC+2 użytkownik Robin Dunn napisał:

···

solu...@gmail.com wrote:

Hello,

on OS X and Windows everything runs just fine, but when I compiled

wxpython 2.9.4 on Linux and then tried to run with it my program, it

returned such exception:

File “/home/solusipse/wxPython-src-2.9.4.0/wxPython/wx/html2.py”, line

125, in New

val = _html2.WebView_New(*args, **kwargs)

NotImplementedError: wx.html2 is not available on this platform.

I just wanted to ask if I should get such error or maybe I did something

wrong. I used Arch Linux 64 bit. wxPython compiled without errors - I

used that command:

python2.6 build-wxpython.py --build_dir=…/bld

and then exported LD_LIBRARY_PATH and PYTONPATH.

If the packages that the wxWebView classes depend upon are not installed
then wxWidget’s configure script will automatically disable building
those classes. You’ll need at least the -dev packages for libwebkitgtk,
or whatever it may be called on Arch Linux. Watch the output of the
configure command for more clues.


Robin Dunn

Software Craftsman

http://wxPython.org