Azure / Azure/MachineLearningNotebooks

BUG: PythonScriptStep arguments wrongly encodes strings with semicolons

オープン
#1,536 コメント 4 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。