Closed gautamsabba closed 10 months ago
We apologize for the confusion regarding communication around version 3.0.0b2. The status of this release is in question, and we have since reverted the main repository back to version 2.x. At this time we do not recommend the use of version 3.x
My apologies for the inconvenience.
3.0.0b2 seems to be missing classes.
Context
Description of the issue
Looks like ProvisioningSession is missing from the pip module.
See dir listing below
Directory of C:\Python10\Lib\site-packages\azure\iot\device
25-08-2023 04.32 PM
C:\Python10\Lib\site-packages\azure\iot\device>
Code sample exhibiting the issue
from azure.iot.device import ( ProvisioningSession, MQTTConnectionDroppedError, MQTTConnectionFailedError
)
Console log of the issue
File "G:\Other computers\E8\Venture\Halo IT\Customers\MiiCare\Development\code\provisioning_symmetric_key.py", line 3, in
from azure.iot.device import (
ImportError: cannot import name 'ProvisioningSession' from 'azure.iot.device' (C:\Python10\lib\site-packages\azure\iot\device__init__.py)