question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

azure-mgmt-digitaltwins failing basic import

See original GitHub issue

install the package -> import * from azure.mgmt.digitaltwins

INFO:root:Importing all modules from namespace [azure.mgmt.digitaltwins] to verify dependency
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/vsts/work/1/s/sdk/digitaltwins/azure-mgmt-digitaltwins/.tox/depends/lib/python2.7/site-packages/azure/mgmt/digitaltwins/__init__.py", line 13, in <module>
    from ._azure_digital_twins_management_client import AzureDigitalTwinsManagementClient
  File "/home/vsts/work/1/s/sdk/digitaltwins/azure-mgmt-digitaltwins/.tox/depends/lib/python2.7/site-packages/azure/mgmt/digitaltwins/_azure_digital_twins_management_client.py", line 16, in <module>
    from .operations import DigitalTwinsOperations
  File "/home/vsts/work/1/s/sdk/digitaltwins/azure-mgmt-digitaltwins/.tox/depends/lib/python2.7/site-packages/azure/mgmt/digitaltwins/operations/__init__.py", line 12, in <module>
    from ._digital_twins_operations import DigitalTwinsOperations
  File "/home/vsts/work/1/s/sdk/digitaltwins/azure-mgmt-digitaltwins/.tox/depends/lib/python2.7/site-packages/azure/mgmt/digitaltwins/operations/_digital_twins_operations.py", line 17, in <module>
    from .. import models
  File "/home/vsts/work/1/s/sdk/digitaltwins/azure-mgmt-digitaltwins/.tox/depends/lib/python2.7/site-packages/azure/mgmt/digitaltwins/models/__init__.py", line 30, in <module>
    from ._models import CheckNameRequest
  File "/home/vsts/work/1/s/sdk/digitaltwins/azure-mgmt-digitaltwins/.tox/depends/lib/python2.7/site-packages/azure/mgmt/digitaltwins/models/_models.py", line 88, in <module>
    class DigitalTwinsResource(Model):
  File "/home/vsts/work/1/s/sdk/digitaltwins/azure-mgmt-digitaltwins/.tox/depends/lib/python2.7/site-packages/azure/mgmt/digitaltwins/models/_models.py", line 128, in DigitalTwinsResource
    sku = DigitalTwinsSkuInfo()
NameError: name 'DigitalTwinsSkuInfo' is not defined

I will note that while the above error is from the py27 env. The failure occurred on all platforms.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
changlong-liucommented, Sep 23, 2021

Closing this issue since new digitaltwins has been released. CC to @msyyc

0reactions
changlong-liucommented, Dec 2, 2020

Hi @scbedd , @annatisch ,

The master branch code for digitaltwins is old and there are errors. Digitialtwins is currently released as Track1, so the latest code is in release/v3 branch.

I tend to delete the digitaltwins code in master branch to avoid this confusing. And adding @msyyc to know this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

azure-mgmt-digitaltwins - PyPI
This is the Microsoft Azure Digital Twins Management Client Library. This package has been tested with Python 3.6+. For a more complete view...
Read more >
Troubleshoot Azure Digital Twins: Error 403 (Forbidden)
Learn how to diagnose and resolve error 403 (Forbidden) failed service requests from Azure Digital Twins.
Read more >
Manage digital twins - Azure - Microsoft Learn
See how to retrieve, update, and delete individual twins and relationships.
Read more >
Azure Digital Twins APIs and SDKs - Microsoft Learn
The data plane APIs are Azure Digital Twins APIs, and are used for data management operations like managing models, twins, and the graph....
Read more >
Manage the twin graph and relationships - Azure Digital Twins
List relationships. List properties of a single relationship. You can always deserialize relationship data to a type of your choice. For basic access...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found