Dropbox backup due to chars

Seems that when doing backup on Dropbox with files written in PT the backup fails as per this below message
Backup Upload Failed

Oops, your automated backup to Dropbox failed.

Error message:
Despacho_21_12_REI_de_5_de_Março_e_anexos[1].pdf - Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 324, in upload_from_folder
dropbox_client = upload_file_to_dropbox(filepath, dropbox_folder, dropbox_client)
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 261, in upload_file_to_dropbox
with open(filename, ‘r’) as f:
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xe3’ in position 42: ordinal not in range(128)

@Helio_Jesus,

This issue was fixed in https://github.com/frappe/frappe/commit/c4296c71b11de7d7cbc1c354e2b54485f68184d5, Can you please pull the latest updates in frappe ?

Thanks,
Makarand

Thanks.

@makarand_b it seems we have another issue with Dropbox

Backup Upload Failed

Oops, your automated backup to Dropbox failed.

Error message:

Cópia_de_Item.xlsx - Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 141, in upload_from_folder
upload_file_to_dropbox(filepath, dropbox_folder, dropbox_client)
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 149, in upload_file_to_dropbox
file_size = os.path.getsize(filename)
File “/home/frappe/frappe-bench/env/lib/python2.7/genericpath.py”, line 49, in getsize
return os.stat(filename).st_size
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xf3’ in position 46: ordinal not in range(128)

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 46, in take_backup_to_dropbox
if did_not_upload: raise Exception
Exception

I can see that if i have a Directory on the Files Dropbox breaks/stops the backup.

@Helio_Jesus Frappe don’t create multiple directory in public and private folder.
If you have any directory, you can move all files in public/private folder of site and delete directory.

Checked that now…
For some reason my local created a directory.