Azure / Azure/MachineLearningNotebooks

BUG: PythonScriptStep arguments wrongly encodes strings with semicolons

Abierto
#1,536 4 comentarios 0 reacciones 0 asignados Ver en GitHub
ADO product-issue
Lenguaje dominante
Jupyter Notebook
Estrellas
4.4k
Forks
2.6k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.