3

I have a very weird problem, my 64 bit python works fine with sqlite3, there are no errors when I import sqlite3. However, my 32 bit python won't work, here's the error message. I installed python using homebrew, and I'm using the lastest version of OS X Lion and Xcode. Any help would be appreciated.

Edit: On my friend's computer, also a mac, sqlite3 works with both 32 bit and 64 bit python.

Python 2.7.2 (default, Mar 19 2012, 20:52:31) 
[GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.54)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
    from dbapi2 import *
  File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: dlopen(/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_sqlite3.so, 2): Symbol not found: _sqlite3_aggregate_context
  Referenced from: /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_sqlite3.so
  Expected in: dynamic lookup
Anil
  • 2,539
  • 6
  • 33
  • 42
lamba
  • 1,581
  • 5
  • 18
  • 29
  • http://stackoverflow.com/questions/1545479/force-python-to-forego-native-sqlite3-and-use-the-installed-latest-sqlite3-ver may help. – Katriel Mar 24 '12 at 10:49

0 Answers0