RogueProeliator wrote:Weird, that file is still around, but not used... it definitely won't work on the current Indigo version of Python -- that was some of my experiments that I left in for the future when the version is increased. I've removed that reference from the newest version just posted -- please give it a try and let me know (same download link but should read 1.3.13 as the version now.)
Adam
Hi Adam,
It isn't your plugin, it was user (me) error.
The Mac Mini running Indigo is on Snow Leopard. Out of the box, i.e. I haven't changed anything, it has Python 2.5 and Python 2.6. The Indigo Terminal, using 2.5, couldn't find OpenSSL for import. 2.6 in a standard Terminal, could. This began a multi-hour journey of discovery!
Results?
Prebuilt binaries from egenix, various versions, just didn't work. Despite being pre-compiled it would then try to compile things and not work
Everything must be under 'sudo'. I should have known this.
Needed to switch the environment to the correct version the Apple way. The PYTHONPATH isn't even set. This was done with:
Code: Select all
sudo defaults write com.apple.versioner.python Version 2.5
pyopenssl version 0.14 didn't work and seems to have a lot of reported problems out in wild.
pyopenssl version 0.13 does compile and works.
The bit that took the most elapsed time:
pyopenssl compiled with the system set to 2.5 correctly puts the compiled package under /Library/Python/2.5/site-packages
/Library/Python/2.5/site-packages is in sys.path, from within Terminal and Indigo Terminal Python environment, yet it couldn't find crypto to import, which is a result of Import OpenSSL.
It took me a long while to realise that Python puts the current directory at the beginning of the path and I was testing Import OpenSSL from the directory I had compiled it.
It got confused, so couldn't find crypto.
So, my steps were:
Download pyopenssl 0.13 and unzip/ungzip it. Change to that directory.
Code: Select all
sudo defaults write com.apple.versioner.python Version 2.5
sudo python setup.py install
Sam.