Skip to content

FileNotFoundError: [WinError 2] The system cannot find the file specified #3291

Open
@kunal-3196

Description

@kunal-3196

🤓 Before submitting the issue

🔍 Description of the bug

[WinError 2] The system cannot find the file specified

Facing above error while launching mapdl

🕵️ Steps To Reproduce

import matplotlib.pyplot as plt
import numpy as np

from ansys.mapdl.core import launch_mapdl

mapdl = launch_mapdl(loglevel="ERROR")

mapdl.clear()
mapdl.prep7()

# Material properties-- 1020 steel in imperial
mapdl.units("BIN")  # U.S. Customary system using inches (in, lbf*s2/in, s, °F).
mapdl.mp("EX", 1, 30023280.0)
mapdl.mp("NUXY", 1, 0.290000000)
mapdl.mp("ALPX", 1, 8.388888889e-06)
mapdl.mp("DENS", 1, 7.346344000e-04)
mapdl.mp("KXX", 1, 6.252196000e-04)
mapdl.mp("C", 1, 38.6334760)

# use a thermal element type
mapdl.et(1, "SOLID70")

Above code throwing the error

💻 Which Operating System are you using?

Windows

🐍 Which Python version are you using?

3.11

💾 Which MAPDL version are you using?

2024R1

📝 PyMAPDL Report

ansys-mapdl-core-0.68.4

📝 Installed packages

Show the installed packages!

# PASTE HERE THE OUTPUT OF `python -m pip freeze` here

📝 Logger output file

runfile('C:/MISC/Python_code/untitled0.py', wdir='C:/MISC/Python_code')
Traceback (most recent call last):

File C:\ProgramData\anaconda3\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)

File c:\misc\python_code\untitled0.py:27
mapdl = launch_mapdl(loglevel="ERROR")

File ~\AppData\Roaming\Python\Python311\site-packages\ansys\mapdl\core\launcher.py:1833 in launch_mapdl
raise exception

File ~\AppData\Roaming\Python\Python311\site-packages\ansys\mapdl\core\launcher.py:1795 in launch_mapdl
port, actual_run_location, process = launch_grpc(

File ~\AppData\Roaming\Python\Python311\site-packages\ansys\mapdl\core\launcher.py:605 in launch_grpc
process = subprocess.Popen(

File C:\ProgramData\anaconda3\Lib\site-packages\spyder_kernels\customize\spydercustomize.py:109 in init
super(SubprocessPopen, self).init(*args, **kwargs)

File C:\ProgramData\anaconda3\Lib\subprocess.py:1026 in init
self._execute_child(args, executable, preexec_fn, close_fds,

File C:\ProgramData\anaconda3\Lib\subprocess.py:1538 in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,

FileNotFoundError: [WinError 2] The system cannot find the file specified

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue, problem or error in PyMAPDL

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions