![bislinks's picture bislinks's picture](https://archive.virtualmin.com/system/files/styles/thumbnail/private/pictures/picture-8361-1579795924.png?itok=eXXnymyy)
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
Comments
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
Submitted by JamieCameron on Fri, 07/27/2012 - 19:10 Comment #3
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.
Installed 0.12.1.
It went on well without errors.
Thanks.
Submitted by JamieCameron on Sat, 07/28/2012 - 14:10 Comment #5
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.
Thanks again for your hard work.
You did what I thought of asking.
God bless.
Submitted by Issues on Mon, 08/13/2012 - 08:46 Comment #7
Automatically closed -- issue fixed for 2 weeks with no activity.