christiangoltz / shaape

Shaape is an ascii art to image converter designed to be used with asciidoc.
Other
106 stars 19 forks source link

Cannot find python bindings for pango and pangocairo #16

Open MarkCallow opened 9 years ago

MarkCallow commented 9 years ago

setup.py is looking for these. I can't find them on the net. The only hits suggest that they are included in pygtk but that hasn't been touched in 4 years - it recommends using PyGObject instead - and only seems to be installable on Windows. There is no indication that PyGObject includes these bindings.

I am trying to install shaape on OS X Yosemite.

Where can I find and how can I install these dependencies?

251 commented 9 years ago

You can try some untested hacks patches of my branch: 251/shaape@bc8e07fb4235a7cc6401ab4f8159466ec29cdf67

christiangoltz commented 9 years ago

I can confirm that I have the same problem and that the patch from above solves it for me. Using pygobject is recommended with gtk3 now, while some while ago I was using pygtk with gtk2. If you can confirm that it solves the issue for you, I will pull in the change.

MarkCallow commented 9 years ago

I have only just been able to make time to try this. Unfortunately it does not work. I still get the error that some bindings, specifically the pango binding, could not be found.

What is the gi.repository? Is there something I need to do to make my python installation aware of it?

Ultimately what I want to do is generate SVG from the Ascii art input. In order to do that are all these cairo and pango dependencies really necessary? That is, is it possible to make a version of Shaape that can ony output SVG and does not have these dependencies? As far as I can see no drawing needs to be done to generate SVG; Shaape would merely be transforming its input language into another language, SVG.

251 commented 9 years ago

What is the gi.repository?

That's from pygobject.

are all these cairo and pango dependencies really necessary

Yes.

input language into another language

Maybe: https://bitbucket.org/dhobsd/asciitosvg