[Trac] Installing Trac on OS X 10.4 and SQLite
Bryan Dyck
bdyck at mac.com
Fri Jun 17 16:20:49 CDT 2005
Well well well... it seems pysqlite decided to install itself as
'pysqlite2'. Handy, that. *cough* Creating a symlink in site-packages
called 'sqlite' made the import error go away, but sqlite.connect()
still came back with "module sqlite has no attribute 'connect'". So,
I deleted pysqlite2 and installed pysqlite 1.1.6, and now everything
works just fine.
As for pysqlite's site, they could do a lot to clear up the confusion
between which version of the package corresponds to which API and
SQLite version if they'd throw a simple chart up... It also makes no
mention of whether pysqlite 2.x is backwards-compatible with v1.1.x.
Mind you, my programmer spidey-sense should've been screaming about
that, but I suppose it's just punishment for doing most of this
sometime in the wee hours of last night.. :)
Thanks for your help, Mario and Jeff - it's much appreciated!
Cheers,
b
On Jun-17-05, at 2:00 PM, Mario Ruggier wrote:
> Then pysqlite is not properly installed. Look in the site-packages
> and standard lib directories, see if they contain an sqlite
> package... on my old system they are at:
>
> /Library/Python/2.3
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3
>
> Otherwise install it wherever you want, and you can stick a .pyth
> file in your site-packages dir:
> http://bob.pythonmac.org/archives/2005/02/06/using-pth-files-for-
> python-development/
>
> Have no idea if the package is delivered with tiger, and you just
> have to click install it.
>
> mario
>
> On Jun 17, 2005, at 10:48 PM, Bryan Dyck wrote:
>
>
>> Doing a manual import in the python interpreter coughs up the same
>> "no module named sqlite" error... I also checked the output from
>> sys.path, and from my rather limited knowledge of Python, it looks
>> normal. Should I revert to pysqlite 1.1.x due to the API
>> differences between that and 2.x?
>>
>> Cheers,
>> b
>>
>
> _______________________________________________
> Trac mailing list
> Trac at lists.edgewall.com
> http://lists.edgewall.com/mailman/listinfo/trac
>
More information about the Trac
mailing list