tblancher / pymazon

Automatically exported from code.google.com/p/pymazon
Other
0 stars 0 forks source link

decryptor - ERROR - Input strings must be a multiple of 8 in length #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Attempt to execute from cli with the following
   $: pymazon -c -d ~/Music/ ~/Downloads/Amazon/<AMZ-file>.amz
2. I'm presented with the following:

##############################################
#                                            #
#                PYMAZON!                    # 
#                                            #
##############################################

Traceback (most recent call last):
  File "/usr/local/bin/pymazon", line 67, in <module>
    main()
  File "/usr/local/bin/pymazon", line 37, in main
    main(amzs)
  File "/usr/local/lib/python2.7/dist-packages/pymazon/cmd/ui.py", line 133, in main
    runner = CommandLineRunner(amzs)
  File "/usr/local/lib/python2.7/dist-packages/pymazon/cmd/ui.py", line 61, in __init__
    self.load_new_amz_files(amzs)        
  File "/usr/local/lib/python2.7/dist-packages/pymazon/cmd/ui.py", line 75, in load_new_amz_files
    parser.parse(f)
  File "/usr/local/lib/python2.7/dist-packages/pymazon/core/parser.py", line 155, in parse
    xml = decryptor.decrypt(amz_data)
  File "/usr/local/lib/python2.7/dist-packages/pymazon/core/decryptor.py", line 84, in decrypt
    raise de
pymazon.core.decryptor.DecryptException: Input strings must be a multiple of 8 
in length
$:

I'm using Pymazon-0.9 on Ubuntu 11.04 64bit.  Any help would be appreciated.

~~Chad~~

Original issue reported on code.google.com by archeryguru2000 on 6 Mar 2012 at 3:24

GoogleCodeExporter commented 8 years ago
As mentioned at the top of the home page, Amazon has changed the format of 
their .amz files. You'll need to update to Pymazon 0.9.1

Original comment by SCColbert@gmail.com on 6 Mar 2012 at 3:53

GoogleCodeExporter commented 8 years ago
Thanks.  Sorry for the confusion.  It is working fine now.  I just followed 
your download/install instructions on the home page.  You may want to update to 
reflect the newest version, i.e.:

$ wget http://pymazon.googlecode.com/files/Pymazon-0.9.1.tar.gz

Thanks again,
~~archery~~

Original comment by archeryguru2000 on 6 Mar 2012 at 4:06

GoogleCodeExporter commented 8 years ago
Ah I missed that one. Updated. Thanks!

Original comment by SCColbert@gmail.com on 6 Mar 2012 at 5:18

GoogleCodeExporter commented 8 years ago
SCC, I encountered this problem last night.  I think people may still be 
running into it as per following the instructions on the homepage I had 
installed Pymazon on Ubuntu (12.04 I believe off the top of my head) via either:
$ pip install pymazon
or
$ easy_install pymazon
Don't remember which one I started with but after getting the input string 
error I ran the alternate and I think the response was that I was already up to 
date.  Digging around it looks like I was only on version 0.9, so I downloaded 
the 0.9.1 tarball and ran that install.  (Still had an issue after that, had to 
uninstall 0.9 then it was OK)  Not sure how the code installed via 
pip/easy_install is maintained but it appears that needs to be updated.  If you 
need any details from my PC's setup to investigate why this happened I'm happy 
to oblige but I may need some guidance.

Thanks for your work on this!

-Craig

Original comment by craig....@gmail.com on 18 Feb 2014 at 5:15