Page 1 of 1

Error in plugin startup

PostPosted: Sat Jan 28, 2017 9:24 am
by Asconasny
Hi
Get this Error when trying to start it. Any suggestions?

Code: Select all
   Starting plugin "EPS - Super Conditions 0.5" (pid 70178)
   EPS - Super Conditions Error    Error in plugin execution InitializeMain:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "plugin.py", line 43, in __init__
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS Super Conditions.indigoPlugin/Contents/Server Plugin/lib/eps.py", line 105, in loadLibs
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS Super Conditions.indigoPlugin/Contents/Server Plugin/lib/plugcache.py", line 58, in __init__
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/EPS Super Conditions.indigoPlugin/Contents/Server Plugin/lib/plugcache.py", line 551, in refresh
StandardError: LowLevelBadParameterError -- illegal character in XML tag name or value

   Stopping plugin "EPS - Super Conditions 0.5" (pid 70178)
   Stopped plugin "EPS - Super Conditions 0.5"

Re: Error in plugin startup

PostPosted: Sun Aug 20, 2017 3:11 am
by mortenkols
I got this error when trying to set up a condition with Æ,Ø,Å letters in the device name.

20. aug. 2017, 11.05.03
EPS - Super Conditions Error Exception in plugcache._resolveObject line 444: 'ascii' codec can't encode character u'\xd8' in position 15: ordinal not in range(128)
CODE: self.logger.threaddebug ("Object '{0}' is typed as '{1}'".format(obj.name, unicode(type(obj))))

EPS - Super Conditions Error Exception in plugcache._resolveObject line 444: 'ascii' codec can't encode character u'\xd8' in position 15: ordinal not in range(128)
CODE: self.logger.threaddebug ("Object '{0}' is typed as '{1}'".format(obj.name, unicode(type(obj))))

EPS - Super Conditions Error Exception in plugcache._resolveObject line 444: 'ascii' codec can't encode character u'\xd8' in position 15: ordinal not in range(128)
CODE: self.logger.threaddebug ("Object '{0}' is typed as '{1}'".format(obj.name, unicode(type(obj))))

EPS - Super Conditions Error Exception in plugcache._resolveObject line 444: 'ascii' codec can't encode character u'\xd8' in position 15: ordinal not in range(128)
CODE: self.logger.threaddebug ("Object '{0}' is typed as '{1}'".format(obj.name, unicode(type(obj))))

EPS - Super Conditions Error Exception in plugcache._resolveObject line 444: 'ascii' codec can't encode character u'\xd8' in position 15: ordinal not in range(128)
CODE: self.logger.threaddebug ("Object '{0}' is typed as '{1}'".format(obj.name, unicode(type(obj))))

EPS - Super Conditions Error Exception in plugcache._resolveObject line 444: 'ascii' codec can't encode character u'\xd8' in position 15: ordinal not in range(128)
CODE: self.logger.threaddebug ("Object '{0}' is typed as '{1}'".format(obj.name, unicode(type(obj))))

EPS - Super Conditions Error Exception in plugcache._resolveObject line 444: 'ascii' codec can't encode character u'\xd8' in position 15: ordinal not in range(128)
CODE: self.logger.threaddebug ("Object '{0}' is typed as '{1}'".format(obj.name, unicode(type(obj))))

EPS - Super Conditions Error Exception in plugcache._resolveObject line 444: 'ascii' codec can't encode character u'\xd8' in position 15: ordinal not in range(128)
CODE: self.logger.threaddebug ("Object '{0}' is typed as '{1}'".format(obj.name, unicode(type(obj))))

EPS - Super Conditions Error Exception in plugcache._resolveObject line 444: 'ascii' codec can't encode character u'\xd8' in position 15: ordinal not in range(128)
CODE: self.logger.threaddebug ("Object '{0}' is typed as '{1}'".format(obj.name, unicode(type(obj))))

EPS - Super Conditions Error Exception in plugcache._resolveObject line 444: 'ascii' codec can't encode character u'\xd8' in position 15: ordinal not in range(128)
CODE: self.logger.threaddebug ("Object '{0}' is typed as '{1}'".format(obj.name, unicode(type(obj))))

EPS - Super Conditions Error Exception in plugcache._resolveObject line 444: 'ascii' codec can't encode character u'\xd8' in position 15: ordinal not in range(128)
CODE: self.logger.threaddebug ("Object '{0}' is typed as '{1}'".format(obj.name, unicode(type(obj))))

Re: Error in plugin startup

PostPosted: Tue Aug 22, 2017 11:39 am
by Colorado4Wheeler
That looks like a funky character in another plugin that we are having trouble reading, what other plugins are you running?

Re: Error in plugin startup

PostPosted: Tue Aug 22, 2017 1:09 pm
by mortenkols
Its happen with every device that I have Æ,Ø,Å character in the device name.

Re: Error in plugin startup

PostPosted: Tue Aug 22, 2017 1:20 pm
by Colorado4Wheeler
Ahhh, now I understand. I'm not sure how I would take those into account but I'll see if I can think of anything.

Re: Error in plugin startup

PostPosted: Tue Aug 22, 2017 3:01 pm
by jay (support)
I believe this debug log line:

Code: Select all
self.logger.threaddebug ("Object '{0}' is typed as '{1}'".format(obj.name, unicode(type(obj))))


should be:

Code: Select all
self.logger.threaddebug (u"Object '{0}' is typed as '{1}'".format(unicode(obj.name), unicode(type(obj))))


I think that'll work.