glacier-cli icon indicating copy to clipboard operation
glacier-cli copied to clipboard

OS X 10.8: Missing third party modules - iso8601 and sqlalchemy

Open grahammiln opened this issue 13 years ago • 10 comments

OS X 10.8.2 does not include the python modules iso8601 and sqlalchemy by default. Consider adding checks for third party modules.

$ ./glacier.py vault list
Traceback (most recent call last):
  File "./glacier.py", line 36, in <module>
    import iso8601
ImportError: No module named iso8601

Mac users can run the following commands to fix these dependencies:

sudo easy_install iso8601 sudo easy_install sqlalchemy

grahammiln avatar Sep 26 '12 10:09 grahammiln

What would you prefer to see instead? distutils? setuptools? Something else?

basak avatar Sep 26 '12 19:09 basak

I am not familiar with python but a runtime warning telling the user what modules are missing would be helpful.

If the warning can include instructions or a reference URL, that will likely help reduce your support burden.

grahammiln avatar Sep 27 '12 16:09 grahammiln

Why not add a setup.py with properly declared dependencies (including boto, apparently the current release contains glacier support), so the installation can be completely automated?

hinnerk avatar Sep 30 '12 16:09 hinnerk

@hinnerk that's exactly what I'm planning. I just need to verify that the current release contains enough that glacier-cli has everything it needs. When I gave it a cursory glace it looked like uploading archives would be broken, but I need to check this.

Once everything is in, I'll add a setup.py and upload it to pypi.

basak avatar Sep 30 '12 20:09 basak

boto 2.6.0 doesn't include this pull request, so glacier-cli still needs an as-yet unreleased version of boto. Once a version of boto with the required support is released, I'll add a setup.py and upload to pypi.

basak avatar Oct 01 '12 18:10 basak

So lets hope it makes it into 2.6.1.

hinnerk avatar Oct 01 '12 18:10 hinnerk

…and a year later I stumble about this again. m)

hinnerk avatar Nov 25 '13 21:11 hinnerk

@grahammiln thx! You've really helped me!

ikr avatar Jan 31 '14 13:01 ikr

Same problem on Ubuntu, I fixed this with

sudo apt-get install python-iso8601 python-sqlalchemy

amedee avatar Oct 28 '14 09:10 amedee

@amedee solution fixed it for our ubuntu box