I had the same problem (with PostgreSQL) and decided to edit the trac-admin script (use "which trac-admin" to find the one to edit) to use "#!/usr/local/bin/python" instead of "#!/usr/bin/python". This got me past the project creation, however Trac web is still using /usr/lib instead of /usr/local/lib. Posted the issue to this forum last night. Good Luck, Lenny
On Monday, December 20, 2010 2:38:56 PM UTC-5, ming wrote: > Hi, > i'm trying to use the stable Trac version 0.12 on > CentOS release 5.4 (Final) > with Python 2.7.1 > > However, i ran into the error included below when i tried to creatd a > new Trac environment > TracError: Cannot load Python bindings for SQLite > > i suspect that is caused by two versions of Python installed in my > system > % /usr/local/bin/python -V > Python 2.7.1 > > % /usr/bin/python -V > Python 2.4.3 > > i should not touch the /usr/bin/python (2.4.3) installation since a > lot of system-related stuff depends on it. The 2.7.1 Python was > installed via "make altinstall" instead of "make install". For 2.7.1, > i don't need to bother with the SQLite bindings AFAIK. > > Any suggestion what the problem might be? Thanks. > > > ------------------------------------------------------------------------------------------ > > > # trac-admin /usr/local/trac/FOO initenv > Creating a new Trac environment at /usr/local/trac/FOO > > 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]> FOO > > 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 '/usr/local/trac/FOO' 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 > options=options) > File "build/bdist.linux-i686/egg/trac/env.py", line 221, in __init__ > self.create(options) > File "build/bdist.linux-i686/egg/trac/env.py", line 409, in create > DatabaseManager(self).init_db() > File "build/bdist.linux-i686/egg/trac/db/api.py", line 145, in > init_db > connector, args = self.get_connector() > File "build/bdist.linux-i686/egg/trac/db/api.py", line 195, in > get_connector > raise TracError(connector.error) > TracError: Cannot load Python bindings for SQLite > ------------------------------------------------------------------------------------------ > > > > > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/b3VQ_5hE8pQJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
