horshack-dpreview / airnef

Wireless download of images and videos from Nikon, Canon, and Sony cameras
GNU General Public License v3.0
4 stars 0 forks source link

No module named 'six.moves' #1

Open flittermice opened 1 month ago

flittermice commented 1 month ago

Hello and thanks for that really great program I strongly rely on :-)

But... I recently upgraded from Ubuntu 22.04 to Ubuntu 24.04 and airnef stopped working.

_/home/flitter/Programme/airnef/airnefcmd.py:638: SyntaxWarning: invalid escape sequence '\M' parser.addargument('--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/flitter/Programme/airnef/airnefcmd.py:3144: SyntaxWarning: invalid escape sequence '|' progressChars = "-|/" Traceback (most recent call last): File "/home/flitter/Programme/airnef/airnefcmd.py", line 17, in from six.moves import xrange ModuleNotFoundError: No module named 'six.moves'

Believing that my Python installation is somewhat damaged I installed a completely new Xubuntu VM, but the same error arises again. Just now I now tried it under Arch Linux and it's all the same. Surely, "python3-six" is installed everywhere.

I believe there is some issue with newer versions of Python (wow, great: a compatibility layer that causes errors itself), but I'm not able to repair that myself. I'm thankful for every advice!

flittermice commented 1 month ago

I could solve this problem myself by installing Python 3.10 using pyenv :-D

oerkel47 commented 1 month ago

@flittermice thank you. I faced the same problems as you and also used pyenv with Python 3.10.14 to fix it.

I ran into one additional issue: The "tk-dev" package must be installed on the system for pyenv to build the chosen version with tk-inter support (otherwise you will receive a warning after, for example, trying "pyenv install 3.10.14").

Also, which is a different bug, there is an "import re" missing in airnef.pyw.

Hope this helps anyone else.

flittermice commented 1 month ago

Great! I didn't face this particular problem because I only use the program in the command line, mostly as an ever running systemd job.

oerkel47 commented 3 weeks ago

Fyi, these problems don't occur for me with the prebuilt binaries from the homepage (which use Python 2.7).