![]() |
#106 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 54
Karma: 558
Join Date: Oct 2009
Device: iPhone 3G 16GB, B&N nook
|
Quote:
That impresses me as quite strange behavior! I do occasionally find that some archive files, when they are double clicked, want to open in Stuffit Expander rather than Archive Utility. But even if they pick Stuffit Expander, they basically expand properly every time. Exception: as mentioned in earlier posts to this thread, certain ADE e-books that have known issues with their zip file internal formatting. Other than those, I have never had a problem with expanding zipped files, as long as they have downloaded aright, so I'm scratching my head as to what might be causing your problem. Later! Eric |
|
![]() |
![]() |
![]() |
#107 | |
Mesmerist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 331
Karma: 506558
Join Date: Sep 2009
Location: Spain
Device: PRS-600 Silver. Much nicer than I expected.
|
I am having trouble compiling pycrypto. I have the GCC-4.2 installed, but it gives me this error when I try sudo python setup.py build (or with python2.6):
Quote:
I have /Developer/SDKs/MacOSX10.5.sdk and /Developer/SDKs/MacOSX10.6.sdk I think I must have something hanging around from an earlier installation of the SDK that is telling python to use the GCC-4.0 I do have macports AND fink installed, maybe that is causing problems (I had some trouble compiling some ports when I upgraded to Snow Leopard). Any ideas? Thanks! |
|
![]() |
![]() |
Advert | |
|
![]() |
#108 |
Mesmerist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 331
Karma: 506558
Join Date: Sep 2009
Location: Spain
Device: PRS-600 Silver. Much nicer than I expected.
|
OK, I seem to at least have figured out what is wrong. I installed version 2.6 from python.org while I was messing around trying to get everything to work, and that seems to have screwed up the configuration, calling 2.6 some of the time. It switched the "default" to python 2.6, which does not exist. I moved the whole framework to the trash temporarily and typing "python" produces an error, but "/usr/bin/python" works fine. pycrypto builds, and ineptepub.py runs fine.
"env python" runs 2.6. I need to figure out how to set it back in all the places it was changed. I need to figure out where to set the default back |
![]() |
![]() |
![]() |
#109 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 54
Karma: 558
Join Date: Oct 2009
Device: iPhone 3G 16GB, B&N nook
|
Quote:
Take this with a grain of salt, but ... I had similar problems and found deleting (or, if you want to be able to undo it, moving the folder to the Desktop) the /Library/Frameworks/Python.framework/Versions/2.6/ folder and then reinstalling Python 2.6 and then PyCrypto from their respectively downloaded installers cleared things up. See https://www.mobileread.com/forums/sho...7&postcount=53 and its immediately preceding posts. I'm using Leopard, not Snow Leopard, but maybe the magic is the same. I imagine "going back to square one" with respect to the Python 2.6 and PyCrypto installs makes sure all the needed files and libraries are present and accounted for. Cheers, Eric |
|
![]() |
![]() |
![]() |
#110 |
Mesmerist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 331
Karma: 506558
Join Date: Sep 2009
Location: Spain
Device: PRS-600 Silver. Much nicer than I expected.
|
Thanks Eric,
I have had trouble with python installations like this before, going back years, when the fink version screws something up. I would just like to get back to the standard, built-in version. /usr/bin/python seems to be version 2.6.1 anyway, so it seems ok for now. |
![]() |
![]() |
Advert | |
|
![]() |
#111 |
Techno-geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
|
Can't seem to get PyCrypto installed
I have installed the Developer Tools and the package
http://tmrc.mit.edu/mirror/twisted/D....5_osx10.5.pkg PyCrypto 2.0.1 for OS X 10.5 I get the error: This script requires PyCrypto, which must beinstalled separately. Read top-of-script comment for details. Any help? New to Mac, old hand at PC. --MH |
![]() |
![]() |
![]() |
#112 |
Mesmerist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 331
Karma: 506558
Join Date: Sep 2009
Location: Spain
Device: PRS-600 Silver. Much nicer than I expected.
|
You could try what I did - call python using the full path /usr/bin/python, both to install the package and to run the scripts. You can have some confusion if you have multiple python instances installed (like Zope, or Plone, or something else). A lot of packages install python these days - I just found a copy in my OSGeo4W installation on BootCamp.
|
![]() |
![]() |
![]() |
#113 |
Techno-geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
|
I tried /usr/bin/python2.5 which worked so the PyCrpyto is installed with Python 2.5 and not 2.6. Is there a way to install it under 2.6?
|
![]() |
![]() |
![]() |
#114 | |
Mesmerist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 331
Karma: 506558
Join Date: Sep 2009
Location: Spain
Device: PRS-600 Silver. Much nicer than I expected.
|
Quote:
You can see what is in there with "ls -l /usr/bin/python*" You can also try "build" before "install", just to test it, but then you have to type "install" afterward to actually install it. What happened to me is that the 2.6 version of python, for some reason, made pycrypto try to compile with gcc-4.0 (which I don't have - I have gcc-4.2). I still haven't figured out why it did that, but I think it has something to do with the python installer. If you are on Snow Leopard, I think the installed python is 2.6.1 (at least that is what I get if I run /usr/bin/python). Good luck! Last edited by llreader; 12-13-2009 at 03:48 AM. |
|
![]() |
![]() |
![]() |
#115 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 37904
Join Date: Jan 2007
Location: The Netherlands
Device: Sony PRS-500, Kindle Paperwhite 3
|
@epstewart,
When running ADEPTKey Generator 1.1a I get the following error: Code:
unable to load Private Key 4386:error:0906D064:PEM routines:PEM_read_bio:bad base64 decode:pem_lib.c:757: |
![]() |
![]() |
![]() |
#116 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 54
Karma: 558
Join Date: Oct 2009
Device: iPhone 3G 16GB, B&N nook
|
Quote:
No idea. Could you tell me exactly in what form that message appears, i.e., is it in a dialog box, in Terminal, or what? Also, does it appear before or after you have been asked where to put the output ADEPT key file? Or, try running the script from Script Editor. Download and unzip link removed then open the .scpt file in Script Editor and click on the Run button. I can tell you that "unable to load Private Key" is not a message the script itself generates. But the script invokes a Unix "shell script" to do the actual work of generating the output file. I got the shell script from someone else and don't really know how it works. You might also try de-authorizing and then re-authorizing your ADE account, which ought to generate a new ~/Library/Application Support/Adobe/Digital Editions/activation.dat file. That file contains the Private Key. My script (via the Unix shell script) accesses that Private Key within that file and puts it in the adeptkey.der file for subsequent use. If you still need help, feel free to post whatever results you get to this thread, or else send me a private message ... Cheers, Eric EDIT: Or, try my earlier version: link removed I know version 1.1 works with 10.5 Leopard and has a problem with 10.6 Snow Leopard. Version 1.1a works with Snow Leopard, but maybe it sometimes fails with Leopard (even though it works on my copy of Leopard). Last edited by Alexander Turcic; 12-22-2009 at 04:52 AM. Reason: Fix location of activation.dat file |
|
![]() |
![]() |
![]() |
#117 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 37904
Join Date: Jan 2007
Location: The Netherlands
Device: Sony PRS-500, Kindle Paperwhite 3
|
Hi Eric,
The error comes after the selection window to choose the destination path and file. I also tried running the script itself, but that resulted in the same error. The message states the data is not base64. My guess is that the script can not find the key and is trying to use something else as key (hence the error message). How should that activation.dat file look like and where is the key located? Maybe I can then manually see what is the problem. Thanks, Erwin |
![]() |
![]() |
![]() |
#118 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 54
Karma: 558
Join Date: Oct 2009
Device: iPhone 3G 16GB, B&N nook
|
Quote:
Here is my own activation.dat file: http://epstewart.home.comcast.net/activation.dat There are <privateLicenseKey></privateLicenseKey> tags in it. In between is the key itself, which I believe corresponds to the one that may be messed up in your case. However, be aware that this is my key and will not work on anyone else's computer, since it is tied to the computer and user log-in of the Adobe Digital Editions user — me — that created it when he authorized ADE. You can inspect ~/Library/Application Support/Adobe/Digital Editions/activation.dat on your Mac, in the ~/ hierarchy for your log-in account. Maybe you can see what the problem is. I can't quite imagine why there is a complaint about "not being base-64," since I believe any string of bits can be interpreted as being base-64! Perhaps the problem is one of the length of the string not being appropriate to a string of base-64 digits. I.e., base-64 digits require 6 bits per digit, so maybe your key's length in bits is not divisible by 6. (If you inspect the file in TextEdit, you should see a bunch of gobbledygook between the <privateLicenseKey></privateLicenseKey> tags. Keep in mind that TextEdit is "seeing" 8-bit bytes, i.e., ASCII code.) Anyway, have you tried just de-activating and re-activating your account in ADE? I would trash your activation.dat file if it's still present after the de-activation, then re-activate, thus generating a new activation.dat file to use with the script. Or, create a new user account on your Mac and activate ADE under that account, and then see if the script works under that account. Good luck ... Eric |
|
![]() |
![]() |
![]() |
#119 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 54
Karma: 558
Join Date: Oct 2009
Device: iPhone 3G 16GB, B&N nook
|
Quote:
Eric |
|
![]() |
![]() |
![]() |
#120 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 37904
Join Date: Jan 2007
Location: The Netherlands
Device: Sony PRS-500, Kindle Paperwhite 3
|
@Eric,
My activation.dat file is slightly different: a lot of tags have "adept:" in the tag name, for instance: Code:
<adept:privateLicenseKey> You are wrong on base64: as the name suggests it encodes using 64 characters (6 bits at a time). Any other of the 64 selected characters is wrong and will give the mentioned error. Update: Success!! I was able to extract the key and decrypt a book. - Erwin Last edited by evdberg; 12-16-2009 at 05:06 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
If a pdf won't epub, try this (on a Mac) | Paulc15 | Kobo Reader | 6 | 05-09-2010 10:16 PM |
Sony ereader & Mac OSX | brockman | Introduce Yourself | 10 | 07-24-2009 03:37 PM |
How to use iLiad with Mac OsX? | jasem200 | iRex | 6 | 08-17-2008 10:48 AM |
Help with HandStory & Mac OSX! | daught | Reading and Management | 7 | 01-22-2004 12:44 PM |
Mac OSX vs Windows XP | Alexander Turcic | Lounge | 5 | 06-05-2003 01:30 PM |