google / adb-sync

Apache License 2.0
1.09k stars 172 forks source link

TypeError with latest rev #36

Closed Flow86 closed 5 years ago

Flow86 commented 5 years ago

I get this error with rev fb7c549

# adb-sync/adb-sync -s b780df65 -R /storage/emulated/0/ backup/storage/emulated/0/
INFO:root:Sync: local b'backup/storage/emulated/0/', remote b'/storage/emulated/0/'
Traceback (most recent call last):
  File "adb-sync/adb-sync", line 883, in <module>
    main()
  File "adb-sync/adb-sync", line 870, in main
    if not syncer.IsWorking():
  File "adb-sync/adb-sync", line 507, in IsWorking
    return self.adb.IsWorking()
  File "adb-sync/adb-sync", line 221, in IsWorking
    b'date +%s' % (self.QuoteArgument(test_string),)]) as stdout:
TypeError: unsupported operand type(s) for %: 'bytes' and 'tuple'
# python3 --version
Python 3.4.2
Flow86 commented 5 years ago

Ah I've found out it seems my python 3.4 is too old.