SFTP tests fail on Windows

Alexander Belchenko bialix at ukr.net
Mon May 1 23:02:20 BST 2006


John Arbash Meinel пишет:
> I just wanted to resurrect an old thread, but I can't find it.
> 
> Anyway, Alexander reported a while ago that the SFTP tests fail on
> windows. When I was looking into it, the biggest problem was just that
> the SFTPServer did not have a way to represent absolute paths as sftp
> urls. So the client & server couldn't agree on what file was being
> specified. (get_url() was returning something a little weird).
> 
> From my point of view, the best URL should mimic the file:/// interface,
> so it would be:
> 
> sftp://localhost/C|/path/to/foo
> 
> I suppose we should also support:
> sftp://localhost/C:/path/to/foo
> 
> I don't remember what I thought it would take to get that to work, but
> as I recall the URL aspect was the major reason why sftp tests were
> failing. (The stub_server couldn't find the files that the client was
> trying to request).
> 
> I don't know if you have any time to look into it Alexander, but since
> you raised the issue, I thought I would mention what I thought was the
> solution.

I've just install fresh paramiko on my machine and run bzr selftest. 
During selftest I've got numerous messages like that:

bzr: WARNING: Exception from within unit test server thread: 
<exceptions.AttributeError instance at 0x03365940>

In test.log I see numerous errors in SFTP tests that point to 2 similar 
errors: NoSuchFile and FileExists. Probably this errors raised because 
of path issues. How can I help to fix it?

I need to have working SFTP transport because I want to use it in my 
real work: I have 2 machines connected together (windows and linux). I 
can connect to linux machine from windows via ssh. And I want to use bzr 
to version control some files from linux machine.

--
Alexander





More information about the bazaar mailing list