osx - Python SQLite Wrapper apsw-3.7.16.2 failed to install in mac os x (10.7.5) -


failed install sqlite wrapper. installation helpful.

downloaded

installed sqlite3.version '2.6.0'

please find error log below-

sudo python setup.py install test running install running build running build_ext sqlite: using system sqlite include/libraries running install_lib running install_egg_info removing /library/python/2.7/site-packages/apsw-3.7.16.2_r1-py2.7.egg-info writing /library/python/2.7/site-packages/apsw-3.7.16.2_r1-py2.7.egg-info running test traceback (most recent call last): file "setup.py", line 857, in <module>  'win64hackvars': win64hackvars}  file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() file "setup.py", line 102, in run import tests  file "/users/tj/downloads/apsw-3.7.16.2-r1/tests.py", line 9, in <module> import apsw importerror: dlopen(/users/tj/downloads/apsw-3.7.16.2-r1/apsw.so, 2): symbol not found: _sqlite3_db_filename referenced from: /users/tj/downloads/apsw-3.7.16.2-r1/apsw.so expected in: flat namespace in /users/tj/downloads/apsw-3.7.16.2-r1/apsw.so 

it picking system sqlite shared library older version. macos tends ignore sqlite library want use , force using known system one. (many os components coredata depend on sqlite why force using known version.)

the easiest fix use command line specified in documentation. ensures private copy of sqlite embedded in extension , hence work.

http://apidoc.apsw.googlecode.com/hg/build.html#recommended

python setup.py fetch --all build --enable-all-extensions install test 

(i'm apsw author). btw there python-sqlite mailing list may find useful.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -