Help us understand the problem. What is going on with this article?

Amazon Glacier CLI(Python)のインストール

More than 5 years have passed since last update.

Amazon Glacierのコマンドラインインターフェースのインストールをする。

本体はここ。
https://github.com/uskudnik/amazon-glacier-cmd-interface

基本sudoで操作した(もっとキッチリできるのかも知れぬが…)。

$ git clone https://github.com/uskudnik/amazon-glacier-cmd-interface.git
$ cd amazon-glacier-cmd-interface
$ python setup.py install

Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    from setuptools import setup
ImportError: No module named setuptools

setuptoolsが必要らしい。

http://d.hatena.ne.jp/torutk/20080614/p1
を参考にして(多謝)、

$ wget http://peak.telecommunity.com/dist/ez_setup.py
$ python ez_setup.py 

Downloading http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
Processing setuptools-0.6c11-py2.6.egg
Copying setuptools-0.6c11-py2.6.egg to /usr/local/lib/python2.6/dist-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.6 script to /usr/local/bin

Installed /usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11

改めて

$ cd amazon-glacier-cmd-interface
$ python setup.py install

イロイロ入るようだが、暫く待てばインストール完了

$ glacier-cmd
usage: glacier-cmd [-h] [-c FILE] [--logtostdout] --aws-access-key
                   AWS_ACCESS_KEY --aws-secret-key AWS_SECRET_KEY --region
                   REGION [--bookkeeping] [--no-bookkeeping]
                   [--bookkeeping-domain-name BOOKKEEPING_DOMAIN_NAME]
                   [--logfile LOGFILE]
                   [--loglevel {-1,DEBUG,0,INFO,1,WARNING,2,ERROR,3,CRITICAL}]
                   [--output {print,csv,json}]
                   [--sdb-access-key SDB_ACCESS_KEY]
                   [--sdb-secret-key SDB_SECRET_KEY] [--sdb-region SDB_REGION]

                   {listjobs,treehash,lsvault,mkvault,search,rmarchive,getarchive,upload,listmultiparts,describevault,inventory,rmvault,download,abortmultipart,describejob,sns}
                   ...
glacier-cmd: error: too few arguments

設定があるようだが、それはまた今度書く。

ms2sato
何でも屋だが、最近はRails中心。JavaScript好き。レビューやタスク分解が多くて近頃仕事ではコード書けていない。仕事でもプライベートでもコラボできる人が常に欲しい人。 会社では人を育てるの中心で https://circlearound.co.jp/training/ こんなのやってます。 独り言はこっち https://ms2sato.circlearound.co.jp
https://circlearound.co.jp
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした