Dennis do you have a running binary? If not then I will just re-mark gtk-3.22 as "dead on arrival" again like 3.20 (for now) and consequently delay the release further or maybe releasing but using gtk 3.18.
Sorry didn't mean to make people worry, I just felt a bit out of sync after sticking with 3.18 for a long time so I'm losing a bit confidence when build newest gtk :D I just checked fedora cross that their binary has same issue (at least on W10 64bit).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hmm looks like big changes in gdkwin32 since gtk 3.20 still break some libraries: for ex clutter-gtk, adg and scintilla. Glib 2.50 has utf8 stderr print issue as well. But overall it still usable... I think
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For commandline option I try addressing this in rev11, for pygi 3.22 I might not release it fully (yet) but with just gtk because gdk 3.22 and glib 2.50 break more libraries than I thought.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sorry this is pathetic, but I still have no idea how to use gcc against vc 2015 runtime which used by python 3.5 or later, and with gtk 3.22 still break clutter-gtk and with upstream move to gtk4, there will be hiatus on pygobjectwin32 releases as well.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
regrets I'm not familiar with that toolchain either. worried that this will impact lots of dependent projects though. just a guess - is moving to a mingw environment a pathway?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I have managed to build pygobject and pycairo using the build scripts from https://github.com/guruDanny67/gvsbuild. The build scripts use VS Build tools (vs2015 or vs2017). I used the 'ed2018' branch to build pygobject libs and includes, and setup.py for pygobject from the pypi page (https://pypi.org/project/PyGObject/#files). It seems to work fine, so this might help you.
Cheers, Tom
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've tried following your steps and I now have both pycairo-1.17.1-py3.6-win-amd64.egg and PyGObject-3.28.3-py3.6-win-amd64.egg.
I've tried easy_install-ing these egg's and now python can import gi but gi.gi.require_version("Gtk", "3.0") fails with ValueError: Namespace Gtk not available
Also, I can run gtk_demo.exe fine from GTK's build bin directory.
Does this ring a bell? Can you give a bit more details on how you set it up once you had the libraries built?
Thanks!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need to figure this out too, as well as gst-python. GStreamer is a backend for a beets plugin I want to use, and I'd prefer to use GStreamer for its large amount of file types it supports. Any info you could give would be very helpful indeed.
Last edit: Blake Sinnett 2018-10-15
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello @Stav!
It's been a while, but I think that you also have to build the gobject-introspection package, and add your \gtk-build\gtk\Win32\release\bin directory to the path.
Last edit: Tomislav Tustonic 2018-10-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello again!
I tried rebuilding again, this time using master branch from https://github.com/wingtk/gvsbuild (the guruDanny67 I used before is a fork of this repo). This one seems to be much easier than before. I added two new cmd line parameters: --enable-gi and --gtk3-ver 3.22 and just built gtk3-full. I already had my Windows setup .exe and/or wheel files for PyCairo and PyGobject, and after I installed these, simple tests work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the head-ups.
I'd start version 3.22 once gstreamer reached version 1.10 to make things synced.
I will think about the unattended method too.
Cool, Thanks for the consideration :)
FYI: GStreamer 1.10.0 was released on 1st November 2016. :)
https://gstreamer.freedesktop.org/releases/1.10/
Sorry guys, when I tried gtk 3.22.2 I always get:
gdk_display_get_device_manager: assertion 'GDK_IS_DISPLAY (display)' failed
I know gdk_display_get_device_manager was deprecated in 3.20 but I wonder if I made mistake here?
To be precise segfault at 0x710f8597 in libgdk-3-0!gdk_win32_drag_context_get_type ()
If you provided a repo with all needed sources and some instructions how you build from them, I would be happy to help.
Dennis do you have a running binary? If not then I will just re-mark gtk-3.22 as "dead on arrival" again like 3.20 (for now) and consequently delay the release further or maybe releasing but using gtk 3.18.
Sorry didn't mean to make people worry, I just felt a bit out of sync after sticking with 3.18 for a long time so I'm losing a bit confidence when build newest gtk :D I just checked fedora cross that their binary has same issue (at least on W10 64bit).
it seems gtk 3.22 is the last gtk3... :(
I hope they make some fixes before jump to gtk4
All right the segfault was fixed in 3.22.5!
Excellent, thanks for considering this :)
Hmm looks like big changes in gdkwin32 since gtk 3.20 still break some libraries: for ex clutter-gtk, adg and scintilla. Glib 2.50 has utf8 stderr print issue as well. But overall it still usable... I think
For commandline option I try addressing this in rev11, for pygi 3.22 I might not release it fully (yet) but with just gtk because gdk 3.22 and glib 2.50 break more libraries than I thought.
https://sourceforge.net/projects/pygobjectwin32/files/pygi-slimgtk-3.22.7z/download
I tried pygi-slimgtk-3.22.7z with WinPython-64bit-3.5.2.3, but "import gi" makes python crash.
reproduced, at first I forgot to patch pyconfig.h for mingw64 but it still crashed for 64bit python. I've removed the file above.
Hey, could you share how you compiled the python bindings on windows?
https://github.com/GNOME/pygobject
thanks
Hi - wondering when we might see a release supporting python 3.6 now? am dependent upon this for a project.. thanks!
sorry this is pathetic, but I still have no idea how to use gcc against vc 2015 runtime which used by python 3.5 or later, and with gtk 3.22 still break clutter-gtk and with upstream move to gtk4, there will be hiatus on pygobjectwin32 releases as well.
regrets I'm not familiar with that toolchain either. worried that this will impact lots of dependent projects though. just a guess - is moving to a mingw environment a pathway?
Hello
I have managed to build pygobject and pycairo using the build scripts from https://github.com/guruDanny67/gvsbuild. The build scripts use VS Build tools (vs2015 or vs2017). I used the 'ed2018' branch to build pygobject libs and includes, and setup.py for pygobject from the pypi page (https://pypi.org/project/PyGObject/#files). It seems to work fine, so this might help you.
Cheers, Tom
Hi @fritfrut, thanks for the helpful comment.
I've tried following your steps and I now have both
pycairo-1.17.1-py3.6-win-amd64.egg
andPyGObject-3.28.3-py3.6-win-amd64.egg
.I've tried
easy_install
-ing these egg's and now python canimport gi
butgi.gi.require_version("Gtk", "3.0")
fails withValueError: Namespace Gtk not available
Also, I can run
gtk_demo.exe
fine from GTK's buildbin
directory.Does this ring a bell? Can you give a bit more details on how you set it up once you had the libraries built?
Thanks!!
I need to figure this out too, as well as gst-python. GStreamer is a backend for a beets plugin I want to use, and I'd prefer to use GStreamer for its large amount of file types it supports. Any info you could give would be very helpful indeed.
Last edit: Blake Sinnett 2018-10-15
I can't help about GStreamer, sorry. It was my primary reason to build all this, but I couldn't make gst-python work.
Hello @Stav!
It's been a while, but I think that you also have to build the
gobject-introspection
package, and add your\gtk-build\gtk\Win32\release\bin
directory to the path.Last edit: Tomislav Tustonic 2018-10-16
Hello again!
I tried rebuilding again, this time using master branch from https://github.com/wingtk/gvsbuild (the guruDanny67 I used before is a fork of this repo). This one seems to be much easier than before. I added two new cmd line parameters:
--enable-gi
and--gtk3-ver 3.22
and just builtgtk3-full
. I already had my Windows setup .exe and/or wheel files for PyCairo and PyGobject, and after I installed these, simple tests work.