Sonos Python 3 Beta

Posted on
Fri Oct 06, 2023 9:36 am
jay (support) offline
Site Admin
User avatar
Posts: 18243
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Sonos Python 3 Beta

Open a terminal window and paste in each of these lines one at a time, then copy/paste the results into a reply:

Code: Select all
whoami
ls -la "/Library/Application Support/Perceptive Automation"
ls -la "/Library/Application Support/Perceptive Automation/images"
ls -la "/Library/Application Support/Perceptive Automation/images/Sonos"
ls -la "/Library/Application Support/Perceptive Automation/Indigo 2023.1/Plugins/"

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Oct 06, 2023 10:05 am
mvignola29 offline
Posts: 56
Joined: Sep 26, 2015

Re: Sonos Python 3 Beta

Studio running Sonoma, I used this same machine prior to updates with no problems


o update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Studio:~ michael$ ls -la "/Library/Application Support/Perceptive Automation"
total 24
drwxrwxrwx@ 19 root wheel 608 Oct 3 16:51 .
drwxr-xr-x 66 root admin 2112 Sep 28 10:36 ..
-rw-r--r--@ 1 michael wheel 10244 Oct 6 10:55 .DS_Store
drwxrwxr-x 11 michael admin 352 Oct 5 18:51 Indigo 2021.1
drwxrwxr-x 11 michael admin 352 Oct 5 18:51 Indigo 2021.2
drwxrwxr-x 13 michael admin 416 Apr 30 08:40 Indigo 2022.1
drwxrwxr-x 13 michael admin 416 Oct 3 12:28 Indigo 2022.2
drwxrwxrwx 12 michael admin 384 Oct 6 09:21 Indigo 2023.1
drwxrwxrwx 10 root wheel 320 Oct 5 18:51 Indigo 4
drwxrwxr-x 12 504 admin 384 Nov 18 2016 Indigo 6
drwxrwxr-x 14 michael admin 448 Oct 9 2018 Indigo 7
drwxrwxr-x 13 michael admin 416 May 10 2019 Indigo 7.2
drwxrwxr-x 13 michael admin 416 Oct 5 18:51 Indigo 7.3
drwxrwxr-x 13 michael admin 416 Oct 5 18:51 Indigo 7.4
drwxrwxr-x 12 michael admin 384 Oct 5 18:51 Indigo 7.5
drwxr-xr-x 2 root wheel 64 Feb 13 2020 Python2-includes
drwxrwxr-x 2 michael admin 64 May 11 2022 Python3-includes
drwxrwxr-x 2 michael admin 64 Feb 13 2020 Scripts
drwxr-xr-x 3 504 admin 96 Sep 17 2015 images
Studio:~ michael$


total 0
drwxr-xr-x 3 504 admin 96 Sep 17 2015 .
drwxrwxrwx@ 19 root wheel 608 Oct 3 16:51 ..
drwxr-xr-x 10 504 admin 320 Oct 16 2015 Sonos
Studio:~ michael$


total 304
drwxr-xr-x 10 504 admin 320 Oct 16 2015 .
drwxr-xr-x 3 504 admin 96 Sep 17 2015 ..
-rw------- 1 504 admin 13441 Jul 21 2012 Driveway_art.jpg
-rw-r--r-- 1 504 admin 40610 Oct 2 2015 Family Room_art.jpg
-rw------- 1 504 admin 13441 Jul 21 2012 Font Yard_art.jpg
-rw------- 1 504 admin 7623 Jan 27 2018 Garage_art.jpg
-rw------- 1 504 admin 24119 Jan 27 2018 Living Room_art.jpg
-rw------- 1 504 admin 13441 Jul 21 2012 Patio Deck_art.jpg
-rw------- 1 504 admin 13441 Jul 21 2012 Patio_art.jpg
-rw------- 1 504 admin 13441 Jul 21 2012 Portable_art.jpg
Studio:~ michael$


total 24
drwxrwxrwx 8 michael admin 256 Oct 6 10:55 .
drwxrwxrwx 12 michael admin 384 Oct 6 09:21 ..
drwxrwxrwx 3 michael admin 96 Sep 29 15:19 .Action Collection.indigoPlugin
-rw-rw-rw-@ 1 michael admin 8196 Oct 6 10:50 .DS_Store
drwxrwxrwx 3 michael admin 96 Sep 29 15:19 .INSTEON Commands.indigoPlugin
drwxrwxrwx 3 michael admin 96 Sep 29 15:19 .Web Server.indigoPlugin
drwxrwxrwx 3 michael admin 96 Sep 29 15:19 Email+.indigoPlugin
drwxrwxrwx 3 michael admin 96 Sep 29 15:19 Virtual Devices.indigoPlugin
Studio:~ michael$

Posted on
Fri Oct 06, 2023 10:15 am
mvignola29 offline
Posts: 56
Joined: Sep 26, 2015

Re: Sonos Python 3 Beta

Sorry jay ,the prior data I had the sonos plugin turn to disable after enable it again
here the data with sonos plugin enabled

Code: Select all
Studio:~ michael$ ls -la "/Library/Application Support/Perceptive Automation"
total 24
drwxrwxrwx@ 19 root     wheel    608 Oct  3 16:51 .
drwxr-xr-x  66 root     admin   2112 Sep 28 10:36 ..
-rw-r--r--@  1 michael  wheel  10244 Oct  6 10:55 .DS_Store
drwxrwxr-x  11 michael  admin    352 Oct  5 18:51 Indigo 2021.1
drwxrwxr-x  11 michael  admin    352 Oct  5 18:51 Indigo 2021.2
drwxrwxr-x  13 michael  admin    416 Apr 30 08:40 Indigo 2022.1
drwxrwxr-x  13 michael  admin    416 Oct  3 12:28 Indigo 2022.2
drwxrwxrwx  12 michael  admin    384 Oct  6 09:21 Indigo 2023.1
drwxrwxrwx  10 root     wheel    320 Oct  5 18:51 Indigo 4
drwxrwxr-x  12 504      admin    384 Nov 18  2016 Indigo 6
drwxrwxr-x  14 michael  admin    448 Oct  9  2018 Indigo 7
drwxrwxr-x  13 michael  admin    416 May 10  2019 Indigo 7.2
drwxrwxr-x  13 michael  admin    416 Oct  5 18:51 Indigo 7.3
drwxrwxr-x  13 michael  admin    416 Oct  5 18:51 Indigo 7.4
drwxrwxr-x  12 michael  admin    384 Oct  5 18:51 Indigo 7.5
drwxr-xr-x   2 root     wheel     64 Feb 13  2020 Python2-includes
drwxrwxr-x   2 michael  admin     64 May 11  2022 Python3-includes
drwxrwxr-x   2 michael  admin     64 Feb 13  2020 Scripts
drwxr-xr-x   3 504      admin     96 Sep 17  2015 images
Studio:~ michael$


total 0
drwxr-xr-x   3 504   admin   96 Sep 17  2015 .
drwxrwxrwx@ 19 root  wheel  608 Oct  3 16:51 ..
drwxr-xr-x  10 504   admin  320 Oct 16  2015 Sonos
Studio:~ michael$


total 304
drwxr-xr-x  10 504  admin    320 Oct 16  2015 .
drwxr-xr-x   3 504  admin     96 Sep 17  2015 ..
-rw-------   1 504  admin  13441 Jul 21  2012 Driveway_art.jpg
-rw-r--r--   1 504  admin  40610 Oct  2  2015 Family Room_art.jpg
-rw-------   1 504  admin  13441 Jul 21  2012 Font Yard_art.jpg
-rw-------   1 504  admin   7623 Jan 27  2018 Garage_art.jpg
-rw-------   1 504  admin  24119 Jan 27  2018 Living Room_art.jpg
-rw-------   1 504  admin  13441 Jul 21  2012 Patio Deck_art.jpg
-rw-------   1 504  admin  13441 Jul 21  2012 Patio_art.jpg
-rw-------   1 504  admin  13441 Jul 21  2012 Portable_art.jpg
Studio:~ michael$


total 24
drwxrwxrwx   9 michael  admin   288 Oct  6 12:09 .
drwxrwxrwx  12 michael  admin   384 Oct  6 09:21 ..
drwxrwxrwx   3 michael  admin    96 Sep 29 15:19 .Action Collection.indigoPlugin
-rw-rw-rw-@  1 michael  admin  8196 Oct  6 10:50 .DS_Store
drwxrwxrwx   3 michael  admin    96 Sep 29 15:19 .INSTEON Commands.indigoPlugin
drwxrwxrwx   3 michael  admin    96 Sep 29 15:19 .Web Server.indigoPlugin
drwxrwxrwx   3 michael  admin    96 Sep 29 15:19 Email+.indigoPlugin
drwxrwxrwx@  3 michael  admin    96 Oct  4 16:07 Sonos.indigoPlugin
drwxrwxrwx   3 michael  admin    96 Sep 29 15:19 Virtual Devices.indigoPlugin
Studio:~ michael$

Posted on
Fri Oct 06, 2023 11:06 am
jay (support) offline
Site Admin
User avatar
Posts: 18243
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Sonos Python 3 Beta

As you can see, somehow you've got a permission problem. On several directories, you have user number 503 rather than user michael, and specifically in the Sonos directory all the files are only readable by user 503 only, which is causing the issue above. The Indigo installer probably tried to fix it, but that weird 503 user (since it shows no user name) is likely causing failures.

Also, permissions seem to be messed up as well. No idea how that happened, though other misbehaving installers often stomp all over permissions as do Migration Assistant and Time Machine restores.

Try this:

Code: Select all
chown -R michael "/Library/Application Support/Perceptive Automation/images"


If it gives you an Operation not permitted error, then try this:

Code: Select all
sudo chown -R michael "/Library/Application Support/Perceptive Automation/images"


If this also fails, you may need to enable root access before doing it.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Oct 06, 2023 12:26 pm
mvignola29 offline
Posts: 56
Joined: Sep 26, 2015

Re: Sonos Python 3 Beta

The first line you gave me when entering into terminal got reply Operation not permitted

I then enter the second line you gave me and it ran and prompt me for password which I entered. I then stop the indigo server and program. After turning it back on all of the red error message were gone and now the only message I get in yellow

Optional 'pandora' Package is missing.

If you need it, copy and paste the following pip command into a terminal window and press return:

pip3.10 install pandora==1.5.0

Once any of the optional package(s) listed above have been installed, reload the Plugin.

After loading pandora line many lines appear and the same pandora message again in yellow'

Shut down server and application

turn on Application again and I think & hope all is now working

Here is the current event log

Oct 6, 2023 at 2:21:48 PM
Starting Indigo Server version 2023.1.0 on macOS Version 14.0 (Build 23A344)
Loading database "/Users/michael/Desktop/Desktop - Folders/Bryson 37 (v2021.1.2) (v2021.1.2).indiDb"
Waiting for client to connect
Indigo Cocoa client connected
Waiting for client to sync
Finding disabled plugins
Found disabled interface "Z-Wave 2023.1.0" using API v3.3
Found disabled plugin "Global Property Manager 2023.1.0" using API v3.3
Found disabled plugin "Timers and Pesters 2023.1.0" using API v3.3
Found disabled plugin "Alexa 2023.1.0" using API v3.3
Found disabled plugin "Airfoil Pro 2023.1.0" using API v3.3
Found disabled plugin "NOAA Weather 2023.1.0" using API v3.3
Found disabled plugin "SQL Logger 2023.1.0" using API v3.3
Found disabled plugin "EasyDAQ Relay Card 2023.1.0" using API v3.3
Loading internal plugins
Loading interface "Virtual Devices 2023.1.0" using API v3.3
Starting interface "Virtual Devices 2023.1.0" (pid 22034)
Loading plugin "Web Server 2023.1.0" using API v3.3
Starting plugin "Web Server 2023.1.0" (pid 22035)
Loading interface "INSTEON Commands 2023.1.0" using API v3.3
Starting interface "INSTEON Commands 2023.1.0" (pid 22036)
Loading plugin "Action Collection 2023.1.0" using API v3.3
Starting plugin "Action Collection 2023.1.0" (pid 22037)
Loading plugin "Email+ 2023.1.0" using API v3.3
Starting plugin "Email+ 2023.1.0" (pid 22038)
Started interface "Virtual Devices 2023.1.0"
Started interface "INSTEON Commands 2023.1.0"
Started plugin "Email+ 2023.1.0"
Started plugin "Action Collection 2023.1.0"
Started plugin "Web Server 2023.1.0"
Web Server starting internal Web server on http://localhost:8176
Waiting for internal plugins to initialize
Bonjour registered "Indigo - Bryson 37 (v2021.1.2) (v2021.1.2)"
Reflector starting reflector connection to https://mvignola29.indigodomo.net
Loading external plugins
Loading plugin "Sonos 2023.0.27" using API v3.1
Starting plugin "Sonos 2023.0.27" (pid 22047)
Sonos Plugin logging now started.
Sonos Loaded Sonos Favorites... [4]
Sonos Loaded Playlists... [15]
Sonos Loaded RadioTime Favorite Stations... [2]
Sonos [Fri Oct 6 14:21:57 2023] Processed plugin preferences.
Sonos Plugin __init__ ended.
Started plugin "Sonos 2023.0.27"
Sonos Plugin startup started.
Sonos [Fri Oct 6 14:21:57 2023] Processed plugin preferences.
Sonos Serving HTTP Streamer on 127.0.0.1 [0.0.0.0], port 8888
Waiting for external plugins to initialize
Sonos Loaded Apple Voices.. [145]
Sonos SSDP Listener Started...
Sonos Plugin startup ended.
Sonos Adding ZonePlayer: 10.0.0.92, RINCON_000E58DC080001400, Driveway
Sonos Adding ZonePlayer: 10.0.0.203, RINCON_B8E937A762CA01400, Front Yard
Sonos Adding ZonePlayer: 10.0.0.40, RINCON_000E58140C8201400, Garage
Sonos Adding ZonePlayer: 10.0.0.194, RINCON_000E5822210C01400, Living Room
Sonos Adding ZonePlayer: 10.0.0.226, RINCON_000E5831EDF601400, Patio
Sonos Adding ZonePlayer: 10.0.0.159, RINCON_000E5880C39E01400, Portable
Starting triggers and schedules

Oct 6, 2023 at 2:22:03 PM
Sonos SoCo Reactor Ignition...
Connected to PowerLinc 2413U interface on port usbserial-A600B39R
PowerLinc address 41.EC.32, firmware version 9.14
Sonos Loaded Playlists... [15]

Posted on
Fri Oct 06, 2023 1:33 pm
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Sonos Python 3 Beta

That all seems OK from a startup point of view..

When you play something on one of your Sonos players, is the Indigo User Interface, main window showing the device as playing, with the custom states updating?

Posted on
Fri Oct 06, 2023 2:20 pm
mvignola29 offline
Posts: 56
Joined: Sep 26, 2015

Re: Sonos Python 3 Beta

I am currently playing the player in my living room and the portable player in my office
See attached as to what is playing and what is stopped
Attachments
Screenshot 2023-10-06 at 4.14.54 PM.jpeg
Screenshot 2023-10-06 at 4.14.54 PM.jpeg (66.51 KiB) Viewed 114134 times

Posted on
Fri Oct 06, 2023 2:22 pm
mvignola29 offline
Posts: 56
Joined: Sep 26, 2015

Re: Sonos Python 3 Beta

Thanks for all your help and resolving my issue. I truly appreciate it. Thanks again.

Posted on
Sat Oct 07, 2023 2:10 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Sonos Python 3 Beta

Londonmark wrote:
autolog wrote:
Londonmark wrote:
Jon - really no problem at all. Great if you manage to look at it at some stage, but also understand if you never get round to it. Life...

Interestingly, my Intel Mac is showing all states but my M1 mini isn't.
I will dig deeper and try and figure out why that is happening.

Are you on an Apple Silicon Mac?
Yes. M2 Studio.


Can you exactly define the issue you are seeing again, so that I can take a look at it.

The problem I was seeing with my M1 Mac mini turned out to be a Sonos plugin configuration error. It is now corrected and working on my system.

Posted on
Sat Oct 07, 2023 8:02 am
Londonmark offline
Posts: 509
Joined: Feb 29, 2012

Re: Sonos Python 3 Beta

Can you exactly define the issue you are seeing again, so that I can take a look at it.


The issue has been about player states not updating - especially for grouped players. However, prompted by your suggestion that there might be a rogue setting somewhere, I have now removed an apostrophe from a player name and I think it may be working. Will test it a bit further. Sorry for what I hope turns out to be a false alarm.

Posted on
Sat Oct 07, 2023 9:50 am
Londonmark offline
Posts: 509
Joined: Feb 29, 2012

Re: Sonos Python 3 Beta

Londonmark wrote:
Can you exactly define the issue you are seeing again, so that I can take a look at it.


The issue has been about player states not updating - especially for grouped players. However, prompted by your suggestion that there might be a rogue setting somewhere, I have now removed an apostrophe from a player name and I think it may be working. Will test it a bit further. Sorry for what I hope turns out to be a false alarm.
I was too quick. Strange things still going on where the plugin thinks players are a part of a group they are not part of.

One simple thing that is definitely not working as it should is updating the ZoneGroupName. If that would update all my problems would be solved!

The more complex thing that’s not updating is ZonePlayerUUIDsInGroup. That frequently gets out of sync with what’s actually going on on with my Sonos system.

Posted on
Sat Oct 07, 2023 11:15 am
Londonmark offline
Posts: 509
Joined: Feb 29, 2012

Re: Sonos Python 3 Beta

Also getting quite a lot of these sorts of errors in the log...

Code: Select all
 Sonos Error                     UPNP Error: Invalid Args
   Sonos Error                     Offending Command -> zoneIP: 192.168.1.200, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: SetAVTransportURI
   Sonos Error                     Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>402</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>
   Sonos Error                     UPNP Error: Invalid Args
   Sonos Error                     Offending Command -> zoneIP: 192.168.1.63, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: SetAVTransportURI
   Sonos Error                     Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>402</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>
   Sonos Error                     UPNP Error: Invalid Args
   Sonos Error                     Offending Command -> zoneIP: 192.168.1.200, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: SetAVTransportURI
   Sonos Error                     Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>402</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>
   Sonos Error                     UPNP Error: Unable to Play the Selected Item
   Sonos Error                     Offending Command -> zoneIP: 192.168.1.65, soapRoot: /MediaRenderer, soapBranch: /Queue, soapAction: SaveAsSonosPlaylist
   Sonos Error                     Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>800</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>

Posted on
Mon Oct 09, 2023 9:52 am
ryanbuckner offline
Posts: 1081
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Sonos Python 3 Beta

I keep getting this popup on the server. I can cancel it or "Allow Anyway" in Privacy Settings but it keeps popping up again.

MacOS Catalina
Indigo 2023.1

sonos-error.png
sonos-error.png (185.19 KiB) Viewed 113915 times

Posted on
Mon Oct 09, 2023 10:30 am
FlyingDiver offline
User avatar
Posts: 7238
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Sonos Python 3 Beta

Try:

Code: Select all
sudo xattr -rd com.apple.quarantine /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2023.1/Plugins

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

Posted on
Mon Oct 09, 2023 10:44 am
ryanbuckner offline
Posts: 1081
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Sonos Python 3 Beta

Before I do that, I'm not having this issue with any other Plugins.

Who is online

Users browsing this forum: No registered users and 2 guests

cron