Skip to content

Cannot start a remote pyWorkbench server #262

@ahjorthp

Description

@ahjorthp

🔍 Before submitting the issue

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

🐞 Description of the bug

Hi.

I am trying to start a remote workbench server on another machine on the network using this code:

from ansys.workbench.core import launch_workbench

host = "server_machine_name_or_ip"
username = "your_username_on_server_machine"
password = "your_password_on_server_machine"
wb = launch_workbench(host=host, username=username, password=password)

But I get this error:

ERROR:root:wrong credential
Traceback (most recent call last):
File "", line 1, in
File "C:\Python\pyWorkbenchTest2\venv311\Lib\site-packages\ansys\workbench\core\public_api.py", line 312, in launch_workbench
return LaunchWorkbench(
^^^^^^^^^^^^^^^^
File "C:\Python\pyWorkbenchTest2\venv311\Lib\site-packages\ansys\workbench\core\public_api.py", line 132, in init
raise Exception("Filed to launch Ansys Workbench service.")
Exception: Filed to launch Ansys Workbench service.

So it seems to be wrong credentials, but they should be correct.

I am using ansys-workbench-core version 0.7.0 and have workbench 2024R2 installed on the server machine. Do I need to start something on the server machine? How do I know which ansys-workbench-core version is compatible with an Ansys version?

Thanks in advance,
Anders

📝 Steps to reproduce

from ansys.workbench.core import launch_workbench

host = "server_machine_name_or_ip"
username = "your_username_on_server_machine"
password = "your_password_on_server_machine"
wb = launch_workbench(host=host, username=username, password=password)

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

2024R2

🐍 Which Python version are you using?

3.11

📦 Installed packages

ansys-api-mechanical==0.1.2
ansys-api-platform-instancemanagement==1.1.3
ansys-api-workbench==0.2.0
ansys-mechanical-core==0.11.18
ansys-mechanical-env==0.1.12
ansys-mechanical-stubs==0.1.6
ansys-platform-instancemanagement==1.1.2
ansys-pythonnet==3.1.0rc6
ansys-tools-path==0.7.1
ansys-workbench-core==0.7.0
appdirs==1.4.4
certifi==2025.4.26
cffi==1.17.1
charset-normalizer==3.4.2
click==8.2.1
clr_loader==0.2.7.post0
colorama==0.4.6
grpcio==1.73.0
idna==3.10
importlib_metadata==8.7.0
platformdirs==4.3.8
protobuf==5.29.5
psutil==7.0.0
pycparser==2.22
pywin32==310
requests==2.32.4
tqdm==4.67.1
urllib3==2.4.0
WMI==1.5.1
zipp==3.23.0

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