Can't get sftp to work on Mac OS X or Cygwin

John Whitley whitley at acm.org
Thu May 11 01:56:21 BST 2006


I'm seeing essentially identical sftp push failures from .bzr.log's  
perspective on both Cygwin and Mac OS X.  The error message is either  
unhelpful or outright misleading.  I've got paramiko-1.5.4 and  
pycrypto-2.0.1 installed on both systems, and can import these  
modules manually in python.  FYI, pycrypto's egg-based install seems  
to be broken on Cygwin -- it fails to make the .egg file executable,  
which causes the binary extension modules (e.g. Crypto.Cipher.DES3)  
to fail to load.

Generic repro steps
-------------------
$ ssh host.org
$ mkdir bzr; cd bzr
$ bzr init test
$ exit
$ mkdir bzr; cd bzr
$ bzr init test
$ cd test
$ echo "this is a test" > a-file.txt
$ bzr add
$ bzr commit -m "stuff"
$ bzr push sftp://host.org/bzr/test
bzr: ERROR: Parent directory of sftp://host.org/bzr/test does not exist.

Log output:
----------
bzr 0.8 invoked on python 2.4.1.final.0 (darwin)
   arguments: ['/usr/local/bin/bzr', 'push', 'sftp://bangpath.org/bzr/ 
rcfiles']
   working dir: u'/Users/whitley/src/rcfiles'
looking for plugins in /usr/local/lib/bzr-0.8/bzrlib/plugins
Plugin name __init__ already loaded
looking for plugins in /Users/whitley/.bazaar/plugins
got branch format Bazaar-NG Metadir branch format 5
ssh implementation is OpenSSH
trying to open u'sftp://bangpath.org/bzr/rcfiles' with transport  
<bzrlib.transport.sftp.SFTPTransport url=sftp://bangpath.org/bzr/ 
rcfiles/>
[20400] Wed 17:03:28.592 ERROR: Parent directory of sftp:// 
bangpath.org/bzr/rcfiles does not exist.
Traceback (most recent call last):
   File "/usr/local/lib/bzr-0.8/bzrlib/commands.py", line 650, in  
run_bzr_catch_errors
     return run_bzr(argv)
   File "/usr/local/lib/bzr-0.8/bzrlib/commands.py", line 612, in  
run_bzr
     ret = run(*run_argv)
   File "/usr/local/lib/bzr-0.8/bzrlib/commands.py", line 246, in  
run_argv_aliases
     return self.run(**all_cmd_args)
   File "/usr/local/lib/bzr-0.8/bzrlib/builtins.py", line 502, in run
     raise BzrCommandError("Parent directory of %s "
BzrCommandError: Parent directory of sftp://bangpath.org/bzr/rcfiles  
does not exist.



-- John






More information about the bazaar mailing list