Open markusb opened 7 years ago
I happen to have some filenames with accents 'éàèéöü'. It looks like gsync does not like this and bails out:
... DEBUG: sync/:52:_sync(): force_dest_file = False DEBUG: sync/file/:193:getPath(): Joining: '/tmp' with u'Concorde/Concorde 2016 pens\xe9es' DEBUG: sync/file/:193:getPath(): Joining: '/tmp' with u'Concorde/Concorde 2016 pens\xe9es' DEBUG: sync/file/local/:30:getInfo(): Fetching local file metadata: u'/tmp/Concorde/Concorde 2016 pens\xe9es' DEBUG: sync/file/local/:61:getInfo(): File not found: u'/tmp/Concorde/Concorde 2016 pens\xe9es' DEBUG: sync/:65:_sync(): Defaulting destination directory: u'/tmp/Concorde/Concorde 2016 pens\xe9es' DEBUG: sync/:71:_sync(): File not found: u'/tmp/Concorde/Concorde 2016 pens\xe9es' DEBUG: sync/file/:347:islocal(): self.__class__.**name** == SyncFileLocal DEBUG: UnicodeEncodeError('ascii', u'Concorde/Concorde 2016 pens\xe9es\n', 27, 28, 'ordinal not in range(128)'): File "/usr/local/lib/python2.7/dist-packages/libgsync/crawler.py", line 150, in run self._walk(srcpath, self._walkCallback, self._dev) File "/usr/local/lib/python2.7/dist-packages/libgsync/crawler.py", line 124, in _walk self._sync(f) File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/__init__.py", line 31, in **call** self._sync(path) File "/usr/local/lib/python2.7/dist-packages/libgsync/sync/__init__.py", line 184, in _sync verbose(relPath) File "/usr/local/lib/python2.7/dist-packages/libgsync/output.py", line 21, in __call__ self._print(msg, priority) File "/usr/local/lib/python2.7/dist-packages/libgsync/output.py", line 25, in _print sys.stdout.write("%s\n" % msg) Error: UnicodeEncodeError('ascii', u'Concorde/Concorde 2016 pens\xe9es\n', 27, 28, 'ordinal not in range(128)') sent 7337814 bytes received 0 bytes 1301539.48 bytes/sec DEBUG: /usr/local/bin/gsync:66:<module>(): Crawlers finished, exiting close failed in file object destructor: sys.excepthook is missing lost sys.stderr
I happen to have some filenames with accents 'éàèéöü'. It looks like gsync does not like this and bails out: