Skip to content

Failed to resolve Python.Runtime.Loader.Initialize from Python.Runtime.dll #230

@nanquilada09

Description

@nanquilada09

We currently have an automation setup where the entire Python environment, including all required libraries and scripts, is installed on a network shared drive. Due to security policies, we are not allowed to install Python directly on our local machines, so we access and run Python via this shared location.

The setup works for general Python scripts. However, when we try to use the FlaUI library, we encounter the following error:
Failed to resolve python.runtime.loader.initialize from python.runtime.dll

This issue occurs only when using FlaUI and seems related to how pythonnet loads the runtime from the shared location.

Environment:
• Python is located on a network share (not locally installed)
• Python version: 3.13
• pythonnet version: 3.05
• FlaUI: 3.6.1
• OS: Windows 10

Steps to Reproduce:

  1. Launch Python from the network share.
  2. Import and use FlaUI in a script.
  3. Observe the error related to python.runtime.dll.

Image

Notes:
• Running other scripts without FlaUI works fine.
• Installing Python locally is not an option due to policy restrictions.

Request:
Could you please advise on how to resolve this error or if there’s a supported way to use pythonnet and FlaUI from a network share?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions