TypeError: on initenv

26 views
Skip to first unread message

Don

unread,
Jan 10, 2013, 11:59:02 AM1/10/13
to trac-...@googlegroups.com
Using version 1.0 and running initenv I get the following error after entering te database connection string.
I have quite a few installations that were upgraded to vewrsion 1.0 but I can't seem to create a new environment.
I'm not sure how to overcome this error so any suggestions are welcome.

Thanks,

See error;

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 455, in do_initenv
    options=options)
  File "build/bdist.linux-x86_64/egg/trac/core.py", line 124, in __call__
    self.__init__(*args, **kwargs)
  File "build/bdist.linux-x86_64/egg/trac/env.py", line 281, in __init__
    self.create(options)
  File "build/bdist.linux-x86_64/egg/trac/env.py", line 572, in create
    DatabaseManager(self).init_db()
  File "build/bdist.linux-x86_64/egg/trac/db/api.py", line 239, in init_db
    connector.init_db(**args)
  File "build/bdist.linux-x86_64/egg/trac/db/mysql_backend.py", line 117, in init_db
    for stmt in self.to_sql(table, utf8_size=utf8_size):
  File "build/bdist.linux-x86_64/egg/trac/db/mysql_backend.py", line 166, in to_sql
    utf8_size=utf8_size))
  File "build/bdist.linux-x86_64/egg/trac/db/mysql_backend.py", line 130, in _collist
    limit_col = 767 / utf8_size
TypeError: unsupported operand type(s) for /: 'int' and 'NoneType'

Alexandre Franke

unread,
Jan 11, 2013, 8:29:10 AM1/11/13
to trac-...@googlegroups.com
Hi,

On Thu, Jan 10, 2013 at 5:59 PM, Don <fi...@cs.utk.edu> wrote:
[…]
> See error;
>
> Failed to create environment.
> unsupported operand type(s) for /: 'int' and 'NoneType'
> Traceback (most recent call last):
[…]

The full command line you use might be useful to solve your problem too.

--
Alexandre Franke
Reply all
Reply to author
Forward
0 new messages