Skip to content

Instantly share code, notes, and snippets.

@shiumachi
Created December 28, 2013 09:42
Show Gist options
  • Save shiumachi/8157792 to your computer and use it in GitHub Desktop.
Save shiumachi/8157792 to your computer and use it in GitHub Desktop.
kaa を起動するとエラーを吐く
% kaa
Traceback (most recent call last):
File "/Users/sho/.virtualenvs/py3/bin/kaa", line 9, in <module>
load_entry_point('kaaedit==0.26.1', 'console_scripts', 'kaa')()
File "/Users/sho/.virtualenvs/py3/lib/python3.3/site-packages/pkg_resources.py", line 352, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/Users/sho/.virtualenvs/py3/lib/python3.3/site-packages/pkg_resources.py", line 2307, in load_entry_point
return ep.load()
File "/Users/sho/.virtualenvs/py3/lib/python3.3/site-packages/pkg_resources.py", line 2021, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/Users/sho/.virtualenvs/py3/lib/python3.3/site-packages/kaa/cui/main.py", line 8, in <module>
from kaa import options, version, consts, config
File "/Users/sho/.virtualenvs/py3/lib/python3.3/site-packages/kaa/config.py", line 3, in <module>
import sqlite3
File "/usr/local/Cellar/python3/3.3.1/Frameworks/Python.framework/Versions/3.3/lib/python3.3/sqlite3/__init__.py", line 23, in <module>
from sqlite3.dbapi2 import *
File "/usr/local/Cellar/python3/3.3.1/Frameworks/Python.framework/Versions/3.3/lib/python3.3/sqlite3/dbapi2.py", line 26, in <module>
from _sqlite3 import *
ImportError: dlopen(/Users/sho/.virtualenvs/py3/lib/python3.3/lib-dynload/_sqlite3.so, 2): Library not loaded: /usr/local/opt/sqlite/lib/libsqlite3.0.8.6.dylib
Referenced from: /Users/sho/.virtualenvs/py3/lib/python3.3/lib-dynload/_sqlite3.so
Reason: image not found
@shiumachi
Copy link
Author

この辺とかと関係する、homebrew 側の問題。
Homebrew/legacy-homebrew#22154
python 自体が sqlite に正しくリンクできていないので、python をリビルドするしかない。

$ brew uninstall python3
$ brew install python3
$ mkvirtualenv -p /usr/local/bin/python3 py3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment