[Trac] Installing Trac on OS X 10.4 and SQLite

Bryan Dyck bdyck at mac.com
Fri Jun 17 14:45:35 CDT 2005


I hope this hasn't been covered somewhere horribly obvious - if it  
has, my apologies in advance: I recently upgraded to Tiger, and have  
been going through the interminable process that is making a fresh OS  
install usable :) - but I have run into a bit of a snag with Trac.

On my previous system, I had been running Apache2/Subversion/Trac as  
installed by fink, mostly due to laziness at the time. However, as  
nice as fink generally is, I decided this time around to ditch fink  
and build everything manually in order to have a bit more control  
over how things happen - many thanks to Mario Ruggier for his  
"TracOnOSxNoFink" wiki entry: OS X 10.4 has been different enough  
that it's helped avoid errors due to differences between it and  
10.3.x. The build/install process has gone swimmingly until I tried  
to set up my Trac environment again, and I received the following error:

Traceback (most recent call last):
   File "/usr/local/bin/trac-admin", line 30, in ?
     import sqlite
ImportError: No module named sqlite

Although Mario's wiki entry indicates to install SQLite, I wasn't  
sure if that would be necessary for OS X 10.4, as it ships with  
SQLite pre-installed so I skipped that part - apparently to my  
detriment. :) I poked around a bit and verified that yes, SQLite  
exists on my system, but it seems that 10.4's Python install is  
unaware of that fact (can you tell I'm not a Python hacker? ;). Is  
this correct, and if so, how do I correct it? Suggestions, hints or  
polite whacks with the Clue Stick would be appreciated.

Thanks!

Bryan


More information about the Trac mailing list