[MacPorts] #30072: terminator does not work
MacPorts
noreply at macports.org
Thu Mar 24 06:05:23 UTC 2022
#30072: terminator does not work
--------------------------+------------------------
Reporter: f.calboli@… | Owner: ryandesign
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Resolution: worksforme | Keywords:
Port: terminator |
--------------------------+------------------------
Changes (by ryandesign):
* status: reopened => closed
* resolution: => worksforme
Comment:
This is a very old ticket and you've probably moved on from this by now,
but for anyone reading, I wanted to try to analyze what happened.
I don't think there's anything for us to fix here. I can't reproduce this
problem with terminator 1.0 now.
Replying to [comment:3 agwblack@…]:
> {{{
> >>> import pango
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/gtk-2.0/pango.so, 2): Library not loaded:
/opt/local/lib/libgobject-2.0.0.dylib
> Referenced from:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/gtk-2.0/pango.so
> Reason: Incompatible library version: pango.so requires version
3001.0.0 or later, but libgobject-2.0.0.dylib provides version 2801.0.0
> }}}
This seems to indicate that at the time you installed py27-pygtk, you had
a glib2 or glib2-devel that provided library version 3001.0.0 of
libgobject-2.0.0.dylib, but then you later downgraded to
libgobject-2.0.0.dylib 2801.0.0. MacPorts doesn't support downgrading
libraries and it shouldn't happen in the normal course of using MacPorts.
Maybe this happened because you switched from glib2-devel to an earlier
version of glib2, or maybe it happened because a third-party installer
overwrote your MacPorts glib2 or glib2-devel files with an earlier
version. Hard to know at this point.
> {{{
> >>> 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
> ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/gtk-2.0/gtk/_gtk.so, 2): Library not loaded:
/opt/local/lib/libatk-1.0.0.dylib
> Referenced from:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/gtk-2.0/gtk/_gtk.so
> Reason: Incompatible library version: _gtk.so requires version
20210.0.0 or later, but libatk-1.0.0.dylib provides version 3210.0.0
> }}}
Same story, except here with atk. We've never had an atk-devel port, so
that tells me it's the other scenario, where a third-party installer
overwrote your MacPorts files. The solution in that case is to deactivate
forcibly any affected ports (i.e. `sudo port -f deactivate atk`) and then
activate them again (`sudo port activate atk`—if you have multiple
versions installed you may need to specify which one, and you probably
want the latest one). This will unpack the correct files from the archive
again. If you don't know the full set of ports that were affected,
uninstalling all ports and reinstalling them can be an effective solution.
In the future, this problem can be avoided by not running installers that
overwrite MacPorts files. The Apple Installer has a Show Files menu option
which shows you what files will be installed where. I recommend using this
before running unfamiliar installers, though it doesn't always tell you
the parent directory that the files will go into. Sometimes the
installer's readme or introductory message will tell you. If you ever
encounter an installer that you can prove overwrote MacPorts files, please
report that problem to whoever made the installer so they can issue a
corrected installer that installs its files into a different place.
--
Ticket URL: <https://trac.macports.org/ticket/30072#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list