MacBook启动cherrytree报错解决

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上吧。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

sjwbcb

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值