Package Details: python2-wxpython3 3.0.2.0-13

Git Clone URL: https://aur.archlinux.org/python2-wxpython3.git (read-only, click to copy)
Package Base: python2-wxpython3
Description: Classic wxWidgets GUI toolkit for Python
Upstream URL: https://www.wxpython.org
Licenses: custom:wxWindows
Conflicts: wxpython
Provides: wxpython
Replaces: wxpython
Submitter: arojas
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 13
Popularity: 0.90
First Submitted: 2022-05-15 08:30 (UTC)
Last Updated: 2023-10-30 22:28 (UTC)

Required by (22)

Sources (3)

Pinned Comments

dreieck commented on 2022-05-26 20:47 (UTC)

This is the latest version of wxPython3, which some packages still need. Please do not flag out of date just because version 4.x is out; this is intentionally a version 3.x package.

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

dreieck commented on 2023-04-08 15:07 (UTC)

I also get the error

In file included from src/helpers.cpp:17:
include/wx/wxPython/wxPython_int.h:35:10: fatal error: wx/wx.h: No such file or directory
   35 | #include <wx/wx.h>
      |          ^~~~~~~~~
compilation terminated.

Regards!

Mailaender commented on 2022-12-28 21:43 (UTC)

Nope, it conflicts with wxwidgets3.0 because it has to build its own compatible version.

tallero commented on 2022-12-28 17:20 (UTC) (edited on 2022-12-28 20:49 (UTC) by tallero)

When building it searches for its same headers, so currently it needs wxwidgets3.0 in makedeps.

@Mailaender check this updated PKGBUILD.

Mailaender commented on 2022-12-21 21:38 (UTC)

I resolved all ABI incompatibility by building the included wxWidgets sources according to the original .spec file. Downside is that I now conflict with other wxWidgets 3.0 packages.

Mailaender commented on 2022-12-18 11:35 (UTC)

The problem was compiling against an incompatible wxWidgets API. I had to drop GTK 2 support as wxWidgets 3.0 as it is only built against GTK 3. We can make this a split again when the dependencies are updated.

dreieck commented on 2022-11-02 11:09 (UTC)

I have no idea. I disown, since I have no need anymore.

drws commented on 2022-11-01 12:34 (UTC)

Getting the same error when trying to build python2-wxpython3-gtk2 or python2-wxpython3-gtk3, GTK+ version doesn't matter. Also, it can be seen from the error output that GTK+2 part is probably the culprit behind this error.

We probably only need a wxwidgets3.0-gtk2 or wxwidgets3.1-gtk2 package, depending on whether this can be built at least against wxWidgets 3.1 or not.

Tio commented on 2022-09-04 15:06 (UTC)

Fails to build for me

creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/gtk
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -std=gnu++14 -Wno-error=format-security -Wno-error=register -Wno-error=deprecated-declarations -Wno-error=alloc-size-larger-than= -Wno-error=write-strings -Wno-error=return-local-addr -Wno-error=attributes -std=gnu++14 -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DSWIG_PYTHON_SILENT_MEMLEAK -DWXP_USE_THREAD=1 -UNDEBUG -Iinclude -Isrc -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/python2.7 -c src/helpers.cpp -o build/temp.linux-x86_64-2.7/src/helpers.o -O3 -pthread
In file included from src/helpers.cpp:17:
include/wx/wxPython/wxPython_int.h:35:10: fatal error: wx/wx.h: No such file or directory
   35 | #include <wx/wx.h>
      |          ^~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
==> ERROR: A failure occurred in build().
    Aborting...

CarstenG commented on 2022-08-20 12:57 (UTC) (edited on 2022-08-21 07:54 (UTC) by CarstenG)

I have the same error and could not fix it.

I tried/changed two things and gave up after that:

  • Create missing /usr/bin/wx-config-gtk3 manually, although all package dependencies were met.

  • Adapt the first (as in _build_gtk3()) configure script to set wx_minor_version=2 match with installed wxwidget version

After these steps, the first configure script ran without any warnings from wx-config.

But I ran in similar problems in

_build_gtk3() {
[...]
  cd wxPython
  python2 setup.py WX_CONFIG='/usr/bin/wx-config-gtk3' WXPORT=gtk3 UNICODE=1 build

I stopped here.

From my point of view I think this error is caused by a version mismatch between the installed wxwidgets version (3.2) and the wxPython version to be compiled (3.0.2). And unfortunately can only be solved with a downgrade of wxWidgets to 3.0.2.

My setup:

$ pacman -Q | grep wx
python-wxpython 1:4.1.1-3
wxwidgets-common 3.2.0-4
wxwidgets-gtk2 3.2.0-4
wxwidgets-gtk3 3.2.0-4

$ ll /usr/bin/wx-co*
lrwxrwxrwx 1 root root 35 18. Jul 20:18 /usr/bin/wx-config -> /usr/lib/wx/config/gtk3-unicode-3.2
lrwxrwxrwx 1 root root 35 19. Aug 14:57 /usr/bin/wx-config-gtk2 -> /usr/lib/wx/config/gtk2-unicode-3.2
lrwxrwxrwx 1 root root 35 19. Aug 17:38 /usr/bin/wx-config-gtk3 -> /usr/lib/wx/config/gtk3-unicode-3.2

$ cat src/build-gtk3/wxPython-src-3.0.2.0/wxPython/cfg_version.py
# wxPython version numbers used in build

VER_MAJOR        = 3      # The first three must match wxWidgets
VER_MINOR        = 0
VER_RELEASE      = 2
VER_SUBREL       = 0      # wxPython release num for x.y.z release of wxWidgets
VER_FLAGS        = ""     # release flags, such as prerelease or RC num, etc.

Regards, Carsten

PS: The PKGBUILD has a typo: shabeng -> shebang

dreieck commented on 2022-07-21 18:48 (UTC)

@IngoMeyer: Thanks for reporting.

Although I managed to fix that wx/wx.h: No such file or directory-error by making the build scripts use the correct variants of wx-config with correct version information, I just cannot make it build anymore against the wxwidgets-3.2 version. I think it requires wxWidgets 3.0.

I will work on that.