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

UnicodeDecodeError when restore #1177

Open
Joilence opened this issue Jul 4, 2018 · 0 comments
Open

UnicodeDecodeError when restore #1177

Joilence opened this issue Jul 4, 2018 · 0 comments

Comments

@Joilence
Copy link

Joilence commented Jul 4, 2018

mackup config (using github to backup the directory)

[configuration_files]

[storage]
engine = file_system
path = localcode
directory = Linux-Config-Backup

[applications_to_sync]
tmux
vim
zsh
ssh

Using Python 3.6 and installing mackup via pip on both system.

Backup on macOS 10.13.5

Succeed.

Restore on Ubuntu 16.04

Failed.

$ mackup restore
Traceback (most recent call last):
  File "/root/miniconda3/bin/mackup", line 11, in <module>
    sys.exit(main())
  File "/root/miniconda3/lib/python3.6/site-packages/mackup/main.py", line 65, in main
    app_db = ApplicationsDatabase()
  File "/root/miniconda3/lib/python3.6/site-packages/mackup/appsdb.py", line 34, in __init__
    if config.read(config_file):
  File "/root/miniconda3/lib/python3.6/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/root/miniconda3/lib/python3.6/configparser.py", line 1015, in _read
    for lineno, line in enumerate(fp, start=1):
  File "/root/miniconda3/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 82: ordinal not in range(128)

Other issue seems to be related with py2.7 instead of 3.6.
What should I do to fix this?

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

1 participant