full of … these

Trac detected an internal error: AttributeError: ‘NoneType’ object has no attribute ‘replace’

Posted: February 17th, 2010 | Author: | Filed under: howto, linux | Tags: , , , , | No Comments »

I was trying to fix the error from the title for a few months now.

It was about using tracdownloader plugin from: http://trac-hacks.org/wiki/TracDownloaderPlugin

I have applied the patch it worked, but it stopped.
I have tried almost everything, like other linux distro or python2.5 or python2.6.

My mistake was in trac.db, the default sqlite database of trac.

When I finally decided to manually import the tables from the old database into a new one: downloader_category, downloader_downloaded, downloader_downloaded, downloader_release.
When I had to import downloader_release tables rows I have noticed that the last one from the dump is:

INSERT INTO downloader_file VALUES(19,7,NULL,NULL,NULL,NULL,1261067753.63897,NULL);

I have no ideea how that row was added there, but, after removing that one from the original database tracdownloader start to work again.

So, next time you encounter this error verify you code to be correct, and after that, the database.

Leave a Reply