Trac not installing properly

This is the error i got:

Applying web server configuration .. .. done Now installing Trac version 0.12.3 ..

Project initialization install failed : Initenv for '/home/*/public_html/adserver/adserver' failed. Failed to create environment. unsupported operand type(s) for /: 'int' and 'NoneType' Traceback (most recent call last): File "build/bdist.linux-i686/egg/trac/admin/console.py", line 437, in do_initenv File "build/bdist.linux-i686/egg/trac/env.py", line 214, in init File "build/bdist.linux-i686/egg/trac/env.py", line 402, in create File "build/bdist.linux-i686/egg/trac/db/api.py", line 146, in init_db File "build/bdist.linux-i686/egg/trac/db/mysql_backend.py", line 106, in init_db File "build/bdist.linux-i686/egg/trac/db/mysql_backend.py", line 155, in to_sql File "build/bdist.linux-i686/egg/trac/db/mysql_backend.py", line 119, in _collist TypeError: unsupported operand type(s) for /: 'int' and 'NoneType' Initenv for '/home/bislinks/public_html/adserver/adserver' failed. 1 Traceback (most recent call last): File "build/bdist.linux-i686/egg/trac/admin/console.py", line 442, in do_initenv SystemExit: 1 Creating and Initializing Project

.. failed! See the error message above for the reason why. Applying web server configuration .. .. done

Status: 
Closed (fixed)

Comments

bislinks's picture
Submitted by bislinks on Fri, 07/27/2012 - 18:09 Pro Licensee

My initial settings for this installation were:

Trac Version: 0.12.3 DB: bislinks_trac_adserver SVN repo: ads Trac project name adserver install sub dir : adserver Trac admin user: bislinks

You might want to try installing the older 0.12.1 version of Trac - it has fewer dependencies, and so is less likely to run into problems like this.

bislinks's picture
Submitted by bislinks on Sat, 07/28/2012 - 01:24 Pro Licensee

Installed 0.12.1.

It went on well without errors.

Thanks.

I had a look into this some more, and found that the unsupported operand type error actually happens when the MySQL database Trac uses isn't using a UTF-8 character set! To work around this, I have released a new version of the Trac installer.

To get it, go to System Settings -> Script Installers -> Installer Updates, and click the Save button.

bislinks's picture
Submitted by bislinks on Mon, 07/30/2012 - 08:25 Pro Licensee

Thanks again for your hard work.

You did what I thought of asking.

God bless.

Automatically closed -- issue fixed for 2 weeks with no activity.