Page 1 of 2

No pytz

PostPosted: Wed Aug 28, 2019 10:08 pm
by bjmouton
Please forgive my ignorance, but I am having difficulty getting started with this plugin. What do you mean by the following? Where do I run these commands?

If you don't have pip installed already, do:

Code: Select all
sudo easy_install pip

Install the Twilio library:
Code: Select all
sudo pip install twilio

Re: Twilio Getting Started

PostPosted: Thu Aug 29, 2019 5:49 am
by FlyingDiver
That step is no longer required. You should be following the instructions in the Wiki: https://github.com/FlyingDiver/Indigo-Twilio/wiki

Re: Twilio Getting Started

PostPosted: Thu Aug 29, 2019 9:20 pm
by bjmouton
The instructions in your link describe how to install the plugin, perhaps I didn't describe things well originally, I had the plugin installed, just couldn't create a new device associated with the plugin. I uninstalled it, download the latest one from github & re-installed. It shows up as enabled in the plugin list, but I still cannot create a new device to associate with, it does not show up in the list (see attachments). I have created my Twilio account and have the info described below, the part I can't seem to get to is "configure the plugin and create a Twilio device".

Now that you have an SID, Token, and Twilio number, you can configure the plugin and create a Twilio device. You create one device for each Twilio number assigned to your account.

Re: Twilio Getting Started

PostPosted: Fri Aug 30, 2019 5:48 am
by FlyingDiver
I need to see the Indigo log output when you restart the plugin. It's clearly not loading properly, since most of the menu entries are missing.

Re: Twilio Getting Started

PostPosted: Fri Aug 30, 2019 6:40 am
by bjmouton
I disable & re-enabled, below is log capture:

Code: Select all
   Disabling plugin "Twilio 7.2.0"
   Enabling plugin "Twilio 7.2.0"
   Starting plugin "Twilio 7.2.0" (pid 55964)
   Twilio Error                    Error in plugin execution InitializeMain:

Traceback (most recent call last):
  File "plugin.py", line 8, in <module>
ImportError: No module named pytz

   Stopping plugin "Twilio 7.2.0" (pid 55964)
   Stopped plugin "Twilio 7.2.0"

Re: Twilio Getting Started

PostPosted: Fri Aug 30, 2019 6:42 am
by bjmouton
BTW, my Indigo version is v7.3

Re: Twilio Getting Started

PostPosted: Fri Aug 30, 2019 7:02 am
by FlyingDiver
Huh. I didn't realize pytz wasn't part of the standard install. No one else has reported that error. Maybe everyone else had installed it using pip.

I'll have a fix later today.

Re: Twilio Getting Started

PostPosted: Fri Aug 30, 2019 4:21 pm
by FlyingDiver
So it looks like it is part of the standard install.

Code: Select all
Kraken:~ jkeenan$ pip2 install pytz
Requirement already satisfied: pytz in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (2013.7)


Try running that command in a terminal window and see what you get. If it give an error, just do "pip install pytz".

Re: Twilio Getting Started

PostPosted: Fri Aug 30, 2019 4:43 pm
by bjmouton
No go, below is terminal text:

The-Moutons-Mac-Mini:~ User$ pip install pytz
-bash: pip: command not found
The-Moutons-Mac-Mini:~ User$

Re: Twilio Getting Started

PostPosted: Fri Aug 30, 2019 4:52 pm
by FlyingDiver
Did you do anything like install a non-standard Python on this system?

Please do these commands in Terminal:

Code: Select all
python --version
which python
ls -l /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pytz*

Re: Twilio Getting Started

PostPosted: Fri Aug 30, 2019 5:02 pm
by bjmouton
Not to my knowledge.

Re: Twilio Getting Started

PostPosted: Fri Aug 30, 2019 5:13 pm
by FlyingDiver
OK, what OS version you running? Python 2.7.1 is pretty old.

Re: No pytz

PostPosted: Fri Aug 30, 2019 5:15 pm
by FlyingDiver
Moved to new thread.

Re: No pytz

PostPosted: Fri Aug 30, 2019 5:17 pm
by bjmouton
System Version: Mac OS X 10.7.5 (11G63)

Re: No pytz

PostPosted: Fri Aug 30, 2019 5:25 pm
by FlyingDiver
bjmouton wrote:
System Version: Mac OS X 10.7.5 (11G63)


Lion? Seriously?

I'm not going to jump through hoops to make this work on Lion. I doubt it would work even if you could get pytz installed, because that old a version of MacOS doesn't have the current SSL/TLS library needed for most cloud servers.

You need to upgrade.