For some reason python modules I install are not found within plugins after I upgraded to Indigo 7.
I know that Indigo 7 uses python 2.7 and I have reinstall the modules for 2.7.
I have tried multiple different ways and different modules, all with and without sudo:
- Code: Select all
pip install numpy
- Code: Select all
pip2.7 install numpy
- Code: Select all
sudo easy_install-2.7 pip numpy
I don't get any errors installing the modules and the are accessible within python:
- Code: Select all
python
Python 2.7.10 (default, Sep 23 2015, 04:34:14)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>>
Even if I run the Scripting Shell it works:
- Code: Select all
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
Connected to Indigo Server v7.0.1, api v2.0 (localhost:1176)
>>> import numpy
>>>
But when I try to start a plugin that uses that module I get:
- Code: Select all
Hue Lights Error Error in plugin execution InitializeMain:
Traceback (most recent call last):
File "plugin.py", line 427, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Hue Lights-2.indigoPlugin/Contents/Server Plugin/colormath/color_objects.py", line 4, in <module>
ImportError: No module named numpy
Stopping plugin "Hue Lights 1.4.4" (pid 461)