exceptions.AttributeError for push/upload command

Asked by deuxcode

Just started out with Bazaar and get the following message when trying the 'push' and 'upload' commands. This is on a 32-bit WinXP Pro system, installed with the "bzr-setup-1.14-1.exe" installer.

Commands:

<project_folder>bzr push sftp://<username>@example.com/<projectfolder>
<project_folder>bzr upload sftp://<username>@example.com/<projectfolder>

Output:

C:\www\bazaartest>bzr push sftp://<username>@example.com/bazaartest
Connected (version 2.0, client OpenSSH_4.3p2)
SSH <username>@example.com password:
Authentication (password) successful!
Secsh channel 1 opened.
[chan 1] Opened sftp connection (server version 3)
bzr: ERROR: exceptions.AttributeError: 'str' object has no attribute 'get'

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 727, in exception_to_return_code
  File "bzrlib\commands.pyo", line 922, in run_bzr
  File "bzrlib\commands.pyo", line 559, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 1055, in run
  File "bzrlib\push.pyo", line 84, in _show_push_branch
  File "bzrlib\bzrdir.pyo", line 837, in open_from_transport
  File "bzrlib\transport\__init__.pyo", line 1657, in do_catching_redirections
  File "bzrlib\bzrdir.pyo", line 824, in find_format
  File "bzrlib\bzrdir.pyo", line 1751, in find_format
  File "C:/Program/Bazaar/plugins\svn\format.py", line 109, in probe_transport
  File "C:/Program/Bazaar/plugins\svn\transport.py", line 89, in get_svn_ra_transport
  File "C:/Program/Bazaar/plugins\svn\errors.py", line 130, in convert
  File "C:/Program/Bazaar/plugins\svn\transport.py", line 260, in __init__
  File "C:/Program/Bazaar/plugins\svn\transport.py", line 213, in set_credentials
AttributeError: 'str' object has no attribute 'get'

bzr 1.14 on python 2.5.2 (win32)
arguments: ['bzr', 'push', 'sftp://<username>@example.com/bazaartest']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program\Bazaar\plugins\bzrtools [1.14]
  launchpad C:\Program\Bazaar\plugins\launchpad [unknown]
  netrc_credential_store C:\Program\Bazaar\plugins\netrc_credential_store [unknown]
  qbzr C:\Program\Bazaar\plugins\qbzr [0.9.9]
  svn C:\Program\Bazaar\plugins\svn [0.5.4]
  upload C:\Program\Bazaar\plugins\upload [1.0dev]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

My guess is that it's come config issue, but I can't figure out what it can be.

Thanks,

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
deuxcode
Solved:
Last query:
Last reply:
Revision history for this message
Attila Beregszaszi (melon) said :
#1

Having the same problem on Vista 32bit. However, when I try to push with bzr+ssh:// it also fails the first time, then upon a new authenticaton it makes the push (some kind of fallback though?)

E:\test>bzr push --create-prefix bzr+
ssh://<email address hidden>:2222/test
Connected (version 2.0, client OpenSSH_4.7p1)
SSH C:\Users\username/.ssh/id_rsa password:
Authentication (publickey) successful!
Secsh channel 1 opened.
Server does not understand Bazaar network protocol 3, reconnecting. (Upgrade the server to avoid this.)
Connected (version 2.0, client OpenSSH_4.7p1)
SSH C:\Users\username/.ssh/id_rsa password:
Authentication (publickey) successful!
Secsh channel 1 opened.
Created new branch.

Anyway, the sftp:// method is broken just like deuxcode's.

Revision history for this message
Martin Pool (mbp) said :
#2

The message from push is harmless, as it says it's just that the server software is old.

This seems to be a duplicate of bug 370918 in bzr-svn. I don't know if there's a workaround for it but I'll ask. Otherwise, it should be fixed in the next bzr windows installer release.

Revision history for this message
rharang (rich-harang) said :
#3

I had exactly the same problem: fresh install of version 1.14.1 for windows XP, followed the directions in section 5.2.2 of the user guide to push to a sftp repository, and got an identical error to the original question. It's worth noting that -- despite the error message referencing the svn plugin -- at no point had anything in the repository ever had anything at all to do with SVN.

Removing the svn plugin (just zipping up Bazaar/plugins/svn, stashing it somewhere, and deleting the svn subdirectory) fixed the problem and let me push via sftp without any issues at all.

I'm not sure why the svn plugin was being called, but it does seem to be at the root of the issue.

Revision history for this message
deuxcode (deuxcode) said :
#4

For everyone that experience the same issue you can remove the bzr-svn plugin from the plugins directory until this issue is resolved. Hopefully in the 1.15 release (not yet available for windows).

Also more info about this for the bug that Martin Pool linked in the above comment.

(Solved, more or less..)