Azure / Azure/MachineLearningNotebooks

BUG: PythonScriptStep arguments wrongly encodes strings with semicolons

未关闭
#1,536 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
ADO product-issue
主要语言
Jupyter Notebook
星标
4.4k
派生
2.6k
PR 合并指标
30 天内没有已合并 PR

描述

I am passing a string to the `arguments` of a `PythonScriptStep`. Specifically, I am passing a blob storage connection string that has semicolons in it (e.g, `DefaultEndpointsProtocol=http;AccountName=xxx;AccountKey=xxxxxx;`):

```python
PythonScriptStep(
name=...,
source_directory=...,
script_name=''script.py',
compute_target=...,
arguments=[
...
"--connection_string",
"DefaultEndpointsProtocol=http;AccountName=xxx;AccountKey=xxxxxx;",
],
runconfig=...
)
```
The problem is that `script.py` will receive a wrongly encoded string, where each semicolon is escaped by a slash: `"DefaultEndpointsProtocol=http\;AccountName=xxx\;AccountKey=xxxxxx\;"`. I tried to run `script.py` locally and it works perfectly. I suspect there is a problem with parsing the arguments in `PythonScriptStep`

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 1411eede-5d88-1a8e-0ddf-2dc0ceea4f0e
* Version Independent ID: 6b5a0467-67a8-674a-a569-a8865e6cb400
* Content: [azureml.pipeline.steps.python_script_step.PythonScriptStep class - Azure Machine Learning Python](https://docs.microsoft.com/en-us/python/api/azureml-pipeline-steps/azureml.pipeline.steps.python_script_step.pythonscriptstep?view=azure-ml-py)
* Content Source: [AzureML-Docset/stable/docs-ref-autogen/azureml-pipeline-steps/azureml.pipeline.steps.python_script_step.PythonScriptStep.yml](https://github.com/MicrosoftDocs/MachineLearning-Python-pr/blob/live/AzureML-Docset/stable/docs-ref-autogen/azureml-pipeline-steps/azureml.pipeline.steps.python_script_step.PythonScriptStep.yml)
* Service: **machine-learning**
* Sub-service: **core**
* GitHub Login: @DebFro
* Microsoft Alias: **debfro**

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。