Installing mercurial for hgwebdir on Mac OS X Server
Eric Arseneau
Eric.Arseneau at Sun.COM
Mon Oct 12 05:52:56 UTC 2009
I think I might be able to contribute something here :)
It seems that my /usr/local/bin/easy_install script was pointing to 2.5
#!/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/
Python.app/Contents/MacOS/Python
I simply changed it to 2.6, did an easy_install and presto the
hgwebdir worked. I guess here that the easy_install did an install of
the module into 2.5 and web server is now running 2.6, therefore
wanted the modules installed within it.
Not sure why that issue is there, as there is an easy_install2.5.
Oh well, I am happy it works now :) On to the next problem :(
On Oct 11, 2009, at 8:01 PM, Eric Arseneau wrote:
> ImportError: No module named mercurial
>
> To give more useful detail, here is the error log entry
>
> [Sun Oct 11 16:00:13 2009] [error] [client 74.87.27.225] Traceback
> (most recent call last):
> [Sun Oct 11 16:00:13 2009] [error] [client 74.87.27.225] File "/
> Library/WebServer/CGI-Executables/hg/hgwebdir.cgi", line 10, in
> <module>
> [Sun Oct 11 16:00:13 2009] [error] [client 74.87.27.225] from
> mercurial import demandimport; demandimport.enable()
> [Sun Oct 11 16:00:13 2009] [error] [client 74.87.27.225]
> ImportError: No module named mercurial
> [Sun Oct 11 16:00:13 2009] [error] [client 74.87.27.225] Premature
> end of script headers: hgwebdir.cgi
>
> Also, it seems that Snow Leopard has upgraded the Python from 2.5 to
> 2.6. It is very likely that there are issues in the tools to
> install stuff in the right place. We have the same problem over in
> Java land on this issue.
>
> On Oct 11, 2009, at 7:01 PM, Eric Arseneau wrote:
>
>> I just upgraded my Mac OS X Server to Snow Leopard and now hg is not
>> working, getting an exception from web server about missing mercurial
>> module.
>>
>> I've tried to install via easy_install and port (did the upgrade they
>> recommend) and neither of them seems to be installing the right parts
>> to get the mercurial module to be visible.
>>
>> I assume there is some python path element that needs to be set, or
>> some source that needs to be placed in an appropriate place.
>>
>> I can modify hgwebdir to import the directory where mercurial is, I
>> think, however I would like to know what the right way to do this is.
>>
>> Any recommendations on how I can fix this?
>> _______________________________________________
>> Mercurial mailing list
>> Mercurial at selenic.com
>> http://selenic.com/mailman/listinfo/mercurial
>
More information about the Mercurial
mailing list