← Back to team overview

duplicity-team team mailing list archive

[Question #684761]: ssh_paramiko_backend.py: ResourceWarning, unclosed file

 

New question #684761 on Duplicity:
https://answers.launchpad.net/duplicity/+question/684761

Hi.

Upgrading duplicity from 0.7 to 0.8 on FreeBSD and I'm seeing a lot of these messages with sftp+paramiko:

/usr/local/lib/python3.6/site-packages/duplicity/backends/ssh_paramiko_backend.py:409: ResourceWarning: unclosed file <_io.TextIOWrapper name='/etc/ssh/ssh_config' mode='r' encoding='UTF-8'>
  sshconfig.parse(open(file))
/usr/local/lib/python3.6/site-packages/duplicity/backends/ssh_paramiko_backend.py:409: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/dbaio/.ssh/config' mode='r' encoding='UTF-8'>
  sshconfig.parse(open(file))
 [...]
/usr/local/lib/python3.6/site-packages/duplicity/gpg.py:210: ResourceWarning: unclosed file <_io.BufferedWriter name=b'/tmp/duplicity-s29hbs8p-tempdir/mktemp-ozyor2fj-2'>
  u'logger': self.logger_fp})
/usr/local/lib/python3.6/site-packages/duplicity/gpg.py:210: ResourceWarning: unclosed file <_io.BufferedWriter name=b'/home/dbaio/.cache/duplicity/62b91b46def6e9f6d2f84dff24ad117a/duplicity-full-signatures.201910
06T211032Z.sigtar.gpg'>
  u'logger': self.logger_fp})

Duplicity: 0.8.05
Paramiko: 2.6.0
Python: 3.6

Regards.

-- 
You received this question notification because your team duplicity-team
is an answer contact for Duplicity.