Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: __init__() got an unexpected keyword argument 'encoding' #41

Open
ecopoesis opened this issue Feb 8, 2017 · 1 comment
Open

Comments

@ecopoesis
Copy link

running tarsnapper --target "\$date-03-HOURLY-tripoli-/home/backups/media/Pictures" --deltas 1d 7d 30d 360d 18000d - expire --dry-run I get the following error:

Exception AttributeError: "'spawn' object has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn object at 0x7fb18b286210>> ignored
Traceback (most recent call last):
  File "/usr/local/bin/tarsnapper", line 9, in <module>
    load_entry_point('tarsnapper==0.4.0', 'console_scripts', 'tarsnapper')()
  File "/usr/local/lib/python2.7/dist-packages/tarsnapper-0.4.0-py2.7.egg/tarsnapper/script.py", line 546, in run
    sys.exit(main(sys.argv[1:]) or 0)
  File "/usr/local/lib/python2.7/dist-packages/tarsnapper-0.4.0-py2.7.egg/tarsnapper/script.py", line 536, in main
    command.run(job)
  File "/usr/local/lib/python2.7/dist-packages/tarsnapper-0.4.0-py2.7.egg/tarsnapper/script.py", line 314, in run
    self.expire(job)
  File "/usr/local/lib/python2.7/dist-packages/tarsnapper-0.4.0-py2.7.egg/tarsnapper/script.py", line 311, in expire
    self.backend.expire(job)
  File "/usr/local/lib/python2.7/dist-packages/tarsnapper-0.4.0-py2.7.egg/tarsnapper/script.py", line 179, in expire
    backups = self.get_backups(job)
  File "/usr/local/lib/python2.7/dist-packages/tarsnapper-0.4.0-py2.7.egg/tarsnapper/script.py", line 143, in get_backups
    for backup_path in self.get_archives():
  File "/usr/local/lib/python2.7/dist-packages/tarsnapper-0.4.0-py2.7.egg/tarsnapper/script.py", line 118, in get_archives
    response = StringIO(self.call('--list-archives'))
  File "/usr/local/lib/python2.7/dist-packages/tarsnapper-0.4.0-py2.7.egg/tarsnapper/script.py", line 65, in call
    return self._exec_tarsnap(call_with)
  File "/usr/local/lib/python2.7/dist-packages/tarsnapper-0.4.0-py2.7.egg/tarsnapper/script.py", line 72, in _exec_tarsnap
    encoding='utf-8')
TypeError: __init__() got an unexpected keyword argument 'encoding'

I'm using Python 2.7.6.

@miracle2k
Copy link
Owner

It seems that the recently added Python 3 support is a bit broken; you can use an older version.

If someone could contribute fixes in this regard, I would appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants