[BUG] NameError: global name 'ssh' is not defined

Alexander Belchenko bialix at ukr.net
Wed Sep 13 13:26:33 BST 2006

On my win32:

$ bzr version
Bazaar (bzr) 0.11.0dev0
   from bzr checkout E:/Bazaar/devel/bzr.dev
     revision: 2004
     revid: pqm at pqm.ubuntu.com-20060913022700-feca914a6d5495f2
     branch nick: bzr.dev
Using python interpreter: E:\Python24\python.exe
Using python standard library: E:\Python24\lib
Using bzrlib: E:\Bazaar\devel\bzr.dev\bzrlib

The problem occurs when I try to access to another branch via sftp:

$ bzr branch sftp://root@
bzr: ERROR: exceptions.NameError: global name 'ssh' is not defined

Traceback (most recent call last):
   File "E:\Bazaar\devel\bzr.dev\bzrlib\commands.py", line 611, in 
     return run_bzr(argv)
   File "E:\Bazaar\devel\bzr.dev\bzrlib\commands.py", line 573, in run_bzr
     ret = run(*run_argv)
   File "E:\Bazaar\devel\bzr.dev\bzrlib\commands.py", line 282, in 
     return self.run(**all_cmd_args)
   File "E:\Bazaar\devel\bzr.dev\bzrlib\builtins.py", line 660, in run
     br_from = Branch.open(from_location)
   File "E:\Bazaar\devel\bzr.dev\bzrlib\branch.py", line 113, in open
     control = bzrdir.BzrDir.open(base, _unsupported)
   File "E:\Bazaar\devel\bzr.dev\bzrlib\bzrdir.py", line 468, in open
     t = get_transport(base)
   File "E:\Bazaar\devel\bzr.dev\bzrlib\transport\__init__.py", line 
934, in get_transport
     t, last_err = _try_transport_factories(base, factory_list)
   File "E:\Bazaar\devel\bzr.dev\bzrlib\transport\__init__.py", line 
950, in _try_transport_factories
     return factory(base), None
   File "E:\Bazaar\devel\bzr.dev\bzrlib\transport\__init__.py", line 
100, in _loader
     return klass(base)
   File "E:\Bazaar\devel\bzr.dev\bzrlib\transport\sftp.py", line 151, in 
   File "E:\Bazaar\devel\bzr.dev\bzrlib\transport\sftp.py", line 719, in 
   File "E:\Bazaar\devel\bzr.dev\bzrlib\transport\sftp.py", line 1078, 
in _sftp_connect
     sftp = _sftp_connect_uncached(host, port, username, password)
   File "E:\Bazaar\devel\bzr.dev\bzrlib\transport\sftp.py", line 1083, 
in _sftp_connect_uncached
     vendor = ssh._get_ssh_vendor()
   File "E:\Bazaar\devel\bzr.dev\bzrlib\transport\ssh.py", line 104, in 
     _ssh_vendor = ssh.ParamikoVendor()
NameError: global name 'ssh' is not defined

bzr 0.11.0dev0 on python 2.4.3.final.0 (win32)
arguments: ['c:\\utils\\bzr.py', 'branch', 

** please send this report to bazaar-ng at lists.ubuntu.com


More information about the bazaar mailing list