[chirp_devel] pygtk installed, but chirpw wants gtk
Hey folks, sorry if this is an obvious question. I'm fairly new to GTK development and only slightly more knowledgeable about Python.
I'm trying to build a Chirp flatpak. Flatpaks are sandboxed, cross-distribution packages that are gaining a bit of momentum in the GNOME/KDE worlds. While flatpaks ship Python GTK support, they use the newer GI and don't use the older module. I manually install pygtk 2.24.0, but it installs such that "import pygtk" works but "import gtk" doesn't.
I wonder if this means I'm doing the installation wrong, or are these two distinct modules? I wonder if chirpw might try importing pygtk if plain gtk fails?
Thanks.
On Sun, Mar 25, 2018 at 10:30 AM, Nolan Darilek via chirp_devel < chirp_devel@intrepid.danplanet.com> wrote:
I wonder if chirpw might try importing pygtk if plain gtk fails?
You could try that. You could also try symlinking gtk to pygtk in your generated site-packages directory to see if they truly are identical and compatible.
Tom
Thanks, figured it out. If pycairo isn't installed, pygtk fails to install an actual gtk module but still builds. I don't know in what situation that might be preferable to failing, but there it is. :)
On 03/25/2018 12:39 PM, Tom Hayward via chirp_devel wrote:
On Sun, Mar 25, 2018 at 10:30 AM, Nolan Darilek via chirp_devel <chirp_devel@intrepid.danplanet.com mailto:chirp_devel@intrepid.danplanet.com> wrote:
I wonder if chirpw might try importing pygtk if plain gtk fails?
You could try that. You could also try symlinking gtk to pygtk in your generated site-packages directory to see if they truly are identical and compatible.
Tom
chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers
participants (2)
-
Nolan Darilek
-
Tom Hayward