weixin_39789101
weixin_39789101
2020-12-07 08:49

CustomVision - CustomVisionTrainingClient can not be imported from azure.cognitiveservices.vision.customvision

  • Package Name: Custom Vision
  • Package Version: 2.0.0
  • Operating System: Linux
  • Python Version: 3.6

Describe the bug azure-cognitiveservices-vision-customvision 2.0.0 on PyPi mentions:


CustomVisionTrainingClient cannot be imported from `azure.cognitiveservices.vision.customvision.training anymore` (import from `azure.cognitiveservices.vision.customvision` works like before)

To Reproduce Steps to reproduce the behavior: from azure.cognitiveservices.vision.customvision import CustomVisionTrainingClient

ImportError: cannot import name 'CustomVisionTrainingClient'

Importing it from azure.cognitiveservices.vision.customvision.training works.

Expected behavior Importing from azure.cognitiveservices.vision.customvision should work, or it should be updated in the documentation.

Additional context Related to #11503

该提问来源于开源项目:Azure/azure-sdk-for-python

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39611275 weixin_39611275 5月前

    Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc .

    点赞 评论 复制链接分享
  • weixin_39525243 weixin_39525243 5月前

    An issue in changelog tool to generate the doc? + to confirm. thanks.

    点赞 评论 复制链接分享
  • weixin_39883079 weixin_39883079 5月前

    this is not an issue with the tool. Currently we use template for general breaking changes and modify it manually to suit particular release (client names etc.). So yes, it's error prone... Perhaps general breaking changes should be automatically generated by changelog tool as well.

    The proper string in this case should be:

    CustomVisionPredictionClient cannot be imported from azure.cognitiveservices.vision.customvision.prediction .custom_vision_training_client anymore (import from azure.cognitiveservices.vision.customvision .training works like before) I can make additional release to fix the wording.

    点赞 评论 复制链接分享
  • weixin_39611275 weixin_39611275 5月前

    Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc , .

    点赞 评论 复制链接分享

相关推荐