gsync
gsync copied to clipboard
Error: AttributeError("'datetime.timedelta' object has no attribute 'total_seconds'",)
This is the error I get when I run gsync. It seems to be related to the fact I have python 2.6,6, but i cannot easily upgrade. Is there a way to fix within Python 2.6?
Full transcript:
DEBUG: AttributeError("'datetime.timedelta' object has no attribute 'total_seconds'",): File "/usr/local/lib/python2.6/dist-packages/libgsync/crawler.py", line 150, in run self._walk(srcpath, self._walkCallback, self._dev) File "/usr/local/lib/python2.6/dist-packages/libgsync/crawler.py", line 124, in _walk self._sync(f) File "/usr/local/lib/python2.6/dist-packages/libgsync/sync/init.py", line 31, in call self._sync(path) File "/usr/local/lib/python2.6/dist-packages/libgsync/sync/init.py", line 188, in _sync self.dst.create(dstPath, srcFile) File "/usr/local/lib/python2.6/dist-packages/libgsync/sync/file/init.py", line 316, in create self.createFile(path, srcObj) File "/usr/local/lib/python2.6/dist-packages/libgsync/sync/file/__init.py", line 220, in createFile self.__updateStats(path, src) File "/usr/local/lib/python2.6/dist-packages/libgsync/sync/file/__init.py", line 261, in updateStats mtime = float(srcInfo.modifiedDate) File "/usr/local/lib/python2.6/dist-packages/libgsync/sync/file/__init.py", line 58, in float def float(self): return float(self.secs()) File "/usr/local/lib/python2.6/dist-packages/libgsync/sync/file/__init.py", line 55, in __secs def __secs(self): return (self.__d - self.__epoch).total_seconds()
Error: AttributeError("'datetime.timedelta' object has no attribute 'total_seconds'",) sent 0 bytes received 0 bytes 0.00 bytes/sec
I have this Problem too.