Page 2 of 2

Re: Where is the error

PostPosted: Sun Jul 25, 2021 5:52 am
by Bildhauer
Code: Select all
  Script Error                    Gartenbewaesserung_variabel.py: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)
   Script Error                    Exception Traceback (most recent call shown last):

     Gartenbewaesserung_variabel.py, line 10, at top level
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)

at runtime!

Where is the error

PostPosted: Sun Jul 25, 2021 5:58 am
by kw123
replace w:
Code: Select all
indigo.server.log( u" text {} text {}  text {} ...   ".format( dev.name, dev.id ...) )
w the proper indentation before indigo..

one {} for each variable ...
text = text in-between the variables
and the u" ... is important. it indicates that the string to follow is unicode and not ascii.
likely your dev.name has a German umlaut or at least the “läuft” will raise the error

Karl

Re: Where is the error

PostPosted: Sun Jul 25, 2021 12:54 pm
by Bildhauer
Ok, I'll try.

Re: Where is the error

PostPosted: Sun Jul 25, 2021 1:46 pm
by matt (support)
kw123 wrote:
DaveL17 wrote:
kw123 wrote:
Dave, you are up early.

As are you. Unless you're in Deutschland. :)
Ja. Visiting first grandson born on 21.7.21 or 7/21/21**

Congrats, Karl!