uskudnik / amazon-glacier-cmd-interface

Command line interface for Amazon Glacier
MIT License
374 stars 100 forks source link

Python 2.6 support #56

Closed gburca closed 11 years ago

gburca commented 11 years ago

This script used to work just fine in Python 2.6 until recently when 'memoryview' was added. Any plans to maintain backwards compatibility?

wvmarle commented 11 years ago

Python 2.6 support is important: Debian Squeeze (current stable release) uses 2.6.6. As a result this script is currently broken for me - no more uploading to Glacier from my server.

On the other hand, why isn't this script using Python3? Even Squeeze includes Python3 already (though not installed by default). So if it's moved to Python3 it should be OK for basically anyone, if even Debian stable has it, it's hard to imagine that any somewhat recent distro's don't have it.

WIndows situation I don't know but I suppose it doesn't come with any version of python at all, so user has to install python anyway if they want to use this.

Talking about Windows:

offlinehacker commented 11 years ago

Will add python 3 support with backport to 2.7. I was not aware that any distro is still using 2.6, but i suspect that this could cause problems. Memoryview is must, because this way it's way more efficient. Until then just remove memoryview function.

Maybe python 2.6 implementation of memoryview is lying somewhere on the internet, should take a look. I think python 3 should not be a requierment.

I hope that all the libs we are using have support for python 3 or else we are screwed. On Sep 30, 2012 7:28 AM, "wvmarle" notifications@github.com wrote:

Python 2.6 support is important: Debian Squeeze (current stable release) uses 2.6.6. As a result this script is currently broken for me - no more uploading to Glacier from my server.

On the other hand, why isn't this script using Python3? Even Squeeze includes Python3 already (though not installed by default). So if it's moved to Python3 it should be OK for basically anyone, if even Debian stable has it, it's hard to imagine that any somewhat recent distro's don't have it.

WIndows situation I don't know but I suppose it doesn't come with any version of python at all, so user has to install python anyway if they want to use this.

Talking about Windows:

  • how about logging there? Any reasonable safe place to write a log file? Does it have any syslog type feature? For glacier_lib I realise we must add syslog support as that's the only way to have a background task log without leaving log snippets all over the place.
  • where to store config files in Windows?

    — Reply to this email directly or view it on GitHubhttps://github.com/uskudnik/amazon-glacier-cmd-interface/issues/56#issuecomment-9011039.

offlinehacker commented 11 years ago

About windows. Is anybody here actually using pure windows for python development? On Sep 30, 2012 9:24 AM, "Jaka Hudoklin" jakahudoklin@gmail.com wrote:

Will add python 3 support with backport to 2.7. I was not aware that any distro is still using 2.6, but i suspect that this could cause problems. Memoryview is must, because this way it's way more efficient. Until then just remove memoryview function.

Maybe python 2.6 implementation of memoryview is lying somewhere on the internet, should take a look. I think python 3 should not be a requierment.

I hope that all the libs we are using have support for python 3 or else we are screwed. On Sep 30, 2012 7:28 AM, "wvmarle" notifications@github.com wrote:

Python 2.6 support is important: Debian Squeeze (current stable release) uses 2.6.6. As a result this script is currently broken for me - no more uploading to Glacier from my server.

On the other hand, why isn't this script using Python3? Even Squeeze includes Python3 already (though not installed by default). So if it's moved to Python3 it should be OK for basically anyone, if even Debian stable has it, it's hard to imagine that any somewhat recent distro's don't have it.

WIndows situation I don't know but I suppose it doesn't come with any version of python at all, so user has to install python anyway if they want to use this.

Talking about Windows:

  • how about logging there? Any reasonable safe place to write a log file? Does it have any syslog type feature? For glacier_lib I realise we must add syslog support as that's the only way to have a background task log without leaving log snippets all over the place.
  • where to store config files in Windows?

    — Reply to this email directly or view it on GitHubhttps://github.com/uskudnik/amazon-glacier-cmd-interface/issues/56#issuecomment-9011039.

wvmarle commented 11 years ago

Debian is not using bleeding edge, for sure. Squeeze even still has python 2.5 installed as alternative to the default 2.6.6! While what runs in 2.5 should run in 2.6.6 just fine.

As I understand it, Python 3 and Python 2 are not compatible. Scripts written for one do not always run in the other.

Python 3 is almost four years old already - what is the objection to using that version? Are there any recent Linux distros that do NOT have Python 3 included?

Pick-up overall is indeed very slow. Boto has a development version available for Python 3, for the rest I don't think there will be any library-issues for glacier-cmd. For me, when starting a new Python project now, I'd go for Python 3.

offlinehacker commented 11 years ago

You can always import from future On Sep 30, 2012 12:10 PM, "wvmarle" notifications@github.com wrote:

Debian is not using bleeding edge, for sure. Squeeze even still has python 2.5 installed as alternative to the default 2.6.6! While what runs in 2.5 should run in 2.6.6 just fine.

As I understand it, Python 3 and Python 2 are not compatible. Scripts written for one do not always run in the other.

Python 3 is almost four years old already - what is the objection to using that version? Are there any recent Linux distros that do NOT have Python 3 included?

Pick-up overall is indeed very slow. Boto has a development version available for Python 3, for the rest I don't think there will be any library-issues for glacier-cmd. For me, when starting a new Python project now, I'd go for Python 3.

— Reply to this email directly or view it on GitHubhttps://github.com/uskudnik/amazon-glacier-cmd-interface/issues/56#issuecomment-9012340.