uskudnik / amazon-glacier-cmd-interface

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

search does not work despite having bookkeeping enabled #12

Closed jose1711 closed 11 years ago

jose1711 commented 12 years ago

any idea why i am getting this with the latest version?

$ glacier.py search full Traceback (most recent call last): File "/home/jose/bin/glacier2/glacier/glacier.py", line 601, in main() File "/home/jose/bin/glacier2/glacier/glacier.py", line 598, in main args.func(args) File "/home/jose/bin/glacier2/glacier/glacier.py", line 346, in search before you can perform search.") Exception: You have to enable bookkeeping in your settings before you can perform search.

$ grep -i bookkee glacier_settings.py BOOKKEEPING = True BOOKKEEPING_DOMAIN_NAME = 'amazon-glacier'

thank you, jose

uskudnik commented 12 years ago

Hey Jose,

sorry for delayed reply - my mac died (a bit of water from me sure didn't help him ;)) and while I got a replacement laptop from my company I won't be setting my full development environment on this one since I have virtual images for work and a bit too little time to first set it up on this one and then re-set it again when I get a new one. I expect to buy replacement either this week, or in two to three weeks, depending on the supply, so I won't be able to help you out ASAP, sorry :/

That said, this looks like a bug with checking glacier_settings.py if installed through setup.py. Try running glacier.py from glacier/ directory (or from whatever directory you have glacier.py, glaciercorecalls.py and glacier_settings.py in).

Again, sorry for this nuisance :/

offlinehacker commented 12 years ago

We need to add glacier speciffic settings in local config file on user home path, for ex. ~/.glacier. Will do that.

uskudnik commented 11 years ago

Mhm, thats the solution.

Cool, thanks @offlinehacker :)

jose1711 commented 11 years ago

thank you both, for the time being i just put hardcoded values into the script and it seems to be working.

offlinehacker commented 11 years ago

I have added support for settings here using .glacier ini-formated file in home directory or in current working directory. You can see how to use from README. We still need to merge.

uskudnik commented 11 years ago

Seemed legit :)

I merged it already, if there are any problems do tell.