-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
any plans for a Windows build of pygobject #8
Comments
I'm not aware of any plans, but work to add Windows support would definitely be welcomed! Before this package can be built on Windows, its dependencies will need to be built on Windows. From what I see, To add Windows support, I've found that the best route is to start by emulating another package that already has Windows support. To choose one pretty much arbitrarily, |
I see that Pygobject and gstreamer are both available on msys2, but I'd like to get this on my conda environment also. |
Oh, hm. It's certainly worth giving the One thing to keep an eye out for is if the versions provided by the |
Well I cloned the |
Update: No success yet. I did get libffi, glib projects here built, but I can't get past atk, which I think is needed gobject-introspection. |
You may have already noticed this, but there is already a conda-forge atk feedstock that is currently disabled on Windows. Also as things get closer, there has been effort to include gtk in conda-forge, but we have gotten stuck trying to decide how to deal with the two major versions of the toolkit. |
No I didn't know. Thanks. |
Followup: Working on modifying glib-feedstock and gobject-introspection-feedstock for WIndows. I have a PR in for glib-feedstock and am ready to submit PR for gobject-introspection-feedstock.
Haven't figured out a way around this yet. (Also getting errors about glib-object.h not being found.) |
@pkgw , I just started looking over this issue again to see if I could make some progress while I'm taking a few days off over the holidays. I see that you got glib-feedstock built for Windows. Thanks so much! I did eventually get atk built with wingtk/gvsbuild with miniconda (not Anaconda - go figure), so maybe I can look into that. |
Thanks for pushing on this @tjwilli58 ! It looks like there may be some good news here. Newer versions of pygobject seem to have started using the Meson build system, which is a lot more cross-platform-friendly than the old one. If we start packaging the 3.30.x series and switch to Meson, adding in Windows support may be relatively easy. If I can find the time, I'll see if I can play around with this a bit. |
OK, but we still need to have |
That would be great. I've forked We have an application that uses pygobject and gstreamer at work, and we currently use PyGobject for Windows, but this has been stuck at python 3.4. In addition to wanting to update to python3.6+, I'd also like to get this in a conda environment. I've found that I can use msys2 to do this, but it would be nice to not have to multiple environments for everything. One more system to get approval from out IT people. |
Some notes-to-self:
|
I think I have this working! It will take some time for all of the pieces to fall into place, though, due to fun with issues such as conda-forge/glib-feedstock#40. |
This is great! I started trying to build
|
@tjwilli58 Thanks! That's a good start, although what happens nearly every time is that there's some subtle problem that needs working around. I've got a version of g-i that seems to work, so this isn't something you need to spend time on unless it's an area that you're actively interested in learning about how to do all this stuff. There is a lot of hard-won nitty-gritty knowledge that comes up as soon as anything goes wrong. |
@pkgw I am interested in learning this, but it does seem to be a bit of "black box/magic" to it. I'd like to be able to contribute, but finding the time and getting the right knowledge is a bit of a steep climb for me. (@joshdoe, I'm tagging you as an FYI that progress is being made on getting pygobject built for Windows on conda-forge. We still need gstreamer!) |
Current status: this is blocked on getting a new gobject-introspection published. I believe we need a new version of meson — macOS builds of the new introspection module are currently failing and I have traced the problem to mesonbuild/meson#4117, which was fixed in mesonbuild/meson#4187, which has not yet made it into a Meson release. |
Fix g-ir-scanner linking on GCC7 with dependent libraries
Woohoo! Thanks so much! |
I'm delighted to think that pygtk will be usable in anacoda - thanks! I feel like I'm missing something though. I installed pygobject with: But then when I try to use it:
|
@cmichal2 I'm 99% sure that the command you tried should work, but just to check, does the following fare any better? from gi.repository import GLib The For what it's worth, please be aware that while Python/GObject interaction should now be available on Windows, PyGtk is not, as per this comment I made on another issue. |
importing GLib as you suggest fails with same error message. Thanks for the pointer to the earlier gtk comment. That's too bad - I'd love to see an easy-to-install way to get pygtk running on windows (for teaching purposes). |
@cmichal2 , It looks like some work is being done on ticket #50, but it's not there yet. This is my primary reason for wanting pygobject built on conda for WIndows. Still needed is gstreamer-feedstock building on Windows. Have you thought about using pyqt instead of pygtk? |
I got the same DLL loading error as @cmichal2 . Any idea what the reason might be? I have VS2017, msys2 and cygwin installed. Do they have influences? |
Issue: Windows build
Just wondering if there are any plans of creating a build for Windows of pygobject. From its webpage, I see that it can be built with msys2, but is it possible to get that module installed under an anaconda python?
I haven't done this myself, but if you could give my some pointers, I'd be willing to give it a try.
I have msys2 installed. I also have VS2017 (Community), but I'm not very proficient in that either.
Thanks.
Environment (
conda list
):Details about
conda
and system (conda info
):The text was updated successfully, but these errors were encountered: