[Trac] Re: SQLite Error / Trac 0.9b2 (Solved)

Christian Nelson cnelson at slac.com
Mon Oct 17 19:49:35 CDT 2005


I doubled checked the links, and there is a pysqlite2/dbapi2.py file in 
the site-packages directory.  So that's not the problem.

I ran the test-pysql script, and it blew up because it couldn't find the 
sqlite libs.  I checked, and they live under /usr/local/lib, which isn't 
including the the ldconfig path by default.

Adding an entry in ld.so.config.d so that /usr/local/lib is scanned 
fixed the problem, and all is working well now.

Thanks again!
Christian

Andras Budinszky wrote:
> Christian, you are simply missing the SQLite python bindings or you do 
> not have them symlinked in to your python site-packages directory. To 
> get the bindings you can go to http://initd.org/tracker/pysqlite. If you 
> do not install it to the regular python library location then you need 
> to find your python site-packages location (i.e.):
> /usr/local/lib/python2.3/site-packages
> 
> Now add a symlink named 'pysqlite2' to the above dir that points to the 
> directory that contains your dbapi2.py file.
> 
> You should read over the 
> http://projects.edgewall.com/trac/wiki/TracInstall page for installation 
> requirements.
> 
> Andras
> 
> On Oct 17, 2005, at 4:06 PM, Christian Nelson wrote:
> 
>> Greetings,
>>
>> I'm installing trac on a new server, and I'm getting an error after 
>> everything is installed and I run trac-admin.
>>
>> > trac-admin /home/trac/test initenv
>>
>> I get to the templates directory question, and after pressing return 
>> to accept the default, I get this error:
>>
>> "Failed to create environment. global name 'sqlite' is not defined"
>>
>> The most recent call is from trac/scripts/admin.py line 111.
>>
>> I've tried both pysqlite 1.1.6 and 2.0.4.  These are all of my 
>> dependent packages and versions:
>>
>>   Python 2.3.4 (RPM including devell and xml)
>>   Subversion 1.1.4 (RPM)
>>   SWIG 1.3.21 (RPM)
>>   Clearsilver 0.10.1 (from source)
>>   SQLite 3.2.7 (from source)
>>   PySQLite 1.1.6 and 2.0.4 (from source)
>>   Trac 0.9b2 (from source)
>>
>> This is on a Red Hat Enterprise Linux 4.1 platform.
>>
>> I'm cocming from the Java development world, and don't know squat 
>> about Python... it simply seems like python can't find sqlite, but I 
>> don't know what to wire up or configure to fix that.
>>
>> Any help would be greatly appreciated!
>>
>> Cheers,
>> Christian
>>
>> _______________________________________________
>> Trac mailing list
>> Trac at lists.edgewall.com
>> http://lists.edgewall.com/mailman/listinfo/trac
>>
>>



More information about the Trac mailing list