Open ecsauto opened 1 year ago
Hi, Maybe you have to install the packages list in the requirement.txt. run "pip install -r requirements.txt".
HI,
After I reinstalled the python, the issue is gone. Thanks. However, I still got some error when I run the script like this
Am I correct if I put the device parameter under device to the script ? Many thanks.
Hi, The device parameter you use is correct, but you also need to put "IOTHUB_DEVICE_DPS_ENDPOINT" and "IOTHUB_DEVICE_DPS_ID_SCOPE" from the DPS service information.
Hi team,.
After I executed the run.sh, I encountered some issue about "ModuleNotFoundError: No module named 'psutil'. Can you please let me know what the issue is? Python is already running 3.7.3. thanks.
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-ZcnoiM/uamqp/setup.py';f=getattr(tokenize, 'open', open)(file);code=f .read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" i nstall --record /tmp/pip-record-QJtuCY/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-ZcnoiM/uamqp/ File "main.py", line 45 async def property_update(device_client,os_type,machine): ^ SyntaxError: invalid syntax Traceback (most recent call last): File "main.py", line 6, in
import psutil
ModuleNotFoundError: No module named 'psutil'