ssh_paramiko_backend.py - global name 'paramiko' is not defined

Bug #1798206 reported by David Chin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

Checked out a copy of 0.8.0 series. Ran ./dist/makedist 0.8.0 then normal build (wheel) and install.

Run using duply, using configs that had been working for the past year or so.

Using installed duplicity version 0.8.0, python 2.7.15 (/opt/bin/python2), gpg 2.0.14 (Home: ~/.gnupg), awk 'GNU Awk 3.1.7', grep 'grep (GNU grep) 2.20', bash '4.1.2(1)-release (x86_64-redhat-linux-gnu)'.

...

--- Start running command BKP at 17:28:53.875 ---
Traceback (innermost last):
  File "/opt/bin/duplicity", line 1668, in <module>
    with_tempdir(main)
  File "/opt/bin/duplicity", line 1654, in with_tempdir
    fn()
  File "/opt/bin/duplicity", line 1488, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/opt/lib/python2.7/site-packages/duplicity/commandline.py", line 1180, in ProcessCommandLine
    backup, local_pathname = set_backend(args[0], args[1])
  File "/opt/lib/python2.7/site-packages/duplicity/commandline.py", line 1051, in set_backend
    globals.backend = backend.get_backend(bend)
  File "/opt/lib/python2.7/site-packages/duplicity/backend.py", line 223, in get_backend
    obj = get_backend_object(url_string)
  File "/opt/lib/python2.7/site-packages/duplicity/backend.py", line 209, in get_backend_object
    return factory(pu)
  File "/opt/lib/python2.7/site-packages/duplicity/backends/ssh_paramiko_backend.py", line 176, in __init__
    parsed_url.hostname))
  File "/opt/lib/python2.7/site-packages/duplicity/backends/ssh_paramiko_backend.py", line 398, in gethostconfig
    sshconfig = paramiko.SSHConfig()
 NameError: global name 'paramiko' is not defined

17:28:54.305 Task 'BKP' failed with exit code '30'.
--- Finished state FAILED 'code 30' at 17:28:54.305 - Runtime 00:00:00.430 ---

Revision history for this message
David Chin (david-w-h-chin) wrote :

If I add "import paramiko" to the top of duplicity/backends/ssh_paramiko_backend.py this error does not happen.

Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.7.19
status: New → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.