Edgewall Software
Modify

Ticket #4288 (closed defect: worksforme)

Opened 5 years ago

Last modified 5 years ago

AttributeError: 'array.array' object has no attribute 'islower'

Reported by: so1o Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.10.2
Severity: normal Keywords: needinfo
Cc:
Release Notes:
API Changes:

Description

I get this error when i try to access the installation..

my configuration:
apache_2.0.59
mysql-5.0.27
python-2.4.4
svn-1.4.2
trac-0.10.2
clearsilver-0.9.14

Traceback (most recent call last):
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 191, in dispatch
    req.perm = PermissionCache(self.env, req.authname)
  File "C:\Python24\Lib\site-packages\trac\perm.py", line 267, in __init__
    self.perms = PermissionSystem(env).get_user_permissions(username)
  File "C:\Python24\Lib\site-packages\trac\perm.py", line 231, in get_user_permissions
    for perm in self.store.get_user_permissions(username):
  File "C:\Python24\Lib\site-packages\trac\perm.py", line 118, in get_user_permissions
    if not action.islower() and action not in actions:
AttributeError: 'array.array' object has no attribute 'islower'

Attachments

trac.ini (2.3 KB) - added by so1o 5 years ago.
trac.ini

Download all attachments as: .zip

Change History

Changed 5 years ago by so1o

trac.ini

comment:1 Changed 5 years ago by mgood

  • Keywords needinfo added

What version of the Python MySQLdb library did you install? It looks like it may be returning an array instead of a string for that database query.

comment:2 Changed 5 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

I fixed the error..

i created the db with explicit collate set to utf8.. that fixed everything..

comment:3 Changed 5 years ago by eblot

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:4 Changed 5 years ago by eblot

  • Resolution set to worksforme
  • Status changed from reopened to closed
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.