Skip to content

Cannot use a custom XML for the ServerContext #2666

@PProfizi

Description

@PProfizi

Before submitting the issue

  • I have checked for Compatibility issues
  • I have searched among the existing issues
  • I am using a Python virtual environment

Description of the bug

Creating a dpf.ServerContext with a custom xml path does not work.

Steps To Reproduce

import ansys.dpf.core as dpf
from pathlib import Path


xml_path = Path(DEFAULT_ANSYS_PATH) / "dpf" / "utilities" / "DpfCustomDefined.xml"
server_context = dpf.server_context.ServerContext(xml_path=str(xml_path))
print(server_context)
server = dpf.start_local_server(config=config_server_type, context=server_context)
print(server.plugins)

The above should only show grpc loaded

Which Operating System causes the issue?

Windows

Which DPF/Ansys version are you using?

Ansys 2026 R1

Which Python version causes the issue?

3.13

Installed packages

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions