wxPython Error: running HTML2

Bug #1388847 reported by waffen
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
wxpython3.0 (Debian)
Fix Released
Unknown
wxpython3.0 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Hello,
I have a problem running the wxPython v.3.0 Official Demo in my Ubuntu 14.10 64bits, when I try to run the HTML2 app give me the error attached in the screenshot and dont work.

Library with the problem:
/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_html2.x86_64-linux-gnu.so

All of these using official Ubunt packages and installations from repos.

I need to mention in a VirtualBox running Ubuntu 14.04 I compiled my self the wxPython v 3.0 from sources and ALL works fine.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: libwxgtk3.0-0 3.0.1-3
ProcVersionSignature: Ubuntu 3.16.0-24.32-generic 3.16.4
Uname: Linux 3.16.0-24-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Nov 3 09:12:48 2014
InstallationDate: Installed on 2014-06-27 (129 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
ProcEnviron:
 LANGUAGE=es_PE:es
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=es_PE.UTF-8
 SHELL=/bin/bash
SourcePackage: wxwidgets3.0
UpgradeStatus: Upgraded to utopic on 2014-10-23 (10 days ago)

Revision history for this message
waffen (mlacunza) wrote :
waffen (mlacunza)
tags: added: wxpython
Revision history for this message
waffen (mlacunza) wrote :

I can add a test file t.py with a simple import lines and the command line error when I run that file:

mario@mario-IdeaPad-S410p:~/Escritorio$ python t.py
Traceback (most recent call last):
  File "t.py", line 2, in <module>
    import wx.html2 as webview
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/html2.py", line 8, in <module>
    import _html2
ImportError: /usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_html2.x86_64-linux-gnu.so: undefined symbol: wxEVT_WEBVIEW_NAVIGATED

Revision history for this message
Olly Betts (ojwb) wrote :

I think you can work around this by installing the libwxgtk-webview3.0-0 package and preloading the library from it like so:

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libwx_gtk2u_webview-3.0.so.0.2.0 python t.py

I've haven't looked into why this is needed yet though.

Revision history for this message
Olly Betts (ojwb) wrote :

That command line got line-wrapped - t.py should be on the same line as python.

Revision history for this message
waffen (mlacunza) wrote :

I already have that lib and his dev package, same problem here the results:

mario@mario-IdeaPad-S410p:~/Escritorio$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libwx_gtk2u_webview-3.0.so.0.2.0 python t.py
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libwx_gtk2u_webview-3.0.so.0.2.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Traceback (most recent call last):
  File "t.py", line 2, in <module>
    import wx.html2 as webview
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/html2.py", line 8, in <module>
    import _html2
ImportError: /usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_html2.x86_64-linux-gnu.so: undefined symbol: wxEVT_WEBVIEW_NAVIGATED
mario@mario-IdeaPad-S410p:~/Escritorio$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libwx_gtk2u_webview-3.0.so.0.2.0
mario@mario-IdeaPad-S410p:~/Escritorio$ python t.py
Traceback (most recent call last):
  File "t.py", line 2, in <module>
    import wx.html2 as webview
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/html2.py", line 8, in <module>
    import _html2
ImportError: /usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_html2.x86_64-linux-gnu.so: undefined symbol: wxEVT_WEBVIEW_NAVIGATED

Revision history for this message
waffen (mlacunza) wrote :

Any update for this bug?? I cant create an application because this bug exist, thanks!

Revision history for this message
Mark A. Hershberger (hexmode) wrote :

Just ran into a similar problem. I still have problems, but at least wxPython is working now.

Your LD_PRELOAD is wrong. You can tell by the message "'/usr/lib/x86_64-linux-gnu/libwx_gtk2u_webview-3.0.so.0.2.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored."

I found my lib and used that path in LD_PRELOAD and it worked.

To find your lib: find /usr/lib/x86_64-linux-gnu/ -name *webview*

Revision history for this message
waffen (mlacunza) wrote :

HI,
thanks yes the path is wrong heres in my laptop:

mario@mario-IdeaPad-S410p:~/Escritorio$ find /usr/lib/x86_64-linux-gnu/ -name *webview*
/usr/lib/x86_64-linux-gnu/libwx_gtk2u_webview-3.0.so
/usr/lib/x86_64-linux-gnu/libwx_gtk2u_webview-3.0.so.0
/usr/lib/x86_64-linux-gnu/libwx_gtk2u_webview-3.0.so.0.1.0

my lib is libwx_gtk2u_webview-3.0.so.0.1.0 and not libwx_gtk2u_webview-3.0.so.0.2.0 like Olly Betts (ojwb) wrote. Maybe thats the problem?

Revision history for this message
waffen (mlacunza) wrote :

Now my command:

mario@mario-IdeaPad-S410p:~/Escritorio$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libwx_gtk2u_webview-3.0.so.0.1.0 python t.py

works fine...

Revision history for this message
waffen (mlacunza) wrote :

and running the demo for wxPython 3.0.0 works fine if I use this command:

mario@mario-IdeaPad-S410p:~/Descargas/Python/wxPython/wxPython-3.0.0.0/demo$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libwx_gtk2u_webview-3.0.so.0.1.0 python demo.py

Revision history for this message
waffen (mlacunza) wrote :

With the previous information can I create a simple fix or workaround?

Revision history for this message
waffen (mlacunza) wrote :

Today Ubuntu update related packages, but the same error persist!!! when can you fix it?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wxwidgets3.0 (Ubuntu):
status: New → Confirmed
Changed in wxwidgets3.0 (Ubuntu):
importance: Undecided → Low
Revision history for this message
waffen (mlacunza) wrote :

I just update to 15.04 and the same error!!

olavl (olavl)
description: updated
Revision history for this message
olavl (olavl) wrote :

This bug seems to be still present in Xubuntu 15.10.

Revision history for this message
waffen (mlacunza) wrote :

and in Ubuntu 15.10 64bits I just tested it, check attached screenshot, taked from Virtualbox

Revision history for this message
waffen (mlacunza) wrote :

This bug have ONE YEAR and its not fixed, its only Ubuntu bug, because I compile wxpython from sources and html2 works fine.

Because of that now all the packages using it (pgadmin3 for example) dont work and i need to compile ALL from sources.....

Im using 15.10 now when you will going to fix it??

Revision history for this message
Yuriy Vidineev (adeptg) wrote :

I've just checked on 16.04

import wx
import wx.html2 as webview

python t.py
Traceback (most recent call last):
  File "t.py", line 2, in <module>
    import wx.html2 as webview
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/html2.py", line 8, in <module>
    import _html2
ImportError: /usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_html2.x86_64-linux-gnu.so: undefined symbol: wxEVT_WEBVIEW_NAVIGATED

So the same problem

Changed in wxwidgets3.0 (Debian):
status: Unknown → New
affects: wxwidgets3.0 (Ubuntu) → wxpython3.0 (Ubuntu)
affects: wxwidgets3.0 (Debian) → wxpython3.0 (Debian)
Changed in wxpython3.0 (Debian):
status: New → Fix Committed
Revision history for this message
Yuriy Vidineev (adeptg) wrote :

Debian has fixed it
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821934

Can we backport such changes?

Changed in wxpython3.0 (Debian):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wxpython3.0 - 3.0.2.0+dfsg-2

---------------
wxpython3.0 (3.0.2.0+dfsg-2) unstable; urgency=medium

  [ Scott Talbert ]
  * Add binary package python-wxgtk-webview3.0 for wx.html2.
    (Closes: #821934, LP: #1388847)

  [ Olly Betts ]
  * Restore "Suggests: wx3.0-doc" as wx3.0-doc now exists.
  * debian/control: "Standards-Version: 3.9.8" - changes for conformance:
    + debian/python-wxtools.menu: Remove obsolete menu file.
  * debian/control: Give secure https URL for anon git access.

 -- Olly Betts <email address hidden> Mon, 02 May 2016 11:03:40 +1200

Changed in wxpython3.0 (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
waffen (mlacunza) wrote :

HI

when this bug will be fixed?
Im using latest Ubuntu 16.04 LTS and the version founded in repos is: wxpython3.0 - 3.0.2.0+dfsg-1.3 and the bug is still there.

Revision history for this message
Vaclav Petras (wenzeslaus) wrote :

As a workaround, you can install the two following packages (or maybe just one of them):

python-wxgtk-webview3.0_3.0.2.0+dfsg-3
python-wxgtk3.0_3.0.2.0+dfsg-3

Download URLs for AMD64:

https://launchpad.net/ubuntu/+archive/primary/+files/python-wxgtk-webview3.0_3.0.2.0+dfsg-3_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/python-wxgtk3.0_3.0.2.0+dfsg-3_amd64.deb

Revision history for this message
pouns (pouns1) wrote :

This bug is still here in 16.04. Any chance it get fixed soon ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.