Azure/azure-sdk-for-python

When register custom models with python sdk in the pipeline, '#' in the path caused error: "Signature did not match"

jianawu opened this issue · 2 comments

  • Package Name azureml.core.model
  • Package Version: 1.55.0.post2
  • Operating System: Linux
  • Python Version: 3.9

Describe the bug
When I try to register custom model with code like:

ws = Run.get_context().experiment.workspace
model = Model.register(workspace=ws, model_path=model_output_path, model_name=MODEL_COLLECTION_NAME)

there are several pkl files under dir: model_output_path

I found that when the file name contains '#', I will get error like:
image

After replacing all the '#' with '-', issue resolved.

  1. the error message is confused
  2. I know '#' is strange, but '#' not allowed?

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-ml-sdk @azureml-github.

Hi @jianawu - Thanks for opening an issue! We'll take a look asap!