On 1/30/20 9:57 AM, Ken Moffat via blfs-support wrote:
On Thu, Jan 30, 2020 at 10:59:39AM +0000, Stuart via blfs-support wrote:
I have built the latest BLFS Gimp-2.10.14 and I get the following issue on
startup.
Has anyone got any suggestions has to what may be wrong ?
Thanks Stuart
Traceback (most recent call last):
? File "/usr/lib/gimp/2.0/plug-ins/spyro_plus/spyro_plus.py", line 22, in
<module>
??? import gimpui
? File "/usr/lib/gimp/2.0/python/gimpui.py", line 33, in <module>
??? import gtk, gobject, gimp, gimpcolor
? File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 40,
in <module>
??? from gtk import _gtk
? File
"/usr/lib/python3.8/site-packages/pycairo-1.18.2-py3.8-linux-x86_64.egg/cairo/__init__.py",
line 1, in <module>
??? from ._cairo import *? # noqa: F401,F403
? File
"/usr/lib/python3.8/site-packages/pycairo-1.18.2-py3.8-linux-x86_64.egg/cairo/_cairo.py",
line 7, in <module>
??? __bootstrap__()
? File
"/usr/lib/python3.8/site-packages/pycairo-1.18.2-py3.8-linux-x86_64.egg/cairo/_cairo.py",
line 6, in __bootstrap__
??? imp.load_dynamic(__name__,__file__)
ImportError:
/usr/lib/python3.8/site-packages/pycairo-1.18.2-py3.8-linux-x86_64.egg/cairo/_cairo.cpython-38-x86_64-linux-gnu.so:
undefined symbol: _Py_FalseStruct
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
Google found various matches for things like this over the years.
The most recent was because someone had installed some gimp-fu
scripts for a much older version of gimp. I assume that is not the
case for you ?
A rather older post on reddit suggested that an incompatible version
of cairo could cause this. We have moved to a development version
of cairo, I forget the reason why but I suspect it might be the
cause. I haven't made a new build with that version of cairo.
So, has anyone sucessfully run current gimp with current cairo ?
ĸen
I have successfully run the current GIMP with the latest Cairo, but I
don't have the latest PyCairo installed. Also, it seems to be linking to
python-3.8 on his system and not python-2.7, as far as I can tell based
off the error text.
Stuart, can you make sure that you've built PyCairo with GTK+-2 support
please? If using the existing instructions, make sure that you do this
instead (using PyCairo-1.18.2):
python2 setup.py build
(as root)
python2 setup.py install --optimize=1
For reference, the latest PyCairo (1.19.0) has removed support for
Python2 entirely, so there's a note on that page about building
pycairo-1.18.2 for Python2 and pycairo-1.19.0 for Python3.
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page