MacBook启动cherrytree报错解决
本来cherrytree用了好好的,用brew安装了下ffmpeg,结果把libffi.6.dylib升级为libffi.7.dylib了,cherrytree启动报错:
sjwmac:~ sjw$ Traceback (most recent call last):
File "./cherrytree", line 78, in <module>
f_main(args)
File "./cherrytree", line 49, in f_main
import main
File "/Users/sjw/programe/cherrytree-0.38.2/modules/main.py", line 22, in <module>
import gtk
File "/usr/local/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 30, in <module>
import gobject as _gobject
File "/usr/local/lib/python2.7/site-packages/gobject/__init__.py", line 26, in <module>
from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
File "/usr/local/lib/python2.7/site-packages/glib/__init__.py", line 22, in <module>
from glib._glib import *
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/glib/_glib.so, 2): Library not loaded: /usr/local/opt/libffi/lib/libffi.6.dylib
Referenced from: /usr/local/lib/python2.7/site-packages/glib/_glib.so
Reason: image not found
把libffi.7.dylib建链接为libffi.6.dylib也不行,
把libffi由升级后的3.3切换为旧的3.0.13
brew switch libffi 3.0.13
结果也不行
最后直接cp libffi.6.dylib库过来后启动正常:
cp /usr/local/Cellar/libffi/3.0.13/lib/libffi.6.dylib /usr/local/opt/libffi/lib/
尝试重新安装pygtk,结果报错,暂时没研究:
brew install pygtk
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "pygtk".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
ps:时隔多年技术的东东的都写到cherrytree上没分享出来,今天cherrytree突然打不开了,突然有点抓瞎,想想还是写到blog上吧。