Hi,

I've solved this issue and I thought I'd just say what I did to
hopefully save other people some time.

It turns out that the solution was to not use the prebuilt binaries,
but rather to compile Mercurial on my own system using MingGW. For
some reason this results in Apache finding all relevant DLLs
(something to do with the manifests created and the paths that Apache
searches automatically).



On Wed, Nov 23, 2011 at 3:51 PM, Jon Hodgson
<[email protected]> wrote:
> I've done some further investigating and it seems the problem occurs
> with the line
>
> from mercurial.context import filectx
>
> in the hg file in TracMercurial
>
> I don't know how to drill down any further inside trac when it is
> running on apache (I've used trac log messages to get this far) but
> using process monitor it looks like the culprit is context.pyd and
> possibly its requirement for MSVCR90.DLL, which isn't found, though
> confusingly it has been found earlier during starting up apache, in
> the place where the vs 2008 run time distribution is installed
>
> So  I tried copying msvcr90.dll, msvcp90.dll and msvcm90.dll to
> system32, and now according to process monitor it's found after
> loading osutil.pyd but now rather than getting a failure to load DLL
> message, I get a hang when I refresh the page
>
> I am seriously confused
>
> On Nov 21, 5:11 pm, Jon Hodgson <[email protected]>
> wrote:
>> This is the second time I'm sending this, since the last one seems to
>> have vanished without a trace, apologies if it now appears twice
>>
>> Ok, I have the following
>>
>> Windows XP
>> Python 2.6.7.20
>> Trac 0.12.2
>> Mercurial 1.9.2
>> TracMercurial-0.12.0.28dev_r10784-py2.6 (built from checked out repository)
>>
>> Now,
>>
>> Mercurial's repo browser works in apache
>>
>> trac works in apache
>>
>> mercurial works in trac using its own server (tracd)
>>
>> but somehow mercurial doesn't work in trac in apache
>>
>> It says
>> "Warning: Can't synchronize with repository "(default)" (Unsupported
>> version control system "hg": DLL load failed: The specified module
>> could not be found.). Look in the Trac log for more information."
>>
>> but the log shows no errors
>>
>> Has anyone got any ideas? thanks
>
> --
> 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.
>

-- 
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.

Reply via email to