PhotoBackup / server-bottle

The Python PhotoBackup server implementation
https://photobackup.github.io/
GNU General Public License v2.0
36 stars 7 forks source link

photobackup-bottle doesn't work with python3.4 #23

Closed qyanu closed 8 months ago

qyanu commented 6 years ago

photobackup/server-bottle doesn't work with python3.4 but requires python3.5 because how file uploads are expected to be parsed and how they are actually parsed (within cgi.py shipped with python3) differ. python3.4 is still the default python version on jessie debian (Which is still in wide use). It should therefore be noted that python3.4 is not supported.

I tried to debug the photobackup/bottle/cgi.py code to find a specific reason why the picture upload did not work when running with python3.4, but couldn't produce any conclusive results in the time available. However i am very confident, that cgi.py as shipped with python3.4 interprets file uploads in unexpected ways (either bottle 0.12 expects something different, or photobackup v0.1.2 expects something different). Using python3.5 with the same version of bottle and same version of photobackup works.