Indy_Larry wrote:Hi Mike,
I'm not getting the setup screen to happen for me. For some reason in the event logs I'm getting the error saying I need requests.py to run the plugin <see event log>. I have the both the requests and six installed. Although I'm on Python 2.7.1 when I type "python requests" and "python six" I get no errors <see python terminal>. I've tried to delete the Plugin and reinstalling it. I do not see any preferences to be delete. Indigo is running on Mac Pro Server OS X 10.7.5
I'm sure it is something I have done, thanks for your help in advance
Sorry Larry I wanted to check with Jay and Matt before responding to your question because I thought I knew the answer but I wanted to be sure before I wrote it down.
Indigo 6.1 runs Python 2.6 (6.0 ran Python 2.5) and therefore expects any modules to be in the Python 2.6 instance on the MAC not the 2.7. From your helpful screen dumps it's clear that you've got requests.py and six.py installed BUT in the Python 2.7 instance. Indigo doesn't seem to care if Python 2.7 is the default (I know that mine was) it automatically uses the 2.6 instance that comes with 10.7.5 (as well as python 2.7).
So to get iFindStuff working on your setup we need to install requests.py and six.py into the python 2.6 space.
To install the request and six under the python 2.6 version we need to tell Terminal exactly where we want the package installed otherwise it will install requests and six under python 2.7 which is the default python version for most Mac systems and the one that's it's used in your case.
Easy install is a standard programme on MAC OS that we can use to install python libraries. As of version 0.6a11, Easy_Install installs itself under two names: easy_install and easy_install-N.N, where N.N is the Python version used to install it. Thus, if you install EasyInstall for both Python 2.6 and 2.7, you can use the easy_install-2.6 or easy_install-2.7 scripts to install packages for Python 2.6 or 2.7, respectively.
So to prepare your system for iFindStuff you need to do the following:
Open a Terminal window by clicking on Terminal in the /Applications/Utilities directory
Method 1When the
$ prompt appears you can start installing the packages you need with the following commands if you find that pip2.6 is already installed. Depending on your system you may be able to simply enter the following commands and everything will be set up if this is the case - its worth a try anyway before the slightly more complication method
$sudo pip2.6 install requestsfollowed by return (Entering your password if prompted)
$sudo pip2.6 install sixfollowed by return
That worked for me. However, as some systems don't have pip2.6 installed you'd need to do the following if that doesn't work
Method 2Type sudo easy_install-2.6 pip followed by return
When you enter this command you may be prompted for your system password. Type in your
password and press
returnNow you can install the packages in the following manner:
Type sudo easy_install-2.6 pip requests followed by return
Type sudo easy_install-2.6 pip six followed by return
Entering your password if prompted
You can test if your installation has worked properly by doing the following:
Type python2.6 following by return at the $ prompt
You will be presented with the python login prompt >>>
Now type import requests and the system should simply return with the >>> prompt again and no errors
Now type import six and the system should return with the >>> prompt for the final time
It's very important that you enter python2.6 to make sure that it looks at the right instance for testing!If you get an error saying that the package requests or six doesn’t exist then something hasn’t worked properly. Send me a screen grab of the error and I’ll try to help you sort it out.
Regards
Mike