Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MpiOption doesnt work in run_dyna when working directory is something other than the current directory #659

Open
2 tasks done
kanthadya opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@kanthadya
Copy link
Contributor

🔍 Before submitting the issue

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

🐞 Description of the bug


CalledProcessError Traceback (most recent call last)
Cell In[40], line 3
1 from ansys.dyna.core.run import run_dyna, MpiOption
----> 3 run_dyna(r"D:\PYDYNA_AFT\WORKSHOP\input.k",mpi_option=MpiOption.MPP_MS_MPI, working_directory="./kwd_out", container_env=0)

File ~.ansys_python_venvs\pydyna_workshop_25_v1\lib\site-packages\ansys\dyna\core\run\local_solver.py:161, in run_dyna(input, **kwargs)
158 runner = get_runner(**kwargs)
159 runner.set_input(input_file, wdir)
--> 161 result = runner.run()
162 if container != None and kwargs.get("stream", True) is False:
163 return result

File ~.ansys_python_venvs\pydyna_workshop_25_v1\lib\site-packages\ansys\dyna\core\run\windows_runner.py:98, in WindowsRunner.run(self)
96 """Run LS-DYNA."""
97 self._write_runscript()
---> 98 subprocess.check_call(
99 f"cmd /c {self._scriptname}",
100 shell=False,
101 universal_newlines=True,
102 cwd=self.working_directory,
103 stdin=subprocess.PIPE,
104 stdout=subprocess.PIPE,
105 stderr=subprocess.PIPE,
106 )

File ~\AppData\Local\Programs\Python\Python310\lib\subprocess.py:369, in check_call(*popenargs, **kwargs)
367 if cmd is None:
368 cmd = popenargs[0]
--> 369 raise CalledProcessError(retcode, cmd)
370 return 0

CalledProcessError: Command 'cmd /c lsruncommand.bat' returned non-zero exit status 4294967292.

📝 Steps to reproduce

run_dyna(r"D:\PYDYNA_AFT\WORKSHOP\input.k",mpi_option=MpiOption.MPP_MS_MPI, working_directory="./kwd_out", container_env=0)

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

No response

🐍 Which Python version are you using?

3.11

📦 Installed packages

ansys-api-dyna                        0.4.1
ansys-api-platform-instancemanagement 1.1.0
ansys-dpf-core                        0.13.3
ansys-dpf-server-2025-1-pre0          2025.1rc0      d:\simai\ansys_dpf_server_win_v2025.1.pre0
ansys-dyna-core                       0.6.1
ansys-platform-instancemanagement     1.1.2
ansys-tools-path                      0.7.1
anyio                                 4.8.0
appdirs                               1.4.4
argon2-cffi                           23.1.0
argon2-cffi-bindings                  21.2.0
arrow                                 1.3.0
asttokens                             3.0.0
async-lru                             2.0.4
attrs                                 24.3.0
babel                                 2.16.0
beautifulsoup4                        4.12.3
bleach                                6.2.0
cachetools                            5.5.0
certifi                               2024.12.14
cffi                                  1.17.1
charset-normalizer                    3.4.1
click                                 8.1.8
colorama                              0.4.6
comm                                  0.2.2
contourpy                             1.3.1
cycler                                0.12.1
debugpy                               1.8.11
decorator                             5.1.1
defusedxml                            0.7.1
exceptiongroup                        1.2.2
executing                             2.1.0
fastjsonschema                        2.21.1
fonttools                             4.55.3
fqdn                                  1.5.1
google-api-core                       2.24.0
google-api-python-client              2.157.0
google-auth                           2.37.0
google-auth-httplib2                  0.2.0
googleapis-common-protos              1.66.0
grpcio                                1.69.0
h11                                   0.14.0
hollerith                             0.6.0
httpcore                              1.0.7
httplib2                              0.22.0
httpx                                 0.28.1
idna                                  3.10
importlib_metadata                    8.5.0
ipykernel                             6.29.5
ipython                               8.31.0
ipywidgets                            8.1.5
isoduration                           20.11.0
jedi                                  0.19.2
Jinja2                                3.1.5
json5                                 0.10.0
jsonpointer                           3.0.0
jsonschema                            4.23.0
jsonschema-specifications             2024.10.1
jupyter                               1.1.1
jupyter_client                        8.6.3
jupyter-console                       6.6.3
jupyter_core                          5.7.2
jupyter-events                        0.11.0
jupyter-lsp                           2.2.5
jupyter_server                        2.15.0
jupyter_server_terminals              0.5.3
jupyterlab                            4.3.4
jupyterlab_pygments                   0.3.0
jupyterlab_server                     2.27.3
jupyterlab_widgets                    3.0.13
kiwisolver                            1.4.8
MarkupSafe                            3.0.2
matplotlib                            3.10.0
matplotlib-inline                     0.1.7
mistune                               3.1.0
nbclient                              0.10.2
nbconvert                             7.16.5
nbformat                              5.10.4
nest-asyncio                          1.6.0
notebook                              7.3.2
notebook_shim                         0.2.4
numpy                                 2.2.1
overrides                             7.7.0
packaging                             24.2
pandas                                2.2.3
pandocfilters                         1.5.1
parso                                 0.8.4
pillow                                11.1.0
pip                                   23.0.1
platformdirs                          4.3.6
pooch                                 1.8.2
prometheus_client                     0.21.1
prompt_toolkit                        3.0.48
proto-plus                            1.25.0
protobuf                              5.29.3
psutil                                6.1.1
pure_eval                             0.2.3
pyasn1                                0.6.1
pyasn1_modules                        0.4.1
pycparser                             2.22
Pygments                              2.19.1
pyparsing                             3.2.1
python-dateutil                       2.9.0.post0
python-json-logger                    3.2.1
pytz                                  2024.2
pyvista                               0.44.2
pywin32                               308
pywinpty                              2.0.14
PyYAML                                6.0.2
pyzmq                                 26.2.0
referencing                           0.35.1
requests                              2.32.3
rfc3339-validator                     0.1.4
rfc3986-validator                     0.1.1
rpds-py                               0.22.3
rsa                                   4.9
scooby                                0.10.0
Send2Trash                            1.8.3
setuptools                            65.5.0
six                                   1.17.0
sniffio                               1.3.1
soupsieve                             2.6
stack-data                            0.6.3
terminado                             0.18.1
tinycss2                              1.4.0
tomli                                 2.2.1
tornado                               6.4.2
tqdm                                  4.67.1
traitlets                             5.14.3
types-python-dateutil                 2.9.0.20241206
typing_extensions                     4.12.2
tzdata                                2024.2
uri-template                          1.3.0
uritemplate                           4.1.1
urllib3                               2.3.0
vtk                                   9.3.1
wcwidth                               0.2.13
webcolors                             24.11.1
webencodings                          0.5.1
websocket-client                      1.8.0
widgetsnbextension                    4.0.13
zipp                                  3.21.0
@kanthadya kanthadya added the bug Something isn't working label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant