chrish wrote:Hi,
thank you for you plugin.
With Indigo 7.2 on a Mac with 10.7.5 I am not able to install this plugin.
The console always say the following:
Starting plugin "Fantastic Weather 0.2.06" (pid 548)
Fantastic Weather Error Error in plugin execution InitializeMain:
Traceback (most recent call last):
File "plugin.py", line 56, in <module>
ImportError: No module named pytz
Can you please help me?
Thank you in advance!
Chris
Hi Chrish -- sorry to hear that you're having trouble installing the plugin.
As far as I'm aware, the pytz module has been included with the base OS X Python install for quite some time, which leads me to believe that there may be a problem with your OS installation or that you have another installation of Python somewhere on your system. Please try the following steps and report back with the results.
From the Indigo menu, select
Open Scripting Shell (you will need to do this from the server machine). From within the shell, enter the following command and then hit enter:
- Code: Select all
import pytz
and copy the results to a reply. Then type
- Code: Select all
exit()
Then close out of the Indigo scripting shell.
Now, open up a
Terminal session and type the following command:
- Code: Select all
which python
and again, copy the results and paste them to the reply. You can then exit the terminal window by typing:
- Code: Select all
exit
My results look like this:
- Code: Select all
Python 2.7.10 (default, Aug 17 2018, 19:45:58)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)]
Connected to Indigo Server v7.2.0, api v2.0 (localhost:1176)
>>> import pytz
>>>
Last login: Tue Jan 22 06:46:27 on ttys000
Daves-MacBook-Air:~ dave$ which python
/usr/bin/python
Daves-MacBook-Air:~ dave$