Re: [Trac] Cannot load Python bindings for SQLite
On 24/05/2011 14:27, Matthew Caron wrote: On 05/24/2011 09:05 AM, Phil Ewington - iModel wrote: Check the permissions on trac.ini. Make sure the webserver can read it. OK, trac.ini is now owned by apache and chmoded to 600. Initial error now gone but can't save preferences, I assume this is permissions too, will have a dig around thanks for your help. Make sure the webserver can write to the parent directory as well. I think it creates a temp file then does a copy, so the replacement is atomic. All good now, thanks for all your help! -- Phil Ewington *Technical Director* iModel Ltd. *M* : 07969 925697 *E* : phil.ewing...@i-model.co.uk mailto:phil.ewing...@i-model.co.uk *W* : www.i-model.co.uk http://www.i-model.co.uk Confidential Information (C) Copyright 2007 iModel Ltd. All rights reserved. This message is intended for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, dissemination of this communication is prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately by replying to sender. -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en. inline: logo.gif
Re: [Trac] Cannot load Python bindings for SQLite
On 05/24/2011 05:50 AM, Phil Ewington - iModel wrote: Weird, I configured my project to use Postgres! Why is this error occurring and how do I go about fixing it so that Trac uses Postgres and not SQLite. I did check trac.ini and the database parameter is correctly set as postgres://user:passwd@localhost/project Check the permissions on trac.ini. Make sure the webserver can read it. -- Matthew Caron Build Engineer Sixnet | www.sixnet.com O +1 518 877 5173 Ext. 138 F +1 518 602 9209 matt.ca...@sixnet.com -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Cannot load Python bindings for SQLite
On 24/05/2011 13:24, Matthew Caron wrote: On 05/24/2011 05:50 AM, Phil Ewington - iModel wrote: Weird, I configured my project to use Postgres! Why is this error occurring and how do I go about fixing it so that Trac uses Postgres and not SQLite. I did check trac.ini and the database parameter is correctly set as postgres://user:passwd@localhost/project Check the permissions on trac.ini. Make sure the webserver can read it. OK, trac.ini is now owned by apache and chmoded to 600. Initial error now gone but can't save preferences, I assume this is permissions too, will have a dig around thanks for your help. - Phil. -- Phil Ewington *Technical Director* iModel Ltd. *M* : 07969 925697 *E* : phil.ewing...@i-model.co.uk mailto:phil.ewing...@i-model.co.uk *W* : www.i-model.co.uk http://www.i-model.co.uk Confidential Information (C) Copyright 2007 iModel Ltd. All rights reserved. This message is intended for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, dissemination of this communication is prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately by replying to sender. -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en. inline: logo.gif
Re: [Trac] Cannot load Python bindings for SQLite
On 05/24/2011 09:05 AM, Phil Ewington - iModel wrote: Check the permissions on trac.ini. Make sure the webserver can read it. OK, trac.ini is now owned by apache and chmoded to 600. Initial error now gone but can't save preferences, I assume this is permissions too, will have a dig around thanks for your help. Make sure the webserver can write to the parent directory as well. I think it creates a temp file then does a copy, so the replacement is atomic. -- Matthew Caron Build Engineer Sixnet | www.sixnet.com O +1 518 877 5173 Ext. 138 F +1 518 602 9209 matt.ca...@sixnet.com -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
RE: [Trac] Cannot load Python bindings for SQLite
From the TracInstall wiki page for 0.12: SQLite 2.x is no longer supported. For SQLite 3.x, the pysqlite 1.1.x bindings are also no longer supported, use pysqlite 2.x. It looks like your python-sqlite bindings are not new enough. -Original Message- From: trac-users@googlegroups.com [mailto:trac-us...@googlegroups.com] On Behalf Of alexus Sent: Tuesday, July 27, 2010 4:07 PM To: trac-users@googlegroups.com Subject: [Trac] Cannot load Python bindings for SQLite i did following steps to install setuptools + trac 85 wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg#md5=bd639f9b0eac4c42497034dec2ec0c2b 86 sh setuptools-0.6c11-py2.4.egg 87 easy_install Trac now i'm trying to create new env and i'm running into problem, can someone help me? [r...@pvrep01 dc]# trac-admin . initenv Creating a new Trac environment at /var/www/html/trac/dc Trac will first ask a few questions about your environment in order to initialize and prepare the project database. Please enter the name of your project. This name will be used in page titles and descriptions. Project Name [My Project] Please specify the connection string for the database to use. By default, a local SQLite database is created in the environment directory. It is also possible to use an already existing PostgreSQL database (check the Trac documentation for the exact connection string syntax). Database connection string [sqlite:db/trac.db] Creating and Initializing Project Initenv for '/var/www/html/trac/dc' failed. Failed to create environment. Cannot load Python bindings for SQLite Traceback (most recent call last): File build/bdist.linux-i686/egg/trac/admin/console.py, line 413, in do_initenv File build/bdist.linux-i686/egg/trac/env.py, line 221, in __init__ File build/bdist.linux-i686/egg/trac/env.py, line 409, in create File build/bdist.linux-i686/egg/trac/db/api.py, line 145, in init_db File build/bdist.linux-i686/egg/trac/db/api.py, line 195, in get_connector TracError: Cannot load Python bindings for SQLite Initenv for '/var/www/html/trac/dc' failed. 1 Traceback (most recent call last): File build/bdist.linux-i686/egg/trac/admin/console.py, line 418, in do_initenv SystemExit: 1 [r...@pvrep01 dc]# [r...@pvrep01 dc]# rpm -q sqlite sqlite-3.3.6-5 [r...@pvrep01 dc]# rpm -q python-sqlite python-sqlite-1.1.7-1.2.1 [r...@pvrep01 dc]# any ideas? thanks! -- http://alexus.org/ -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en. -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Cannot load Python bindings for SQLite
i just installed it with rpm On Wed, Jul 28, 2010 at 10:17 AM, Mike Hanby mha...@uab.edu wrote: From the TracInstall wiki page for 0.12: SQLite 2.x is no longer supported. For SQLite 3.x, the pysqlite 1.1.x bindings are also no longer supported, use pysqlite 2.x. It looks like your python-sqlite bindings are not new enough. -Original Message- From: trac-users@googlegroups.com [mailto:trac-us...@googlegroups.com] On Behalf Of alexus Sent: Tuesday, July 27, 2010 4:07 PM To: trac-users@googlegroups.com Subject: [Trac] Cannot load Python bindings for SQLite i did following steps to install setuptools + trac 85 wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg#md5=bd639f9b0eac4c42497034dec2ec0c2b 86 sh setuptools-0.6c11-py2.4.egg 87 easy_install Trac now i'm trying to create new env and i'm running into problem, can someone help me? [r...@pvrep01 dc]# trac-admin . initenv Creating a new Trac environment at /var/www/html/trac/dc Trac will first ask a few questions about your environment in order to initialize and prepare the project database. Please enter the name of your project. This name will be used in page titles and descriptions. Project Name [My Project] Please specify the connection string for the database to use. By default, a local SQLite database is created in the environment directory. It is also possible to use an already existing PostgreSQL database (check the Trac documentation for the exact connection string syntax). Database connection string [sqlite:db/trac.db] Creating and Initializing Project Initenv for '/var/www/html/trac/dc' failed. Failed to create environment. Cannot load Python bindings for SQLite Traceback (most recent call last): File build/bdist.linux-i686/egg/trac/admin/console.py, line 413, in do_initenv File build/bdist.linux-i686/egg/trac/env.py, line 221, in __init__ File build/bdist.linux-i686/egg/trac/env.py, line 409, in create File build/bdist.linux-i686/egg/trac/db/api.py, line 145, in init_db File build/bdist.linux-i686/egg/trac/db/api.py, line 195, in get_connector TracError: Cannot load Python bindings for SQLite Initenv for '/var/www/html/trac/dc' failed. 1 Traceback (most recent call last): File build/bdist.linux-i686/egg/trac/admin/console.py, line 418, in do_initenv SystemExit: 1 [r...@pvrep01 dc]# [r...@pvrep01 dc]# rpm -q sqlite sqlite-3.3.6-5 [r...@pvrep01 dc]# rpm -q python-sqlite python-sqlite-1.1.7-1.2.1 [r...@pvrep01 dc]# any ideas? thanks! -- http://alexus.org/ -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en. -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en. -- http://alexus.org/ -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.