Skip to content

PyFluent: Problem while submitting jobs to Windows job scheduler.  #959

@ypatel-qa

Description

@ypatel-qa

🔍 Before submitting the issue

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

🐞 Description of the bug

I am unable to submit PyFuent jobs to the Windows job scheduler.

I am trying three scenarios using the HPC Pack 2019 Job Manager:

(1) Run simple .py ("Hello World") via job manager. Working fine.
(2) Run fluent journal via job manager. Working fine.
(3) Run PyFluent script vis job manager. Getting this error (Fluent is not launching - s = pyfluent.launch_fluent(precision="double",additional_arguments=parOpt,mode="solver"))

Number of machines = 1
Number of cores = 1
Min number of cores = 1
Max number of cores = 1
Parallel options for fluent are = -t1 -cnf=CDCFLUENTW16V01:1
Traceback (most recent call last): File "run.py", line 14, in s = pyfluent.launch_fluent(precision="double",additional_arguments=parOpt,mode="solver") File "c:\shared\pyfluent\pyfluent\src\ansys\fluent\core\launcher\launcher.py", line 541, in launch_fluent _await_fluent_launch(server_info_filepath, start_timeout, sifile_last_mtime) File "c:\shared\pyfluent\pyfluent\src\ansys\fluent\core\launcher\launcher.py", line 328, in _await_fluent_launch raise RuntimeError("The launch process has been timed out.")RuntimeError: The launch process has been timed out.

📝 Steps to reproduce

CDCFLUENTW16V01 is the cluster head-node. (Added Dan, Sean and Mainak's ids to access this cluster)
CDCFLUENTW16V02 the child-node.
Fluent is install on the head-node (CDCFLUENTW16V01) in the C:\shared\231\ANSYS Inc folder.
PyFluent (using Ansy CPython venv) is installed in the C:\shared\pyfluent\pyfluent folder.

To reproduce:

  • Login to the head-node and put attached files in your working area (unzip).
  • files.zip
  • Start HPC Job manager and run the run.py file using PyFluent (job submission). Getting this error. (PYFLUENT_SHOW_SERVER_GUI=0 or 1, same problem)
  • Adding os.environ['FLUENT_LM_CHECK_DISABLE'] = '1' in the run.py is also not helping.
  • additional_arguments="-ptrace" is writing mpt* log files without job scheduler. With job scheduler, Fluent is not being launched.
  • It looks like that Fluent is not launching with PyFluent + Job Scheduler

image

Fluent is working fine,

image

💻 Which operating system are you using?

Windows

🐍 Which Python version are you using?

3.7

📦 Installed packages

C:\shared\pyfluent\Scripts>C:\shared\pyfluent\Scripts\python.exe -m pip freeze
ansys-api-fluent==0.3.1
ansys-api-platform-instancemanagement==1.0.0b3
-e git+https://github.com/pyansys/pyfluent.git@33853f385c1fdce40a0525fce6240388e8b55d55#egg=ansys_fluent_core
ansys-platform-instancemanagement==1.0.2
appdirs==1.4.4
googleapis-common-protos==1.56.4
grpcio==1.49.1
h5py==3.7.0
importlib-metadata==4.12.0
numpy==1.21.6
packaging==21.3
pandas==1.3.5
Pint==0.18
protobuf==3.20.2
protoc-gen-swagger==0.1.0
pyparsing==3.0.9
python-dateutil==2.8.2
pytz==2022.2.1
six==1.16.0
typing_extensions==4.3.0
zipp==3.8.1

C:\shared\pyfluent\Scripts>

Metadata

Metadata

Assignees

Labels

bugIssue, problem or error in PyFluent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions