Olá, estou assistindo a aula "08 Rastrear experimentos com MLFlow" e estou enfrentando problemas para executar o script pre_processamento.py. Fiz a atualização do MlCliente conforme o meu usário e me retorna o seguinte erro ao rodar o script.
Não me pareceu um erro de autenticação e sim que ele não encontra o input_csv = ml_client.data.get("base_clientes_inadimplencia", version="1").
Se eu faço essa alteração no código o script roda sem problemas. Então o erro está em ler a base desse ml_client.data.get.
# input_csv = ml_client.data.get("base_clientes_inadimplencia", version="1")
df = pd.read_csv("./data/base_clientes_inadimplencia.csv")
target = "Status_Pagamento"
colunas_data = ["Data_Contratacao", "Data_Vencimento_Fatura", "Data_Ingestao", "Data_Atualizacao"]
drop_cols = ["Telefone", "Nome", "Email", "Data_Nascimento", "Data_Contratacao", "Data_Vencimento_Fatura", "Data_Ingestao", "Data_Atualizacao"] # Ajuste se necessário
df_transformado = pipeline_preprocessamento( "./data/base_clientes_inadimplencia.csv", target, colunas_data, drop_cols=drop_cols)
Posso seguir utilizando essa alteração ou não utilizar ml_client.data.get pode gerar algum problema posterior ?
traceback (most recent call last): File "/mnt/batch/tasks/shared/LS_root/mounts/clusters/cluster-alura/code/Users/nanasoares_sa/Projeto-SPIN/src/pre_processamento.py", line 269, in input_csv = ml_client.data.get("base_clientes_inadimplencia", version="1") File "/anaconda/envs/azureml_py38/lib/python3.10/site-packages/azure/ai/ml/_telemetry/activity.py", line 288, in wrapper return f(*args, **kwargs) File "/anaconda/envs/azureml_py38/lib/python3.10/site-packages/azure/ai/ml/operations/_data_operations.py", line 276, in get data_version_resource = self._get(name, version) File "/anaconda/envs/azureml_py38/lib/python3.10/site-packages/azure/ai/ml/operations/_data_operations.py", line 205, in _get else self._operation.get( File "/anaconda/envs/azureml_py38/lib/python3.10/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer return func(*args, **kwargs) File "/anaconda/envs/azureml_py38/lib/python3.10/site-packages/azure/ai/ml/_restclient/v2023_04_01_preview/operations/_data_versions_operations.py", line 487, in get map_error(status_code=response.status_code, response=response, error_map=error_map) File "/anaconda/envs/azureml_py38/lib/python3.10/site-packages/azure/core/exceptions.py", line 163, in map_error raise error azure.core.exceptions.ResourceNotFoundError: (UserError) User error when calling GenericAssetMLIndexServiceClient.MoveNext. Service invocation failed! Request: GET brazilsouth.api.azureml.ms/genericasset/subscriptions/9697e209-d56a-4549-b825-d66cf685c3e2/resourceGroups/AulasAlura/providers/Microsoft.MachineLearningServices/workspaces/curso-alura/indexes/base_clientes_inadimplencia/versions/1 Status Code: 404 NotFound Error Code: UserError/NotFoundError Reason Phrase: Asset with Asset ID: azureml://locations/brazilsouth/workspaces/ef638187-8d25-4807-a767-a3cc998b873b Response Body: {"error":{"code":"UserError","message":"Asset with Asset ID: azureml://locations/brazilsouth/workspaces/ef638187-8d25-4807-a767-a3cc998b873b/indexes/base_clientes_inadimplencia/versions/1 and tenantId: was not found","details":[],"innerError":{"code":"NotFoundError"}},"correlation":{"operation":"f04617e7b17da41d206d956a4a1bd6fd","request":"206e2493dbfae470"},"environment":"brazilsouth","location":"brazilsouth","time":"2026-01-21T19:16:24.9934872+00:00","componentName":"genericasset","statusCode":404} Code: UserError Message: User error when calling GenericAssetMLIndexServiceClient.MoveNext. Service invocation failed! Request: GET brazilsouth.api.azureml.ms/genericasset/subscriptions/9697e209-d56a-4549-b825-d66cf685c3e2/resourceGroups/AulasAlura/providers/Microsoft.MachineLearningServices/workspaces/curso-alura/indexes/base_clientes_inadimplencia/versions/1 Status Code: 404 NotFound Error Code: UserError/NotFoundError Reason Phrase: Asset with Asset ID: azureml://locations/brazilsouth/workspaces/ef638187-8d25-4807-a767-a3cc998b873b Response Body: {"error":{"code":"UserError","message":"Asset with Asset ID: azureml://locations/brazilsouth/workspaces/ef638187-8d25-4807-a767-a3cc998b873b/indexes/base_clientes_inadimplencia/versions/1 and tenantId: was not found","details":[],"innerError":{"code":"NotFoundError"}},"correlation":{"operation":"f04617e7b17da41d206d956a4a1bd6fd","request":"206e2493dbfae470"},"environment":"brazilsouth","location":"brazilsouth","time":"2026-01-