Error Cannot Load Python Bindings For Sqlite
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, https://trac.edgewall.org/ticket/9350 helping each other. Join them; it only takes a minute: Sign up Cannot load Python bindings for MySQL - Trac up vote 4 down vote favorite I recently started getting the following error in my trac install: Cannot load Python bindings for MySQL I, unfortunately, had to reinstall MySQL, and, afterwards, I started getting those issues. I http://stackoverflow.com/questions/11398957/cannot-load-python-bindings-for-mysql-trac have spent the last hour trying to track something down on Google, but I couldn't get anything to work. I made sure MySQL is up and running correctly. I created a new MySQL user specific to trac. I made sure all of the packages are there there. Nothing. Here's my dkpg (I run Ubuntu Maverick): dpkg -l | grep python libapache2-mod-python libapache2-mod-python-doc libpython2.6 libpython3.1 python python-central python-docutils python-genshi python-imaging python-lxml python-minimal python-mysqldb python-pkg-resources python-pybabel python-pygments python-roman python-setuptools python-subversion python-support python-tz python2.6 python2.6-minimal python3.1 python3.1-minimal If anyone has any ideas as to what it could be, I'd be forever grateful. python mysql trac share|improve this question asked Jul 9 '12 at 16:07 Sebastian Frohm 325310 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote That error should result when Trac tries to do "import MySQLdb" but it fails. You do have the right package in place which should provide that module, but for some reason it's failing. To find out why, you should look
() googlegroups ! com [Download message RAW] I had the same problem (with PostgreSQL) and decided to edit the trac-admin script (use "which http://marc.info/?l=trac&m=135005903618196 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 cannot load 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 cannot load 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 exa