[Python] Problems uploading certain python packages to Azure Automation Account

Discussão em 'Python' iniciado por Stack, Abril 7, 2025.

  1. Stack

    Stack Membro Participativo

    Certain python packages fail to upload to an Azure Automation Account.

    I am trying to upload wheels for:
    azure-mgmt-authorization version 3.0.0 or 4.0.0

    For 4.0.0, I checked the setup.py file and found these dependencies:

    install_requires=[
    "isodate<1.0.0,>=0.6.1",
    "azure-common~=1.1",
    "azure-mgmt-core>=1.3.2,<2.0.0",
    "typing-extensions>=4.3.0; python_version<'3.8.0'",
    ],


    I was able to create wheels and upload these packages.

    Upload Failure: The activity log shows:

    Create or Update an Azure Automation Python 3 package->Accepted
    Create or Update an Azure Automation Python 3 package -> Started

    It never shows Failed or Succeeded as expected.

    In the Python packages blade, I can see the Package Status as Failed, with an error of:

    Last modified
    4/2/2025, 6:59:29 PM
    Package version
    Size
    0 KB
    Status
    Failed
    Runtime version
    3.8
    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)

    Continue reading...

Compartilhe esta Página