You are not logged in.

#1 2020-03-30 14:27:42

saw_mj
Member
Registered: 2017-06-12
Posts: 49

Error Related to pygtk installation

Hello all,

I'm trying to install CherryTree but when I do through YAY it gives me an error related to "pygtk" which is a dependency.

The last block of error message :


pango.c:8634:5: warning: ‘pango_engine_shape_get_type’ is deprecated [-Wdeprecated-declarations]
 8634 |     pyg_set_object_has_new_constructor(PANGO_TYPE_ENGINE_SHAPE);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/pango-1.0/pango/pango.h:31,
                 from pango.override:28:
/usr/include/pango-1.0/pango/pango-engine.h:238:7: note: declared here
  238 | GType pango_engine_shape_get_type (void) G_GNUC_CONST;
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:630: pango_la-pango.lo] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
Error making: pygtk

thanks in advance

Offline

#2 2020-03-30 14:32:24

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,371
Website

Re: Error Related to pygtk installation

Firstly, try it without yay.
Secondly, that output doesn't contain the actual error, if you still have trouble building directly with makepkg, use the --log flag and upload the whole thing to a pastebin.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2020-03-30 14:51:00

saw_mj
Member
Registered: 2017-06-12
Posts: 49

Re: Error Related to pygtk installation

Here is the Full log

PS: I couldn't Find the log argument within Yay so I piped the output to a file , hope that could make it clear.

https://pastebin.com/Tz1S8ypX

Last edited by saw_mj (2020-03-30 14:53:24)

Offline

#4 2020-03-30 14:56:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Error Related to pygtk installation

Of course you couldn't find the log option for yay.  Don't use yay:

WorMzy wrote:

Firstly, try it without yay.

But in this case, it's probably not relevant.  Pygtk is unmaintained.  It was dropped from the main repos and has never been patched up to work again.

Last edited by Trilby (2020-03-30 15:00:22)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2020-03-30 15:06:16

saw_mj
Member
Registered: 2017-06-12
Posts: 49

Re: Error Related to pygtk installation

Trilby wrote:

Of course you couldn't find the log option for yay.  Don't use yay:

WorMzy wrote:

Firstly, try it without yay.

But in this case, it's probably not relevant.  Pygtk is unmaintained.  It was dropped from the main repos and has never been patched up to work again.


Any idea how to get CherryTree installed then ?

Offline

#6 2020-03-30 15:12:07

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Error Related to pygtk installation

Your best idea would be to ask the CherryTree developers to not depend on a 10 year old no-longer-supported software.  Otherwise adopt and fix pygtk or figure out how to build python2-gtksourceview2 without pygtk (probably not possible).

This was raised upstream 4 years ago.  They are, allegedly, working on it.  As reported there, there is also a 'snap' of cherry tree which may work.

Last edited by Trilby (2020-03-30 15:16:16)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2020-03-30 17:24:24

saw_mj
Member
Registered: 2017-06-12
Posts: 49

Re: Error Related to pygtk installation

Thanks man really appreciate your help

Offline

#8 2020-03-31 16:42:35

adventurer
Member
Registered: 2014-05-04
Posts: 128

Re: Error Related to pygtk installation

I was able to install cherrytree-bin today. You have to install python2-gtksourceview2 first. This didn't work yesterday but today it does as pygtk was updated today. Thereafter cherrytree-bin can be installed without problems.

Offline

#9 2020-03-31 17:25:07

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Error Related to pygtk installation

It wasn't "updated" it was severely broken.  In the end it just packages an old version from the main repo archives.  If that works, get it direct rather than going through the nonsense in that PKGBUILD.

EDIT: nevermind, it was undone a minute ago by a TU to get rid of the absurd nonsense.

Last edited by Trilby (2020-03-31 17:26:39)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2020-03-31 23:58:39

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Error Related to pygtk installation

Not only that, I even looked at the upstream git repo for pygtk and discovered that someone committed a patch months ago, which fixes the build failure with current pango versions. So I went and fixed that for real, while I was at it. tongue


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#11 2020-04-01 01:01:41

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Error Related to pygtk installation

Did you test it?  It still fails here: build log from makepkg -s.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#12 2020-04-01 01:10:10

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Error Related to pygtk installation

It built in a clean chroot, and the patch I added caused the failing binding "find_shaper" to no longer be part of pygtk at all (and thus not fail).

You should get "patching file pango.defs" during prepare, which removes the code that failed to compile.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#13 2020-04-01 01:16:13

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Error Related to pygtk installation

Hmm, pango.c is not shipped in the source, because it is generated from pango.defs, however without makepkg -C it might somehow fail to notice it needs to be regenerated?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB