view changeset error: no attribute startswith

5 views
Skip to first unread message

Don

unread,
Jan 30, 2007, 6:16:21 PM1/30/07
to Trac Users
When trying to view a changeset I get an error;

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

I have a number of trac environments here but only one has this
problem.
All are using v.10.3 on Linux, Python2.4.

Any ideas? Thanks,

Trac[main] ERROR: 'array.array' object has no attribute 'startswith'
Traceback (most recent call last):
File "/sw/apps/python/lib/python2.4/site-packages/trac/web/main.py",
line 387, in dispatch_request
dispatcher.dispatch(req)
File "/sw/apps/python/lib/python2.4/site-packages/trac/web/main.py",
line 237, in dispatch
resp = chosen_handler.process_request(req)
File "/sw/apps/python/lib/python2.4/site-packages/trac/
versioncontrol/web_ui/changeset.py", line 254, in process_request
diff_args, diff_options)
File "/sw/apps/python/lib/python2.4/site-packages/trac/
versioncontrol/web_ui/changeset.py", line 479, in _render_html
for old_node, new_node, kind, change in get_changes():
File "/sw/apps/python/lib/python2.4/site-packages/trac/
versioncontrol/web_ui/changeset.py", line 302, in get_changes
new_node = repos.get_node(npath, rev)
File "/sw/apps/python/lib/python2.4/site-packages/trac/
versioncontrol/cache.py", line 107, in get_node
return self.repos.get_node(path, rev)
File "/sw/apps/python/lib/python2.4/site-packages/trac/
versioncontrol/svn_fs.py", line 348, in get_node
self.authz.assert_permission(posixpath.join(self.scope, path))
File "/sw/apps/python/lib/python2.4/posixpath.py", line 60, in join
if b.startswith('/'):
AttributeError: 'array.array' object has no attribute 'startswith'

Emmanuel Blot

unread,
Jan 30, 2007, 6:25:05 PM1/30/07
to trac-...@googlegroups.com
Which DB back-end are you using? MySQL?

On 1/31/07, Don <fi...@cs.utk.edu> wrote:
>
> When trying to view a changeset I get an error;
>
> AttributeError: 'array.array' object has no attribute 'startswith'
>
> I have a number of trac environments here but only one has this
> problem.
> All are using v.10.3 on Linux, Python2.4.


--
Manu

Don Fike

unread,
Jan 30, 2007, 8:03:49 PM1/30/07
to trac-...@googlegroups.com

Yes, using MySQL. I had updated the charset and collation to utf8, not
sure why this one was effected.
Upgraded to MySQL-python-1.2.2b2 and the issue has been fixed.

Thanks,

----------------------------------------------
Don Fike _/_/_/ _/_/_/ _/
ICL/UTK _/ _/ _/
fi...@cs.utk.edu _/ _/ _/
865-974-0531 _/_/_/ _/_/_/ _/_/_/
----------------------------------------------

"We're gonna see a brave new world where they run everyone a wire
and hook us all up to a grid. Yessir, a veritable age of reason"
-Ulysses Everett McGill-

Reply all
Reply to author
Forward
0 new messages