>> On 28 Aug 2012, at 9:40 AM, Massimo Di Pierro <massimo....@gmail.com> >> wrote: >> >> Which web2py version? which python version?
It's with Python 2.6.6, web2py stable (1.99.7). But I noticed that I also have python 2.5.5 installed on my system, and grepping web2py files I can see several calls to explicitly python2.5 instead of python. Should I assume that it is not using the default python version, but the 2.5 instead? I'm running web2py on apache with wsgi. >> Note that that particular message implies that 'from mercurial import ui, >> hg, cmdutil' yielded an ImportError. Try the import from python directly. The import went OK: $ python Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mercurial import ui >>> from mercurial import hg >>> from mercurial import cmdutil >>> The same for python2.5, no errors. 2012/8/28 Richard Vézina <ml.richard.vez...@gmail.com>: > Did you init a user for mercurial? > > http://manpages.ubuntu.com/manpages/hardy/man5/hgrc.5.html > > Also you need to create a repo for your app : Is this really needed? From the book, I understood that web2py was taking charge of that: "...administrative interface shows one more menu item called "mercurial". It automatically creates a local Mercurial repository for the application." --