Hi Ed,

I gave that a try, here were the results:

[graemeMBP:python/dabo/dabo] gjok% pythonActivePython 2.4.3 Build 11  
(ActiveState Software Inc.) based on
Python 2.4.3 (#1, Apr  3 2006, 18:07:14)
[GCC 4.0.1 (Apple Computer, Inc. build 5247)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> from distutils.sysconfig import get_python_lib
 >>> print get_python_lib()
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages
 >>>
[graemeMBP:python/dabo/dabo] gjok% sudo python -c "from  
distutils.sysconfig import get_python_lib; print  get_python_lib()"
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages



I commented out the whole try/except statements in dPref.py and just  
put in

from pysqlite2 import dbapi2 as sqlite

the result was then:

[graemeMBP:python/dabo/dabo] gjok% vi dabo/dPref.py
[graemeMBP:python/dabo/dabo] gjok% sudo python setup.py install
Traceback (most recent call last):
   File "setup.py", line 5, in ?
     from dabo.__version__ import version
   File "/Users/gjok/Desktop/downloads/python/dabo/dabo/dabo/ 
__init__.py", line 122, in ?
     from dabo.lib.logger import Log
   File "/Users/gjok/Desktop/downloads/python/dabo/dabo/dabo/lib/ 
logger.py", line 2, in ?
     from dabo.dObject import dObject
   File "/Users/gjok/Desktop/downloads/python/dabo/dabo/dabo/ 
dObject.py", line 9, in ?
     from dabo.dPref import dPref
   File "/Users/gjok/Desktop/downloads/python/dabo/dabo/dabo/ 
dPref.py", line 8, in ?
     from pysqlite2 import dbapi2 as sqlite
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/pysqlite2/dbapi2.py", line 27, in ?
     from pysqlite2._sqlite import *
ImportError: Failure linking new module: /Library/Frameworks/ 
Python.framework/Versions/2.4/lib/python2.4/site-packages/pysqlite2/ 
_sqlite.so: Symbol not found: _sqlite3_enable_shared_cache
   Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/site-packages/pysqlite2/_sqlite.so
   Expected in: dynamic lookup


Do I have the wrong version of sqlite (3.3.15?) or pysqlite (2.3.3?)

Stumped!

regards,

Graeme

On 12/04/2007, at 9:48 PM, Ed Leafe wrote:

> On Apr 12, 2007, at 1:16 AM, Graeme O'Keefe wrote:
>
>> However, in a standalone python session
>>>> from pysqlite2 import dbapi2 as sqlite
>> does not complain.
>>
>> Neither does
>>>> import pysqlite2.dbapi2
>>
>> So I can't work out what is at fault. Any ideas anyone?
>>
>> Should i be installing sqlite3?
>
>       sqlite3 is what Python 2.5 calls pysqlite2. When they bundled it
> into 2.5, they changed the name to be more consistent.
>
>       The code you quoted shows how we test for the presence of the code
> needed for SQLite support: either pysqlite2, for pre-Python 2.5
> installations, or sqlite3, for Python 2.5 or later.
>
>       The fact that you are getting different results depending on how you
> issue the import command suggests that you have more than one Python
> installed on the machine, and the one that is running Dabo does not
> have the SQLite stuff installed. To test this, start your standalone
> session, and enter the following commands:
>
> from distutils.sysconfig import get_python_lib
> print get_python_lib()
>
>       That will tell you where your site-packages directory is for this
> Python installation. Now try testing the python used by your 'sudo
> python setup.py install' command by running this:
>
> sudo python -c "from distutils.sysconfig import get_python_lib; print
> get_python_lib()"
>
>       If they are the same, then something else is wrong. Let me know what
> you find.
>
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com
>
>
>
> _______________________________________________
> Post Messages to: [EMAIL PROTECTED]
> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
> Searchable Archives: http://leafe.com/archives/search/dabo-users
> This message: http://leafe.com/archives/byMID/dabo-users/ 
> [EMAIL PROTECTED]
>


_______________________________________________
Post Messages to: [EMAIL PROTECTED]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to