A quick update for anyone interested: I finally got time to troubleshoot this and found that the only problem was that I was using the wrong version of Mercurial for the latest version of the reviewboard extension. Having upgraded to the latest Mercurial version everything works great.
Thanks for your help, Colin > -----Original Message----- > From: Colin Caughie [mailto:c.caug...@indigovision.com] > Sent: 19 March 2009 15:23 > To: Steve Borho > Cc: tortoisehg-discuss@lists.sourceforge.net > Subject: Re: [thg] Where is the Python path for TortoiseHG? > > Steve, > > Thanks for this, it does work, kind of. simplejson's setup script > installs itself as a .egg file in the python site-packages > directory; TortoiseHG doesn't seem to be able to use this. But if I > copy the simplejson directory containing the source .py files > (including __init__.py) somewhere and add that location to sys.path, > hg does find the module. > > Unfortunately however reviewboard itself is throwing an exception > now. I haven't tried to figure out why yet. > > Colin > > > -----Original Message----- > > From: Steve Borho [mailto:st...@borho.org] > > Sent: 19 March 2009 15:05 > > To: Colin Caughie > > Cc: tortoisehg-discuss@lists.sourceforge.net > > Subject: Re: [thg] Where is the Python path for TortoiseHG? > > > > On Thu, Mar 19, 2009 at 3:00 AM, Colin Caughie > > <c.caug...@indigovision.com> wrote: > > > Hi, > > > > > > I notice someone asked this a while back but I didn't see any > > answers. I'm > > > trying to install the reviewboard extension > > > (http://freehg.org/u/roccoblues/mercurial-reviewboard/) on a > > Windows install > > > of TortoiseHG, and this requires the simplejson python package > > > (http://pypi.python.org/pypi/simplejson). > > > > > > I've installed this package in my normal python installation in > > C:\Python25; > > > I can import it just fine if I run python from the command line, > > but after > > > adding the reviewboard extension to my mercurial.ini file I now > > get this > > > whenever I run hg: > > > > > > *** failed to import extension reviewboard from > > > T:\mercurial\mercurial-reviewboard: No module named simplejson > > > > > > Where can I put simplejson so that the hg supplied with > TortoiseHG > > will pick > > > it up? > > > > There isn't a predefined location. TortoiseHg's entire python > > environment is contained within the library.zip that comes > packaged > > with it. > > > > What I suspect you can do is add a line or two to the top of your > > reviewboard extension file to add your installed python path to > > sys.path before trying to import simplejson. > > > > Something like: > > > > sys.path.append('C:\Python2.5\libs\site-packages') > > import simplejson > > > > But that is just a guess on my part. I have not tried this. > > > > -- > > Steve > > > > ------------------------------------------------------------------ > -- > > ---------------- > > scanned for viruses and spam by indigovision > > If you believe this email is spam, please forward to > > s...@emailfiltering.com > > Latest News at: http://www.indigovision.com/news2009.php > > -------------------------------------------------------------------- > ---------- > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) > are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly > and > easily build your RIAs with Flex Builder, the Eclipse(TM)based > development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Tortoisehg-discuss mailing list > Tortoisehg-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss > > -------------------------------------------------------------------- > ---------------- > scanned for viruses and spam by indigovision > If you believe this email is spam, please forward to > s...@emailfiltering.com ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Tortoisehg-discuss mailing list Tortoisehg-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss