32 bit Python not working with sqlite3

I have a very strange problem, my 64 bit python works fine with sqlite3, no errors when importing sqlite3. However my 32bit python won't work, here is the error message. I have installed python using homebrew and I am using the latest OS X Lion and Xcode. Any help would be appreciated.

Edit: on my other computer, also a mac, sqlite3 works with both 32bit and 64bit 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

      

+3
python sqlite3 macos


source to share


No one has answered this question yet

See similar questions:

thirty
Force Python will ditch native sqlite3 and use the (installed) latest sqlite3

or similar:

5504
Does Python have a ternary conditional operator?
5231
What are metaclasses in Python?
4473
Calling an external command in Python
3790
How can I safely create a subdirectory?
3602
Does Python have a substring method "contains"?
3119
What is the difference between Python list methods that are appended and expanded?
2818
Finding the index of an element by specifying the list that contains it in Python
4
OS X AppEngine - ImportError: No module named _sqlite3
1
homebrew python @ 2 and python provide broken sqlite3
0
jupyter in virtualenviroment sys.path



All Articles
Loading...
X
Show
Funny
Dev
Pics