View Single Post
Old 10-22-2009, 04:47 PM   #55
edembowski
Zealot
edembowski has a complete set of Star Wars action figures.edembowski has a complete set of Star Wars action figures.edembowski has a complete set of Star Wars action figures.edembowski has a complete set of Star Wars action figures.
 
edembowski's Avatar
 
Posts: 138
Karma: 372
Join Date: Apr 2008
Location: New York, NY
Device: Sony PRS-600, Nook Color, iPad
Quote:
Originally Posted by epstewart View Post
Ed, Howard, et al.:

I went back to square one and deleted /Library/Frameworks/Python.framework/Versions/2.6/ on my system and then reinstalled Python 2.6 and then PyCrypto from their respective downloaded installers ... and everything is working fine now!
...
Anyway, thanks for all your help.
I'm very glad to hear that you're working now!

Quote:
Now that I'm up and running, I'd like to ask for some clarifications about how all this works. First, I note that the original post said to rename my .pyw files and change their extensions to .py. What was that for? What is the significance of the "w" which I had to strip away?
The .pyw extension stands for 'Python for Windows' and it goes back to Microsoft's old limitation of 3 letter file extensions. The limit is no longer there, but it's kept that way for historical reasons. Macs (and Unix in general) uses .py

Quote:
Two, am I correct in saying that I can't run on a Mac the script that creates the adeptkey.der file, that it has to be run under Windows? Why is that? It would seem to be a major drawback, since a lot of Mac users don't have access to Windows. (I happen to be able to run Windows under Parallels Desktop, so I was able to get around this problem.)
The key is stored in a plain text file in clear text. Howard's PM should sort you out.

Quote:
Three, in installing PyCrypto, the associated README file suggests there is a need to run python setup.py build and python setup.py install. I find (1) only the latter is needed;
A dependency for installation is the file to install. The installer knows how to build it, so if you try to install without building, it will build automagically.

Quote:
(2) after a successful install of Python 2.6, invoking python from the command line in Terminal in fact uses Python 2.6, which is good;
Your mileage may vary. I've done the install and it keeps 2.5 as the default python. Maybe there's a preference pane that controls it, I haven't checked.

Quote:
(3) I had to include the full path to setup.py, i.e., /Users/eric/Desktop/INEPT/pycrypto-2.0.1/setup.py, by dragging the Finder icon of that file to the Terminal window. Does that square with your understanding?
I've never tried dragging things to the terminal window, it seems fishy to me. From the shell, I just `cd` to the right directory and take it from there.

- Ed
edembowski is offline   Reply With Quote