Sonos v0.8.11, Python 2.5

Posted on
Wed Apr 01, 2015 3:41 pm
colinpartridge offline
Posts: 377
Joined: Jan 13, 2014
Location: London, UK

Re: Sonos

Getting the following error message on installation of the latest version..
Code: Select all
Starting plugin "Sonos 0.8.11" (pid 22323)
  Sonos Error                     Error in plugin execution InitializeMain:

Traceback (most recent call last):
  File "plugin.py", line 9, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 36, in <module>
<type 'exceptions.SyntaxError'>: ('invalid syntax', ('./lib/GoogleTTS/GoogleTTS.py', 106, 38, '            except urllib2.URLError as e:\n'))


Any ideas?

Colin

Posted on
Wed Apr 01, 2015 3:45 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Sonos v0.8.11, Python 2.5

Shoot - what version of OS X are you running?

colinpartridge wrote:
Getting the following error message on installation of the latest version..
Code: Select all
Starting plugin "Sonos 0.8.11" (pid 22323)
  Sonos Error                     Error in plugin execution InitializeMain:

Traceback (most recent call last):
  File "plugin.py", line 9, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 36, in <module>
<type 'exceptions.SyntaxError'>: ('invalid syntax', ('./lib/GoogleTTS/GoogleTTS.py', 106, 38, '            except urllib2.URLError as e:\n'))


Any ideas?

Colin

Posted on
Wed Apr 01, 2015 3:48 pm
colinpartridge offline
Posts: 377
Joined: Jan 13, 2014
Location: London, UK

Re: Sonos

Running 10.9.5 on a mac mini. I have reverted to 0.8.9 for now

Colin

Posted on
Wed Apr 01, 2015 3:51 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

It is a python2.5 -> 2.6 syntax issue. UGH!!! Let me see if I can change it up a bit.

colinpartridge wrote:
Running 10.9.5 on a mac mini. I have reverted to 0.8.9 for now

Colin

Posted on
Wed Apr 01, 2015 4:01 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

Would you mind downloading the plugin and trying again. I took out the offending statement. I did not increment the version number of the plugin.

Posted on
Thu Apr 02, 2015 1:04 am
colinpartridge offline
Posts: 377
Joined: Jan 13, 2014
Location: London, UK

Re: Sonos

nlagaros wrote:
Would you mind downloading the plugin and trying again. I took out the offending statement. I did not increment the version number of the plugin.


Have done so and now the error message is..
Code: Select all
Traceback (most recent call last):
  File "plugin.py", line 9, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 36, in <module>
  File "./lib/GoogleTTS/GoogleTTS.py", line 8, in <module>
<type 'exceptions.ImportError'>: cannot import name namedtuple


Edit> a quick google suggests that the namedtuple module isn't available in python 2.5. :(

Colin

Posted on
Thu Apr 02, 2015 7:09 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

Thanks for doing the research. Guess I got what I deserved for taking the quick way out. I'll slim down the code and remove the namedtuple requirement. Standby for a new release...

colinpartridge wrote:
nlagaros wrote:
Would you mind downloading the plugin and trying again. I took out the offending statement. I did not increment the version number of the plugin.


Have done so and now the error message is..
Code: Select all
Traceback (most recent call last):
  File "plugin.py", line 9, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 36, in <module>
  File "./lib/GoogleTTS/GoogleTTS.py", line 8, in <module>
<type 'exceptions.ImportError'>: cannot import name namedtuple


Edit> a quick google suggests that the namedtuple module isn't available in python 2.5. :(

Colin

Posted on
Thu Apr 02, 2015 2:45 pm
colinpartridge offline
Posts: 377
Joined: Jan 13, 2014
Location: London, UK

Re: Sonos

Just to report that 0.8.12 appears to be running ok under 10.9.5.
Cheers

Colin

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests