Re: [MacPorts] #12966: BUG: avahi cannot find Python module gtk
#12966: BUG: avahi cannot find Python module gtk -----------------------+---------------------- Reporter: vinc17@… | Owner: rhwood@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.5.2 Resolution: fixed | Keywords: -----------------------+---------------------- Comment (by kenneth.f.cunningham@…): Sorry to resurrect old, old bug, but I just ran into this installing avahi @0.6.31_13 on snow leopard with libc++. For those who may search here for information with the same issue, the problem in my case was cairo, which was installed without the +x11 variant. {{{ cairo @1.14.6_0+quartz-x11 (active) platform='darwin 10' archs='x86_64' }}} {{{ Python 2.7.12 (default, Jul 5 2016, 21:21:28) [GCC 4.2.1 Compatible Clang 3.7.1 (tags/RELEASE_371/final)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import gtk Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module> from gtk import _gtk File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/cairo/__init__.py", line 1, in <module> from _cairo import * ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/cairo/_cairo.so, 2): Symbol not found: _cairo_xlib_surface_get_depth Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/cairo/_cairo.so Expected in: /opt/local/lib/libcairo.2.dylib in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/cairo/_cairo.so }}}
upgrading cairo to include the x11 variant {{{ cairo @1.14.6_0+quartz+x11 platform='darwin 10' archs='x86_64' }}} solved the issue, python 2.7 then found the py-gtk module successfully, and the installation of avahi went along smoothly. -- Ticket URL: <https://trac.macports.org/ticket/12966#comment:19> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts