Cumulocity-IoT / cumulocity-devicemanagement-agent

Cumulocity Reference Agent written in Python to demonstrate most of the Device Management Capabilities of Cumulocity IoT
Apache License 2.0
26 stars 20 forks source link

Build and run instructions issues #44

Closed mstoffel-sag closed 2 years ago

mstoffel-sag commented 2 years ago

I would like to run the agent in wsl2 Ubuntu. When I follow the description in the build step:

apt install python-apt -> this cannot be run without sudo

When I do all the steps using sudo or not and execute c8ydm.start I always get:

from c8ydm.core.apt_package_manager import AptPackageManager File "/home/mstoffel/.local/lib/python3.8/site-packages/c8ydm/core/apt_package_manager.py", line 23, in if 'Linux' == platform.system() and ('debian' == platform.linux_distribution()[0] or 'ubuntu' == platform.linux_distribution()[0]): AttributeError: module 'platform' has no attribute 'linux_distribution'

switschel commented 2 years ago

I aligned the README accordingly. The issue should be fixed for Pythons > 3.7 now. Can you do a test?