shezi / airmtp

40 stars 5 forks source link

Does not run under Ubuntu 24.02 #4

Open hikerus opened 2 months ago

hikerus commented 2 months ago

Master version of "airmtp" doesn't run on Ubuntu 24.02

python3 airmtp.py
/home/user/Software/Foto-Download/airmtp-master/airmtp.py:638: SyntaxWarning: invalid escape sequence '\M'
  parser.add_argument('--outputdir', type=str, help='Directory to store image/file(s) to.  Default is current directory. No ending backslash is necessary. If path contains any spaces enclose it in double quotes. Example: --outputdir \"c:\My Documents\"', default=None, metavar="path", required=False)
/home/user/Software/Foto-Download/airmtp-master/airmtp.py:3144: SyntaxWarning: invalid escape sequence '\|'
  progressChars = "-\|/"
Traceback (most recent call last):
  File "/home/user/Software/Foto-Download/airmtp-master/airmtp.py", line 17, in <module>
    from six.moves import xrange
ModuleNotFoundError: No module named 'six.moves'
hikerus commented 2 months ago

Workaround: Set the Python3 standard version 3.12.6 for Ubuntu 24.02 locally to Python3 version 3.10.14 - and this works for me.

shezi commented 2 months ago

@hikerus Would you mind trying the branch in #5 and see if that code works for you?

hikerus commented 2 months ago

Thanks. Seems to work now. Only problem: The tool tries now to download all pictures from the camera again with changed filename. Seems that the cache/index is lost.