# Digi Esp for Python Code Error

**URL:** <https://forums.digi.com/t/digi-esp-for-python-code-error/20483>\
**Category:** Python\
**Tags:** code, digi\
**Created:** [May 10, 2019, 11:33am UTC](https://forums.digi.com/t/digi-esp-for-python-code-error/20483 "2019-05-10T11:33:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin91](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@Martin91](https://forums.digi.com/u/Martin91)\
**Post date:** [May 10, 2019, 11:33am UTC](https://forums.digi.com/t/digi-esp-for-python-code-error/20483/1 "2019-05-10T11:33:28Z")

</div>

HI, I’m trying to run the Digi Tank Solutions Kit, and while trying to run, the next error appears. I use Digi ESP for python with this kit: Digi XK-Z11-T-W. Can someone help me?

ERROR:XBeeConfigBlockSleep:’  
SO’ = ‘0x0’ to ‘[00:13:a2:00  
:40:47:6b:c9]!’ failed (coul  
d not set ‘SO’ on ‘[00:13:a2  
:00:40:47:6b:c9]!’)

---

<div class="post-metadata">

**Author:** ![Martin91](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@Martin91](https://forums.digi.com/u/Martin91)\
**Post date:** [May 14, 2019, 3:34pm UTC](https://forums.digi.com/t/digi-esp-for-python-code-error/20483/2 "2019-05-14T15:34:27Z")

</div>

When i check the meaning of the error, i receive the following: Your XBee Sensor is configured with sleep = False by default, so you should add (or modify) this line into your YML Dia configuration file, at the XBee Sensor settings:  
sleep: True

I tried the above, but the same error appears
