Team Chat Logs

April 10, 2010

2010 3
Mo Tu We Th Fr Sa Su
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

[05:23:59.418307]<afranke>hi
[05:25:08.557204]<afranke>is Posterity dead :/ ?
[05:57:40.410900]<hasienda>Get this here in a development env with many plugins:
[05:57:48.230969]<hasienda> "TypeError: _validate_ticket() takes exactly 3 arguments (4 given)"
[05:58:02.708011]<hasienda>Can I see the invalid input anywhere. Disabling one plugin after the other would be a real mess, so seeking other ways to debug. Any hints?
[05:59:18.719785]<hasienda>Already checked: same tracd works without hassle in parallel with fresh env.
[06:01:00.651676]<hasienda>... without additional plugins, so I guess, trouble does come from plugin. Can't imagine, that it could be pure (miss)configuration.
[06:03:49.722910]<retracile>hasienda: pastebin the full traceback
[06:04:01.641572]<hasienda>Ah, and it all started after upgrade of trac-012dev from r9115 to r9443 (current) and corresponding db-update. Looks like some plugins need a fix for conversion of timestamp to microsecond and other recent compatibility braking changes.
[06:04:16.299170]<hasienda>retracile: Oh, sure, in a minute.
[06:08:37.283826]<hasienda>retracile: Here it is: http://dpaste.com/181668/
[06:09:54.214449]<hasienda>retracile: What I do is exactly 1) call an existing ticket 2) expand edit section 3) push preview or apply (without doing any changes)
[06:12:02.206572]<hasienda>retracile: I have developer tools here too, does this help? It's only that it has an owful lot of information so that I often can't find what I'm expecting/looking for.
[06:29:49.194601]<hasienda>retracile: BTW, I get a similar exception calling any wiki page.
[06:30:12.863040]<hasienda>retracile: TypeError: prepare_wiki_page() takes exactly 3 arguments (4 given)
[06:32:56.435858]<hasienda>retracile: Traceback for wiki page is in http://dpaste.com/181671/
[06:33:45.408574]<macmaN>hasienda: i'm running 9284 right now, you could roll back on that
[06:33:59.946613]<macmaN>then you narrow the possible revs that are the source for the rror
[06:35:30.174518]<rblank>hasienda: You're missing the "self" argument in your prepare_wiki_page() (we don't put it in interface declarations)
[06:39:28.482947]<rblank>hasienda: def prepare_wiki_page(req, page, fields): -> def prepare_wiki_page(self, req, page, fields):
[06:44:06.756445]<hasienda>rblank: Thanks, I see the difference, but have to look for the file where I'll find it. I'm not so used to debugging.
[06:46:47.317991]<hasienda>rblank: Looking into trac/wiki/api.py now.
[06:49:52.531293]<hasienda>rblank: (to myself) Oh wait, looking for an argument - not the function itself.
[06:56:03.540972]<hasienda>rblank: I looked now into trac/wiki/api.py, where I found the statementdef prepare_wiki_page(req, page, fields):
[06:57:38.418356]<hasienda>rblank: but I fail to understand, why I should change it there. After all this is an untouched copy of current trunk (checkout of your own Mercurial repo).
[07:12:04.159994]<imgrey>good day #trac
[07:12:14.943048]<imgrey>how to get rid of message
[07:12:15.605492]<imgrey>Can't synchronize with the repository (The 'repository_dir' has changed
[07:12:20.876923]<imgrey>*Warning: Can't synchronize with the repository (The 'repository_dir' has changed, a 'trac-admin resync' operation is needed.). Look in the Trac log for more information.
[07:12:26.952439]<imgrey>?
[07:12:45.794527]<imgrey>ther's nothing in log
[07:15:04.434890]<hasienda>imgrey: Checked that 'repository_dir' is still set correctly in your <env>/conf/trac.ini ?
[07:15:30.287808]<imgrey>hasienda, but I changed nothing
[07:15:57.022825]<imgrey>hasienda, yes, it is correct
[07:21:24.979617]<hasienda>imgrey: I'd check, if repo is accessable from trac; but I've not a real clue since I didn't use trac with repo until now, sorry.
[07:21:54.625007]<imgrey>maybe that happened because I had rebuilt repository ?
[07:21:59.370613]<imgrey>*svn repository
[07:23:55.332376]<hasienda>imgrey: What, if you just follow tracs wish and run: trac-admin resync ?
[07:24:06.314045]<imgrey>nothing happens
[07:24:13.838981]<imgrey>hasienda, it opens the shell
[07:25:24.005596]<hasienda>imgrey: Oh. (out of more ideas)
[07:29:42.198143]<hasienda>macmaN: indeed, exceptions gone with trac-0.12dev-r9284. But why?
[07:31:08.026021]<retracile>imgrey: if you rebuilt the repo, it's a new repo. Run 'trac-admin <trac-environment-dir> resync'.
[07:31:42.826053]<imgrey>retracile, thanks!
[08:33:43.625078]<rblank>hasienda: You have a plugin that doesn't implement prepare_wiki_page() correctly, it seems to be missing an argument.
[08:35:25.204767]<rblank>hasienda: That method was previously never called, but its functionality has been added recently.
[08:35:49.029312]<macmaN>hasienda: listen to rblank, i have no clue what has changed from 9284+ regarding prepare_wiki_page
[08:36:29.242107]<macmaN>next changesets i have bookmarked are 9420, 9427 and 9434 that had something that interest me
[08:36:36.220871]<macmaN>but i upgrade carefully
[08:57:25.059572]<rblank>hasienda: It doesn't seem to be one of the plugins on trac-hacks, all the implementations there are correct (or they have been fixed recently).
[10:32:50.904093]<hasienda>(just catching up with last 3 hours of conversation here)
[10:34:15.125563]<hasienda>rblank: thanks for the hint, it might still be a plugin from TH, since I didn't upgrade working plugins that often. It might well be the case, that there was a fix I didn't notice by now.
[11:49:02.488743]<hasienda>was able to find the offending plugin by grep over all downloaded plugins source code:
[11:53:43.737936]<retracile>hasienda: the suspense is killing me.... :P
[11:54:31.075292]<hasienda>ah sorry: ForceComment (0.1)
[11:55:22.744954]<hasienda>was already seeking to reach the author. No patched version available, but this is easy now. :-)
[11:58:17.485623]<retracile>:)
[12:02:37.410405]<hasienda>retracile: btw, receive my personal appreciation for refreshing comments here in the room. Just a grain of salt, I think it wouldn't be the same without you. And thanks for taking care.
[12:02:59.171451]<retracile>hasienda: :) no problem :)
[12:39:57.961867]<fetrovsky>howdy peeps
[12:40:00.677270]<fetrovsky>=)
[12:41:08.807423]<fetrovsky>noone alive :(
[12:41:10.246842]<fetrovsky>?
[14:17:10.143120]<hasienda>retracile: fixed version of ForceComment is available.
[14:17:28.808809]<hasienda>retracile: So great response from the maintainer. Trac how I like it. :-)
[14:17:43.317643]<hasienda>retracile: Updated wiki page http://trac-hacks.org/wiki/ForceCommentPlugin too.
[14:18:38.968830]<hasienda>puh, that's enough for today. see you ...