# Windows python agent

**URL:** <https://community.cumulocity.com/t/windows-python-agent/4088>\
**Category:** Forum\
**Tags:** device-connectivity, cumulocity\
**Created:** [October 10, 2022, 2:09pm UTC](https://community.cumulocity.com/t/windows-python-agent/4088 "2022-10-10T14:09:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.presuhn](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/david.presuhn/32/32123_2.png) [@david.presuhn](https://community.cumulocity.com/u/david.presuhn)\
**Post date:** [October 10, 2022, 2:09pm UTC](https://community.cumulocity.com/t/windows-python-agent/4088/1 "2022-10-10T14:09:02Z")

</div>

#### What product/components do you use and which version/fix level are you on? 10.13

#### Is your question related to the free trial, or to a production (customer) instance?

Customer instance

#### What are you trying to achieve? Please describe it in detail.

Connect Windows device via downloadable Python client

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

The client is not currently connected

#### Have you installed all the latest fixes for the products and systems you are using?

Yes

I’ve downloaded the installed the Windows Python agent from [cumulocity-client · GitHub Topics · GitHub](https://github.com/topics/cumulocity-client) . I’ve got Python installed but when I try to do a c8ydm.start, the client starts but doesn’t bootstrap the device I entered in the platform. I’m thinking I dont’ have the agent.ini file configured correctly - does anyone have any experience doing that?

Thanks!

---

<div class="post-metadata">

**Author:** ![Christoph\_Souris](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christoph_souris/32/5464_2.png) [@Christoph\_Souris](https://community.cumulocity.com/u/Christoph_Souris)\
**Post date:** [October 10, 2022, 2:13pm UTC](https://community.cumulocity.com/t/windows-python-agent/4088/2 "2022-10-10T14:13:24Z")

</div>

Hi,  
can you be more specific with regards to the client? The link you included leads to an overview page of many clients.  
Cheers!

---

<div class="post-metadata">

**Author:** ![Robert\_Neale](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/robert_neale/32/31965_2.png) [@Robert\_Neale](https://community.cumulocity.com/u/Robert_Neale)\
**Post date:** [October 10, 2022, 2:27pm UTC](https://community.cumulocity.com/t/windows-python-agent/4088/3 "2022-10-10T14:27:55Z")

</div>

What do you have in the agent.ini?

---

<div class="post-metadata">

**Author:** ![Murat\_Bayram](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/murat_bayram/32/3670_2.png) [@Murat\_Bayram](https://community.cumulocity.com/u/Murat_Bayram)\
**Post date:** [October 10, 2022, 2:28pm UTC](https://community.cumulocity.com/t/windows-python-agent/4088/4 "2022-10-10T14:28:59Z")

</div>

I guess he means [that](https://github.com/Cumulocity-IoT/cumulocity-devicemanagement-agent) because he refers to agent.ini.

Could you post your agent.ini?

---

<div class="post-metadata">

**Author:** ![david.presuhn](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/david.presuhn/32/32123_2.png) [@david.presuhn](https://community.cumulocity.com/u/david.presuhn)\
**Post date:** [October 10, 2022, 2:55pm UTC](https://community.cumulocity.com/t/windows-python-agent/4088/5 "2022-10-10T14:55:13Z")

</div>

I did the pip install c8ydm on the Windows device.

---

<div class="post-metadata">

**Author:** ![david.presuhn](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/david.presuhn/32/32123_2.png) [@david.presuhn](https://community.cumulocity.com/u/david.presuhn)\
**Post date:** [October 10, 2022, 2:56pm UTC](https://community.cumulocity.com/t/windows-python-agent/4088/6 "2022-10-10T14:56:02Z")

</div>

[secret]  
c8y.bootstrap.tenant = management  
c8y.bootstrap.user = devicebootstrap  
c8y.bootstrap.password = \*\*\*\*\*\*\* [edited]

[mqtt]  
url = [ic-sandbox.iotnonprod.bsci.com](http://ic-sandbox.iotnonprod.bsci.com)  
port = 8883  
tls = true  
cert\_auth = false  
client\_cert = /root/.cumulocity/certs/chain-cert.pem  
client\_key = /root/.cumulocity/certs/device-cert-private-key.pem  
cacert = /etc/ssl/certs/ca-certificates.crt  
ping.interval.seconds = 60

[agent]  
name = DP-CUMUTest  
type = c8y\_dm\_example\_device  
main.loop.interval.seconds = 10  
requiredinterval = 10  
loglevel = DEBUG  
#device.id = DP-CUMUTest

---

<div class="post-metadata">

**Author:** ![Murat\_Bayram](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/murat_bayram/32/3670_2.png) [@Murat\_Bayram](https://community.cumulocity.com/u/Murat_Bayram)\
**Post date:** [October 10, 2022, 3:05pm UTC](https://community.cumulocity.com/t/windows-python-agent/4088/7 "2022-10-10T15:05:51Z")

</div>

Why did you dis comment the device.id? I’m not sure what’s happening then on windows. On unix the agent uses the hostname which does not exist on windows (@Stefan_Witschel ).

Could you also print the log in level debug?

---

<div class="post-metadata">

**Author:** ![david.presuhn](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/david.presuhn/32/32123_2.png) [@david.presuhn](https://community.cumulocity.com/u/david.presuhn)\
**Post date:** [October 10, 2022, 3:22pm UTC](https://community.cumulocity.com/t/windows-python-agent/4088/8 "2022-10-10T15:22:03Z")

</div>

I don’t recall doing that, but I uncommented the Device.id and that fixed the problem. The device is communicating now. Duh…

Thanks to everyone for their help! Sorry it was such as small issue.

---

<div class="post-metadata">

**Author:** ![Murat\_Bayram](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/murat_bayram/32/3670_2.png) [@Murat\_Bayram](https://community.cumulocity.com/u/Murat_Bayram)\
**Post date:** [October 11, 2022, 6:32am UTC](https://community.cumulocity.com/t/windows-python-agent/4088/9 "2022-10-11T06:32:55Z")

</div>

No worry, that’s what this forum is all about 😉

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [April 9, 2023, 6:33am UTC](https://community.cumulocity.com/t/windows-python-agent/4088/10 "2023-04-09T06:33:08Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
