That was it Steve, thanks. It looks like I have to add my PYTHONPATH to .bashrc
-----Original Message----- From: Steve Borho [mailto:st...@borho.org] Sent: 16 January 2010 03:41 To: Pierpoint, Nick (PSCM) Cc: tortoisehg-discuss@lists.sourceforge.net Subject: Re: [thg] Problem cloning over ssh On Fri, Jan 15, 2010 at 5:12 PM, Pierpoint, Nick (PSCM) <nick.pierpo...@uk.bp.com> wrote: > Hi. > > I'm trying to clone a repository over ssh using TortoiseHg and I'm > getting a PYTHONPATH-related error message coming back. When I > directly ssh into the same account I can use hg fine. > > I'm getting the following error message: > > running ""C:\Program Files\TortoiseHg\TortoisePlink.exe" -ssh -2 > pie...@reuxeuls004 <mailto:pie...@reuxeuls004> "hg -R > ~/repository/soipmi serve --stdio"" > remote: abort: couldn't find mercurial libraries in [/usr/local/bin > /usr/lib64/python24.zip /usr/lib64/python2.4 > /usr/lib64/python2.4/plat-linux2 /usr/lib64/python2.4/lib-tk > /usr/lib64/python2.4/lib-dynload /usr/lib64/python2.4/site-packages > /usr/lib64/python2.4/site-packages/Numeric > /usr/lib64/python2.4/site-packages/gtk-2.0 > /usr/lib/python2.4/site-packages] > remote: (check your install and PYTHONPATH) no suitable response from > remote hg > > [command interrupted] > > However, when I ssh directly hg works fine: > > [pie...@reuxeuls004 ~]$ hg version > Mercurial Distributed SCM (version 1.4.2) > > Copyright (C) 2005-2009 Matt Mackall <m...@selenic.com> and others This > is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > PURPOSE. > [pie...@reuxeuls004 ~]$ echo $PYTHONPATH > /usr/local/lib64/python2.4/site-packages/ > [pie...@reuxeuls004 ~]$ The likely problem is that PYTHONPATH is only being set on the remote machine for interactive shells. If you try: ssh reuxeuls004 hg version and it fails, that proves the point. You usually have to dig into your shell documentation to figure out how to set PYTHONPATH earlier in the login process. Perhaps in a ~/.bash_login or ~/.login script. -- Steve Borho ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Tortoisehg-discuss mailing list Tortoisehg-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss