[Trac] Installing Trac on OS X 10.4 and SQLite

Jeffrey E. Forcier jforcier at strozllc.com
Fri Jun 17 15:55:40 CDT 2005


I know that in my case, pysqlite 2.x and pysqlite2 1.x had an API  
change (the former did not correspond to the Python DB API 2.0 spec,  
the latter did, which is what Trac wants). Is this the same API  
change that the pysqlite site references? I have no clue :) Can't  
hurt to try.

The only thing that prevents me from assuming that's the correct  
solution is that from the main pysqlite site, it seems like pysqlite  
1.x is *older* than pysqlite 2.x, but I got the impression that the  
conformity with the Python DB API 2.0 was a *newer* feature...

So confusing. :)

-Jeff

On Jun 17, 2005, at 4: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
>
>
> On Jun-17-05, at 1:21 PM, Mario Ruggier wrote:
>
>
>> Have you tried to import manually?
>>
>> $ python
>> Python 2.3 (#1, Sep 13 2003, 00:49:11)
>> [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
>> Type "help", "copyright", "credits" or "license" for more  
>> information.
>> >>> import sqlite
>> >>>
>>
>> Thanks for the comments... it really _is_ nice to hear that you  
>> find the nofink wiki doc useful! But thanks should also go to a  
>> number of others, as I realize looking at the history that there  
>> has been a few others adding notes and corrections... that's  
>> really appreciated, thanks guys.
>>
>> mario
>>
>>
>> On Jun 17, 2005, at 10:08 PM, Bryan Dyck wrote:
>>
>>
>>
>>> I have pysqlite installed (v2.03), and Tiger ships with SQLite  
>>> v3.1.3, so I'm not sure that that's the problem... pysqlite also  
>>> installed fine (or appeared to :).
>>>
>>> Bryan
>>>
>>>
>>> On Jun-17-05, at 12:58 PM, Jeffrey E. Forcier wrote:
>>>
>>>
>>>
>>>> Make sure you have the Python module 'py-sqlite' (or 'pysqlite'  
>>>> depending) and that you have SQLite 2.x and py-sqlite 2.0.3  
>>>> (pysqlite.org). Annoyingly, I can't help too much with manual  
>>>> installs of either as I use DarwinPorts on my Mac; I'm fairly  
>>>> sure you just need to unpack a tarball into /System/Frameworks/ 
>>>> Python.framework/Versions/2.4/lib/.../site-packages or similar.
>>>>
>>>> Good luck,
>>>> Jeff
>>>>
>>>> On Jun 17, 2005, at 3:45 PM, Bryan Dyck wrote:
>>>>
>>>>
>>>>
>>>>
>>>>> 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
>>>>>
>>>>>
>>
>> _______________________________________________
>> Trac mailing list
>> Trac at lists.edgewall.com
>> http://lists.edgewall.com/mailman/listinfo/trac
>>
>>
>
> _______________________________________________
> Trac mailing list
> Trac at lists.edgewall.com
> http://lists.edgewall.com/mailman/listinfo/trac
>


--
Jeffrey E. Forcier
Junior Developer, Research and Development
Stroz Friedberg, LLC
15 Maiden Lane, 12th Floor
New York, NY 10038
[main]212-981-6540 [direct]212-981-6546
http://www.strozllc.com

This message is for the named person's use only.  It may contain
confidential, proprietary or legally privileged information. No right to
confidential or privileged treatment of this message is waived or lost
by any error in transmission.  If you have received this message in
error, please immediately notify the sender by e-mail or by telephone at
212.981.6540, delete the message and all copies from your system and
destroy any hard copies.  You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this message if you are
not the intended recipient.



More information about the Trac mailing list