Error when importing MySQL-connector-python-8.2.0 for in automation account for Azure runbooks

Milo A 0 Reputation points
2023-12-12T13:27:51.48+00:00

I am unable to install the package mysql-connector-python version 8.2.0 for python 3.8 I have tried using the lateste release files the one ending in tar.gz and the correct whl file 'mysql_connector_python-8.2.0-cp38-cp38-win_amd64.whl'

The error that I get is:

Error

Orchestrator.Shared.AsyncModuleImport.ModuleImportException: An internal error occurred during module import while attempting to store module content. This could be a transitory network condition - please try the operation again. at Orchestrator.Activities.SetModuleActivity.ExecuteInternal(CodeActivityContext context, Byte[] moduleContent, String moduleName, ModuleLanguage moduleLanguage, Guid moduleVersionId, String modulePath) at Orchestrator.Activities.SetModuleActivity.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)User's image

Note that I was successful installing the python3.10 version. Any ideas?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,126 questions
{count} votes

1 answer

Sort by: Most helpful
  1. tbgangav-MSFT 10,386 Reputation points
    2023-12-15T04:04:58.8966667+00:00

    Hi @Milo A ,

    Looks like this is a known issue that's related to importing PyMuPDF, python-poppler, distro, plotly, etc. as well that are essentially coming from data science use cases. We are investigating and root causing the issue and the current ETA for the fix is 3/30.