Azure / Azure/MachineLearningNotebooks

BUG: PythonScriptStep arguments wrongly encodes strings with semicolons

Ouverte
#1,536 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
ADO product-issue
Langage dominant
Jupyter Notebook
Étoiles
4.4k
Forks
2.6k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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**

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.