Hello Warren,
On 6/25/2012 7:12 PM, Warren Postma wrote:
I've followed everything you've written at this wiki topic: http://trac.edgewall.org/wiki/TracMercurial Currently stuck with non-working Tracmercurial plugin, on a bitnami trac stack install from http://bitnami.org/stack/trac on windows. I believe I'm hitting some of the weirdness you discuss in your wiki about Mercurial and it's .pyd extensions and something about the mod_wsgi environment is breaking Mercurial, or breaking TracMercurial when it tries to import the hg python modules. The following code works fine from the bitnami-stac version of python 2.6 on my system: from mercurial import ui, hg path = 'D:/Code/wpCode/RentalPoint10-wp' repo = hg.repository(ui.ui(), path) print path,"Repository info:" print repr(repo), "object len: ",len(repo) The logs show that the TracMercurial .egg is being loaded by trac. First I get an exception to do with *demandimport. * I disabled*demandimport *in *mercurial* by replacing the real Mercurial demandimport.py unit with this code: # demandimport.py - disabled by warren. ''' demandimport - disabled in code by warren. ''' def enable(): "does nothing" pass def disable(): "does nothing" pass Now Trac starts up without any errors, and yet, the Mercurial plugin does not register itself. I'm not knowledgeable enough about Trac, or even Apache, yet, to further debug this. If you could point me at another wiki topic or two to help me figure out what I need to learn about Trac, or apache, or mod_wsgi to continue troubleshooting, I'd appreciate it. My python knowledge is pretty good, mercurial knowledge as a user is pretty good, and ability to read python and figure it out, is good enough, I think I can figure this out. Maybe I will need to log a bug in the Trac project bug tracker for this issue. Or maybe the issue is actually in the Bitnami stack. Or maybe it's Python's weird half-support for mercurial's "Library.zip" file. I'd like to find out which open source project needs a bug logged, and log it. Is this a mercurial bug? Python bug? Trac? :-) Warren
First you should have sent this to trac-users, as you might just have caught the attention of someone who had already troubleshooted this.
Then the crucial information which is missing is how did you installed Mercurial itself? From an installer (which one?), from source, etc. As you hint at a "Library.zip" I suspect the problem might be related to the installation itself, but you also say that from the Bitnami python.exe, Mercurial seems to work fine, so... before I can try to reproduce your issue, please provide detailed information about your setup.
I've seen you've created a question on BitNami OSQA site, let's see what they have to say, but I'm fully supportive about the idea to bundle Mercurial in this stack, at least on Windows ;-)
-- Christian -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
