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: 12
Popularity: 0.000000
First Submitted: 2022-05-15 08:30 (UTC)
Last Updated: 2023-10-30 22:28 (UTC)

Required by (12)

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 »

IngoMeyer commented on 2022-07-21 07:45 (UTC)

Compiling the package fails for me:

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.

Is this related to the restructuring of wxWidgets packages in the official repos?

bkb commented on 2022-07-17 11:14 (UTC)

All these wx things are basically broken. Some needs a newer version, some needs the old one. A long chain of dependency made it impossible to even switch from old to new or new to old, without uninstalling nearly the OS

dreieck commented on 2022-05-30 23:08 (UTC)

@lfom, thanks for mentioning.

I now have added gstreamer0.10-base to the dependencies.

Regarding building for GTK2 and GTK3: It is correct, this is a split package. The way how makepkg works, when building a split package (i.e. a $pkgbase which contains both the GTK2 and the GTK3 package), everything gets build, but after building sub-packages can be installed selectively.

Solution would be providing two seperate packages, but since everything is almost the same for both variants I decided to make it into one PKGBUILD which generated two packages.

lfom commented on 2022-05-29 18:13 (UTC) (edited on 2022-05-29 18:14 (UTC) by lfom)

@dreieck Thank you for maintaining the package. gstreamer0.10 is not enough, I had to install gstreamer0.10-base manually in order to be able to build it successfully. But even if I pick the GTK3 version it seems to build for GTK2:

==> Starting build()...
  -> Building for GTK2 ...
...
checking for GTK+ - version >= 2.6.0... yes (version 2.24.33)
checking if GTK+ is version >= 2.18... yes

dreieck commented on 2022-05-27 13:12 (UTC)

Thanks, @ShareDVI, for reporting.

I added gstreamer0.10 as dependency.

Similacrest commented on 2022-05-27 06:02 (UTC) (edited on 2022-05-27 06:16 (UTC) by Similacrest)

Missing dependency on gstreamer0.10-base, I think

checking for GST... configure: WARNING: GStreamer 0.10 not available, falling back to 0.8 checking for GST... configure: WARNING: GStreamer 0.8/0.10 not available. configure: error: GStreamer not available ==> ERROR: A failure occurred in build(). Aborting...

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.

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

Adopted the orphaned package and incorporated -Werror-related changes to the $CFLAGS and $CXXFLAGS by

  # Disable build flag that's causing build to fail.
  CFLAGS+=' -Wno-error=format-security'
  CXXFLAGS+=' -Wno-error=format-security'
  export CFLAGS
  export CXXFLAGS

To be safe, I also added -Wno-error-statements for other warnings I encountered.

Note that those changes need to go after the ./configure call.

Also, python2-setuptools was a needed makedependency.

I transformed it to a split package providing a GTK2 and a GTK3 variant.

Regards!