Where is the error

Posted on
Sun Jul 25, 2021 5:52 am
Bildhauer offline
Posts: 160
Joined: Sep 30, 2019
Location: 22113 Oststeinbek (near Hamburg), Germany

Re: Where is the error

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!

Posted on
Sun Jul 25, 2021 5:58 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Where is the error

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

Posted on
Sun Jul 25, 2021 12:54 pm
Bildhauer offline
Posts: 160
Joined: Sep 30, 2019
Location: 22113 Oststeinbek (near Hamburg), Germany

Re: Where is the error

Ok, I'll try.

Posted on
Sun Jul 25, 2021 1:46 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Where is the error

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!

Image

Who is online

Users browsing this forum: No registered users and 1 guest