Getting Error: Failed to Create Environment when trying to setup Trac

855 views
Skip to first unread message

Caleb

unread,
Mar 29, 2012, 2:28:06 PM3/29/12
to Trac Users
I installed Trac using the easy_install command as described in their
instructions and upgraded to the latest stable version. I then
installed MySQL_python-1.2.2 however, the environment keeps failing
after I input the MySQL information. This may be a bug that we do not
know about. If they can point us in the correct way, we would
appreciate it. I have posted the commands that lead to the error
below.

Here is the error:

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

Jun Omae

unread,
Mar 30, 2012, 1:33:36 AM3/30/12
to trac-...@googlegroups.com
Hi,

It seems that your database is not configured with utf8 character set.
The Trac database must be configured with utf8 charset. Please see
http://trac.edgewall.org/wiki/MySqlDb#MySQL.

> --
> You received this message because you are subscribed to the Google Groups "Trac Users" group.
> To post to this group, send email to trac-...@googlegroups.com.
> To unsubscribe from this group, send email to trac-users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
>

--
Jun Omae <jun...@gmail.com> (大前 潤)

Reply all
Reply to author
Forward
0 new messages