awslabs / ec2-migrate-longer-id

The code opts the entire account in to the longer id format for ec2 resources in each region with a single request. It will also print status and revert to shorter ids in case of problems.
Apache License 2.0
12 stars 13 forks source link

Change queue import to be Python 2.7 compliant #4

Closed dorth999 closed 8 years ago

dorth999 commented 8 years ago

Trying to 'import queue' from Python 2.7.3 will throw an error as the module is named Queue (note capital). In Python3 Queue got renamed to queue.

See http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html#othermodules

brete commented 8 years ago

If you read the README.md, you'll see that you need to do the following in python 2.7: pip install future This module installs queue so that you can import it and it is compatible with python 3. This is working as intended

dorth999 commented 8 years ago

The Debian/Ubuntu portion of the README.md lacks this information. I created another PR to add that.