New version to fix another Sonos customsd change

90 views
Skip to first unread message

Mark Henkelis

unread,
Nov 19, 2017, 5:16:59 PM11/19/17
to Sonospy Development
Hi,

I've just updated to the new Sonos version (8.2) and noticed that Sonos have changed the customsd page again - this time they've introduced some invalid XHTML, so I've had to change the code that finds the csrf token. There's a new msrefactor5 version containing the change.

Basically if you use the old code and try to add a new SMAPI service, the call to create it won't succeed (neither will the one to remove any old services, so if you don't change your service you won't see the error).

Mark.

Bartolome Soriano

unread,
Nov 20, 2017, 11:18:25 AM11/20/17
to sonosp...@googlegroups.com
Mark,

I just tried this and got the following error:

Traceback (most recent call last):
  File "pycpoint.py", line 71, in <module>
    from customsd import post_customsd
  File "F:\Sonospy\sonospy\customsd.py", line 5, in <module>
    from lxml import etree as ET
ImportError: No module named lxml

Please advise.  Thanks.

Regards,

Bart

--
You received this message because you are subscribed to the Google Groups "Sonospy Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonospy-devel+unsubscribe@googlegroups.com.
To post to this group, send email to sonosp...@googlegroups.com.
Visit this group at https://groups.google.com/group/sonospy-devel.
For more options, visit https://groups.google.com/d/optout.

Mark Henkelis

unread,
Nov 20, 2017, 12:50:12 PM11/20/17
to sonosp...@googlegroups.com
Sorry, schoolboy error, should have done some testing. I added an external lib that I happened to have installed on my Linux dev machine. I've replaced that with an alternate method now and pushed a fix. Mark.
To unsubscribe from this group and stop receiving emails from it, send an email to sonospy-deve...@googlegroups.com.

Bartolome Soriano

unread,
Nov 20, 2017, 1:44:27 PM11/20/17
to sonosp...@googlegroups.com
Thanks Mark, it works now.
Reply all
Reply to author
Forward
0 new messages