Installing mercurial for hgwebdir on Mac OS X Server

Eric Arseneau Eric.Arseneau at Sun.COM
Sun Oct 11 22:01:35 CDT 2009


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