Azure / iotedgehubdev

IoT Edge Hub Dev Tool
Other
88 stars 31 forks source link

Latest Python version 3.10.7 not supported #397

Closed bindsi closed 1 year ago

bindsi commented 2 years ago

Installing the latest version of iotedgehubdev v0.14.14 not possible with installation of latest version 3.10.7. Had to downgrade Python on my macOS. Pls add support for latest Python version.

chull434 commented 1 year ago

+1 on this

Ubuntu 22.04 ships with python 3.10 as default, just adds more steps with the need to then install python 3.9

kalajdzija commented 1 year ago

+1

konichi3 commented 1 year ago

Hi all,

Thank you for the feedback. As we recently released IoT Edge package for Ubuntu 22.04, this feedback is on our backlog.

Meanwhile, please let us know if anyone is blocked on edge module development due to this issue. We believe that Linux VM, WSL2 + Ubuntu (systemd enabled), EFLOW (Edge for Linux on Windows) are good alternatives as well.

thanks! Azure IoT Edge team

marcoiwell commented 1 year ago

This still is an issue. We (and I think a lot more companies) use deployment pipelines for automating releases. In our case we use the Azure Devops pipelines to accomplish this. The way Microsoft describes how to do this is basically to use these devops tasks in your pipeline: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/azure-iot-edge-v2?view=azure-pipelines

This task uses the iotedgehubdev tool in the background, which only works on old versions of Python3. This version of Python is shipped with Ubuntu18.04, which in case is not supported/available after 1 april 2023. (3 weeks from now!)

So if you happen to use the Azure hosted pipeline runner, you're in for some troubles next month. And if you have your own hosted runner you will need to implement some work-a-round as well.

Are there any good alternatives for deploying to IoT Edge?

marianan commented 1 year ago

Thanks for the feedback @marcoiwell , I would like to gather more details about the scenario that is blocked at the moment. Is it using the CICD task? If yes, could you please share the exact versions of iotedgehubdev and iotedgedev that are installed when running the CICD task? I would expect the following: Ubuntu 18.04: python 3.6 iotedgehubdev 0.14.18, iotedgedev 3.3.3 Ubuntu 20.04: python 3.8 iotedgehubdev 0.14.18, iotedgedev 3.3.3 Ubuntu 22.04: python 3.9 iotedgehubdev 0.14.18, iotedgedev 3.3.3

marcoiwell commented 1 year ago

@marianan I will need to take a look in to this but quite busy at the moment. Hope I can find some time next week.

What I think happened was that when we used the Azure hosted ubuntu 20.04 image as pipeline runner in combination with the AzureIoTEdge@2 task with action 'Generate deployment manifest' the thing didn't work. I'll try to verify this later!

(Meanwhile I did manage to just use a python virtual environment in our own runners, so it's not an immediate problem for me anymore)

konichi3 commented 1 year ago

Closing due to inactivity.