Having Major Problem Installing Latest Sonos Plug-In

Posted on
Sat Nov 25, 2023 12:08 pm
pacman offline
Posts: 67
Joined: Sep 17, 2008
Location: Pacifica, CA

Having Major Problem Installing Latest Sonos Plug-In

I just deleted a post I composed yesterday as it was nonsensical. I have previous Indigo versions on my computer: 2021.2, 2022.2 and now 2023.1. After the upgrade to 2023.1 yesterday my Sonos plug-in failed. I went back to 2021.2 and it worked. Then I upgraded to 2022.2 and the plug-in still worked. I then updated my Python 2 scripts to Python3, no small task, and was good to go. But, this morning I noticed new plug-in versions including Sonos so I downloaded and installed them. The Sonos plug-in stopped! So I am thinking it's not compatible to 2022.2 Indigo version so I again upgrade Indigo to the latest version. Not working! I don't want to got through the 2021.2 -> 2022.2 upgrade again because I will have to fix all my scripts again. So now I'm stuck.

Any help getting this straitened out will be appreciated. I would pay for help at this point!

My Mac OS version is 11.4

Please help! Thanks.

Posted on
Sat Nov 25, 2023 12:30 pm
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Having Major Problem Installing Latest Sonos Plug-In

I think we need a bit more information in order to help.

Can you post the event log messages when the Sonos plugin stopped working and can you describe exactly what is happening?
Hopefully, that will give us a clue as to what is going wrong.

The updated Sonos plugin requires Python 3 and should run on Indigo 2022.1+

The previous version of the Sonos plugin will run on Indigo 2022.1 / 2022.2 but not Indigo 2023.1.

So you could downgrade to Indigo 2022.2, reinstall the previous version of the plugin and your changed scripts will work as Indigo 2022.2 supports Python 2 and Python 3.

However, the best solution would be to try and resolve why the Sonos plugin isn't working for you.

Posted on
Sun Nov 26, 2023 9:36 am
pacman offline
Posts: 67
Joined: Sep 17, 2008
Location: Pacifica, CA

Re: Having Major Problem Installing Latest Sonos Plug-In

Resolved! When I installed the latest plugin I failed to notice the Terminal instruction in the Event Log. After a couple of terminal sessions I got the plug-in to work. All it took was looking back at yesterday's log file. Thanks for the rapid response/support. Below is the text of actions taken:

___ Missed this instruction in log file; ran in Terminal 11/26 @ 06:37

pip3.10 install boto3==1.26.138
pip3.10 install gTTS==2.3.2
pip3.10 install lxml==4.9.2 --target "/Library/Application Support/Perceptive Automation/Indigo 2023.1/Preferences/Plugins/com.ssi.indigoplugin.Sonos.python_packages"
pip3.10 install mutagen==1.46.0
pip3.10 install pyvona==1.2.1
pip3.10 install Twisted==22.10.0
pip3.10 install xmltodict==0.13.0

____ Terminal Results

Collecting zope.interface>=4.4.2
Downloading zope.interface-6.1-cp310-cp310-macosx_11_0_arm64.whl (202 kB)
|████████████████████████████████| 202 kB 75.9 MB/s
Requirement already satisfied: typing-extensions>=3.6.5 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from Twisted==22.10.0) (4.6.3)
Collecting attrs>=19.2.0
Downloading attrs-23.1.0-py3-none-any.whl (61 kB)
|████████████████████████████████| 61 kB 36.5 MB/s
Collecting incremental>=21.3.0
Downloading incremental-22.10.0-py2.py3-none-any.whl (16 kB)
Collecting constantly>=15.1
Downloading constantly-23.10.4-py3-none-any.whl (13 kB)
Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from Automat>=0.8.0->Twisted==22.10.0) (1.16.0)
Requirement already satisfied: idna>=2.5 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from hyperlink>=17.1.1->Twisted==22.10.0) (3.4)
Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from zope.interface>=4.4.2->Twisted==22.10.0) (58.1.0)
Installing collected packages: attrs, zope.interface, incremental, hyperlink, constantly, Automat, Twisted
Successfully installed Automat-22.10.0 Twisted-22.10.0 attrs-23.1.0 constantly-23.10.4 hyperlink-21.0.0 incremental-22.10.0 zope.interface-6.1
WARNING: You are using pip version 21.2.4; however, version 23.3.1 is available.
You should consider upgrading via the '/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -m pip install --upgrade pip' command.
IndigoMini:~ glaciercontrol$ pip3.10 install xmltodict==0.13.0

___ Ran suggested pip upgrade

Last login: Sun Nov 26 06:17:48 on ttys000

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
IndigoMini:~ glaciercontrol$ /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -m pip install --upgrade pip
Requirement already satisfied: pip in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (21.2.4)
Collecting pip
Downloading pip-23.3.1-py3-none-any.whl (2.1 MB)
|████████████████████████████████| 2.1 MB 4.3 MB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.2.4
Uninstalling pip-21.2.4:
Successfully uninstalled pip-21.2.4
Successfully installed pip-23.3.1
IndigoMini:~ glaciercontrol$

___ Reinstalled pip commands

Last login: Sun Nov 26 06:24:45 on ttys001

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
IndigoMini:~ glaciercontrol$ pip3.10 install boto3==1.26.138
Requirement already satisfied: boto3==1.26.138 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (1.26.138)
Requirement already satisfied: botocore<1.30.0,>=1.29.138 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from boto3==1.26.138) (1.29.165)
Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from boto3==1.26.138) (1.0.1)
Requirement already satisfied: s3transfer<0.7.0,>=0.6.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from boto3==1.26.138) (0.6.2)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from botocore<1.30.0,>=1.29.138->boto3==1.26.138) (2.8.2)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from botocore<1.30.0,>=1.29.138->boto3==1.26.138) (1.26.18)
Requirement already satisfied: six>=1.5 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.30.0,>=1.29.138->boto3==1.26.138) (1.16.0)
IndigoMini:~ glaciercontrol$ pip3.10 install gTTS==2.3.2
Requirement already satisfied: gTTS==2.3.2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (2.3.2)
Requirement already satisfied: requests<3,>=2.27 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from gTTS==2.3.2) (2.31.0)
Requirement already satisfied: click<8.2,>=7.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from gTTS==2.3.2) (8.1.7)
Requirement already satisfied: charset-normalizer<4,>=2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests<3,>=2.27->gTTS==2.3.2) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests<3,>=2.27->gTTS==2.3.2) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests<3,>=2.27->gTTS==2.3.2) (1.26.18)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests<3,>=2.27->gTTS==2.3.2) (2023.5.7)
IndigoMini:~ glaciercontrol$ pip3.10 install lxml==4.9.2 --target "/Library/Application Support/Perceptive Automation/Indigo 2023.1/Preferences/Plugins/com.ssi.indigoplugin.Sonos.python_packages"
Collecting lxml==4.9.2
Downloading lxml-4.9.2.tar.gz (3.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.7/3.7 MB 20.0 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: lxml
Building wheel for lxml (pyproject.toml) ... done
Created wheel for lxml: filename=lxml-4.9.2-cp310-cp310-macosx_10_9_universal2.whl size=3180108 sha256=ef6061d1a8c83bd6f983647b41fda0e1ef88ad7e04e3452b020e232f83072ac5
Stored in directory: /Users/glaciercontrol/Library/Caches/pip/wheels/5a/51/0e/95b4a6ddee4a616530c36aeb03dafb5e04183756d9973a7d5d
Successfully built lxml
Installing collected packages: lxml
Successfully installed lxml-4.9.2
WARNING: Target directory /Library/Application Support/Perceptive Automation/Indigo 2023.1/Preferences/Plugins/com.ssi.indigoplugin.Sonos.python_packages/lxml already exists. Specify --upgrade to force replacement.
IndigoMini:~ glaciercontrol$ pip3.10 install mutagen==1.46.0
Requirement already satisfied: mutagen==1.46.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (1.46.0)
IndigoMini:~ glaciercontrol$ pip3.10 install pyvona==1.2.1
Requirement already satisfied: pyvona==1.2.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (1.2.1)
Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyvona==1.2.1) (2.31.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests->pyvona==1.2.1) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests->pyvona==1.2.1) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests->pyvona==1.2.1) (1.26.18)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests->pyvona==1.2.1) (2023.5.7)
IndigoMini:~ glaciercontrol$ pip3.10 install Twisted==22.10.0
Requirement already satisfied: Twisted==22.10.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (22.10.0)
Requirement already satisfied: zope.interface>=4.4.2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from Twisted==22.10.0) (6.1)
Requirement already satisfied: constantly>=15.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from Twisted==22.10.0) (23.10.4)
Requirement already satisfied: incremental>=21.3.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from Twisted==22.10.0) (22.10.0)
Requirement already satisfied: Automat>=0.8.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from Twisted==22.10.0) (22.10.0)
Requirement already satisfied: hyperlink>=17.1.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from Twisted==22.10.0) (21.0.0)
Requirement already satisfied: attrs>=19.2.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from Twisted==22.10.0) (23.1.0)
Requirement already satisfied: typing-extensions>=3.6.5 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from Twisted==22.10.0) (4.6.3)
Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from Automat>=0.8.0->Twisted==22.10.0) (1.16.0)
Requirement already satisfied: idna>=2.5 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from hyperlink>=17.1.1->Twisted==22.10.0) (3.4)
Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from zope.interface>=4.4.2->Twisted==22.10.0) (58.1.0)
IndigoMini:~ glaciercontrol$ pip3.10 install xmltodict==0.13.0

___ Stop-Start local server with these errors

Sonos Error __INIT__ PLUGIN STOPPED AS PYTHON PACKAGE(S) REQUIRE INSTALLING | UPDATING:

The 'xmltodict' package needs to be installed or updated.

Copy and paste the following pip command into a terminal window and press return:

pip3.10 install xmltodict==0.13.0


Once installed | updated, reload the Plugin.


Sonos Plugin __init__ ended.
Started plugin "Sonos 2023.0.27"
Sonos Plugin startup started.
Sonos Plugin being stopped.
Stopping plugin "Sonos 2023.0.27" (pid 78154)
Sonos Plugin stop request completed.
Sonos Plugin startup ended.
Waiting for external plugins to initialize
DSC Alarm Initializing communication at address: 192.168.0.160:4025
DSC Alarm Communication established
DSC Alarm Connected to Envisalink.
Starting triggers and schedules

Nov 26, 2023 at 6:44:37 AM
Stopped plugin "Sonos 2023.0.27"

Nov 26, 2023 at 6:45:00 AM
Embedded script executor host1 started

Posted on
Sun Dec 03, 2023 8:46 am
eric offline
Posts: 59
Joined: Dec 22, 2014

Re: Having Major Problem Installing Latest Sonos Plug-In

Hi - regarding this, on both of my Indigo servers located in two different houses and on two different types of computers, I am getting this same message when trying the terminal commands.

All of the terminal commands are successful except for:

pip3.10 install lxml==4.9.2 --target "/Library/Application Support/Perceptive Automation/Indigo 2023.1/Preferences/Plugins/com.ssi.indigoplugin.Sonos.python_packages"

which returns this error (on both systems it's a similar error):

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Perhaps try: xcode-select --install
*********************************************************************************
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lxml
Failed to build lxml
ERROR: Could not build wheels for lxml, which is required to install pyproject.toml-based projects

Posted on
Sun Dec 03, 2023 9:25 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Having Major Problem Installing Latest Sonos Plug-In

That looks like you have not installed Xcode and it's command line tools. Those are needed for some Python libraries that need to be compiled.

Install Xcode from the app store, then run "xcode-select --install" in the Terminal to install the command line tools.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Dec 03, 2023 10:29 am
eric offline
Posts: 59
Joined: Dec 22, 2014

Re: Having Major Problem Installing Latest Sonos Plug-In

Thank you! That worked.

One quick note to those who are reading this – after installing Xcode from the app store you must agree to the license, which can be done from within the terminal (instructions given) before the rest of this will work.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 13 guests