Skip to content

Reading the project file failed with following error: More than one case file is present in: D:\Working_Dir #1478

@tejalprabhu01

Description

@tejalprabhu01

🔍 Before submitting the issue

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

🐞 Description of the bug

when there are more than one case files in the directory where flprj exists, user gets following error while reading a parametric project using casereader

ERROR: Reading the project file failed with following error: More than one case file is present in: D:\Working_Dir Traceback (most recent call last):
  File "D:\ANSYSInstallation\ANSYS Inc\v232\optiSLang\lib\python3.7\lib\site-packages\ansys\fluent\core\filereader\casereader.py", line 89, in init
    case_filepath = _get_case_filepath(dirname(project_filepath))
  File "D:\ANSYSInstallation\ANSYS Inc\v232\optiSLang\lib\python3.7\lib\site-packages\ansys\fluent\core\filereader\casereader.py", line 209, in _get_case_filepath
    raise RuntimeError(f"More than one case file is present in: {project_dir_path}")
RuntimeError: More than one case file is present in: D:\Working_Dir

@mkundu1 @seanpearsonuk

📝 Steps to reproduce

from ansys.fluent.core.filereader.casereader import CaseReader
reader = CaseReader(project_filepath=project_filepath)

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

2023R2

🐍 Which Python version are you using?

3.7

📦 Installed packages

pyfluent
pyfluent-parametric

Metadata

Metadata

Assignees

Labels

bugIssue, problem or error in PyFluent

Type

No type

Projects

Status

2021-2024

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions