-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Labels
MAPDLRequires changes in MAPDLRequires changes in MAPDL
Description
It seems that latest v25.1 docker image crashes when testing database
module.
The detailed output is below, but it seems the error is due to the starting the DATABASE:
return self._mapdl.run("/DBS,SERVER,STATUS")
Pytest output
Details
============================= test session starts ==============================
platform darwin -- Python 3.10.13, pytest-8.2.2, pluggy-1.5.0
-------------------------------Testing variables--------------------------------
Session dependent: ON_CI (False), TESTING_MINIMAL (False), SUPPORT_PLOTTING (True)
OS dependent: ON_LINUX (False), ON_UBUNTU (False), ON_WINDOWS (False), ON_MACOS )(True)
MAPDL dependent: ON_LOCAL (False), ON_STUDENT (False), HAS_GRPC (True), HAS_DPF (True), IS_SMP (True)
-----------------------------Environment variables------------------------------
PYMAPDL_START_INSTANCE ('False'), PYMAPDL_PORT ('50072'), PYMAPDL_DB_PORT ('50075'), DPF_PORT ('50056'), DPF_START_SERVER ('false'),
------------------------------Pytest configuration------------------------------
rootdir: /Users/german.ayuso/pymapdl
configfile: pyproject.toml
plugins: cov-5.0.0, anyio-4.3.0, rerunfailures-14.0, pytest_pyvista-0.1.9, sphinx-0.6.3, memprof-0.2.0
collected 28 items
tests/test_database.py s.EEEEEEEEEEEEEEEEEEEEEEEEEE [100%]
==================================== ERRORS ====================================
_____________________ ERROR at setup of test_database_repr _____________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def db(mapdl):
from ansys.api.mapdl import __version__ as api_version
api_version = tuple(int(each) for each in api_version.split("."))
if api_version < (0, 5, 1):
pytest.skip("Requires 'ansys.api.mapdl' package to at least v0.5.1.")
## Checking MAPDL versions
mapdl_version = str(mapdl.version)
if not server_meets_version(mapdl_version, MINIMUM_MAPDL_VERSION):
pytest.skip(
f"This MAPDL version ({mapdl_version}) is not compatible with the Database module."
)
## Exceptions
# Exception for 22.2
if mapdl_version == "22.2" and ON_CI:
pytest.skip(
f"This MAPDL version ({mapdl_version}) docker image seems to not support DB, but local does."
)
if mapdl_version == "24.1" or mapdl_version == "24.2":
pytest.skip(
f"This MAPDL version ({mapdl_version}) does not support PyMAPDL Database."
)
if mapdl._server_version < (0, 4, 1): # 2021R2
ver_ = ".".join([str(each) for each in mapdl._server_version])
pytest.skip(
f"This version of MAPDL gRPC API version ('ansys.api.mapdl' == {ver_}) is not compatible with 'database' module."
)
mapdl.clear()
> mapdl.db.start()
tests/test_database.py:72:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_grpc.py:2682: in db
self._db.start()
src/ansys/mapdl/core/database/database.py:262: in start
is_running = self.active
src/ansys/mapdl/core/database/database.py:213: in active
return "NOT" not in self._status()
src/ansys/mapdl/core/database/database.py:338: in _status
return self._mapdl.run("/DBS,SERVER,STATUS")
src/ansys/mapdl/core/mapdl_core.py:2212: in run
text = self._run(command, verbose=verbose, mute=mute)
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, '/DBS,SERVER,STATUS')
kwargs = {'mute': False}, old_handler = <built-in function default_int_handler>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "Socket closed"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"Socket closed", grpc_status:14, created_time:"2024-07-08T12:47:14.380734+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
_________________________ ERROR at setup of test_save __________________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def db(mapdl):
from ansys.api.mapdl import __version__ as api_version
api_version = tuple(int(each) for each in api_version.split("."))
if api_version < (0, 5, 1):
pytest.skip("Requires 'ansys.api.mapdl' package to at least v0.5.1.")
## Checking MAPDL versions
mapdl_version = str(mapdl.version)
if not server_meets_version(mapdl_version, MINIMUM_MAPDL_VERSION):
pytest.skip(
f"This MAPDL version ({mapdl_version}) is not compatible with the Database module."
)
## Exceptions
# Exception for 22.2
if mapdl_version == "22.2" and ON_CI:
pytest.skip(
f"This MAPDL version ({mapdl_version}) docker image seems to not support DB, but local does."
)
if mapdl_version == "24.1" or mapdl_version == "24.2":
pytest.skip(
f"This MAPDL version ({mapdl_version}) does not support PyMAPDL Database."
)
if mapdl._server_version < (0, 4, 1): # 2021R2
ver_ = ".".join([str(each) for each in mapdl._server_version])
pytest.skip(
f"This version of MAPDL gRPC API version ('ansys.api.mapdl' == {ver_}) is not compatible with 'database' module."
)
mapdl.clear()
> mapdl.db.start()
tests/test_database.py:72:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_grpc.py:2682: in db
self._db.start()
src/ansys/mapdl/core/database/database.py:262: in start
is_running = self.active
src/ansys/mapdl/core/database/database.py:213: in active
return "NOT" not in self._status()
src/ansys/mapdl/core/database/database.py:338: in _status
return self._mapdl.run("/DBS,SERVER,STATUS")
src/ansys/mapdl/core/mapdl_core.py:2212: in run
text = self._run(command, verbose=verbose, mute=mute)
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, '/DBS,SERVER,STATUS')
kwargs = {'mute': False}, old_handler = <built-in function default_int_handler>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "Socket closed"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"Socket closed", grpc_status:14, created_time:"2024-07-08T12:47:14.380734+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
_________________________ ERROR at setup of test_clear _________________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def db(mapdl):
from ansys.api.mapdl import __version__ as api_version
api_version = tuple(int(each) for each in api_version.split("."))
if api_version < (0, 5, 1):
pytest.skip("Requires 'ansys.api.mapdl' package to at least v0.5.1.")
## Checking MAPDL versions
mapdl_version = str(mapdl.version)
if not server_meets_version(mapdl_version, MINIMUM_MAPDL_VERSION):
pytest.skip(
f"This MAPDL version ({mapdl_version}) is not compatible with the Database module."
)
## Exceptions
# Exception for 22.2
if mapdl_version == "22.2" and ON_CI:
pytest.skip(
f"This MAPDL version ({mapdl_version}) docker image seems to not support DB, but local does."
)
if mapdl_version == "24.1" or mapdl_version == "24.2":
pytest.skip(
f"This MAPDL version ({mapdl_version}) does not support PyMAPDL Database."
)
if mapdl._server_version < (0, 4, 1): # 2021R2
ver_ = ".".join([str(each) for each in mapdl._server_version])
pytest.skip(
f"This version of MAPDL gRPC API version ('ansys.api.mapdl' == {ver_}) is not compatible with 'database' module."
)
mapdl.clear()
> mapdl.db.start()
tests/test_database.py:72:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_grpc.py:2682: in db
self._db.start()
src/ansys/mapdl/core/database/database.py:262: in start
is_running = self.active
src/ansys/mapdl/core/database/database.py:213: in active
return "NOT" not in self._status()
src/ansys/mapdl/core/database/database.py:338: in _status
return self._mapdl.run("/DBS,SERVER,STATUS")
src/ansys/mapdl/core/mapdl_core.py:2212: in run
text = self._run(command, verbose=verbose, mute=mute)
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, '/DBS,SERVER,STATUS')
kwargs = {'mute': False}, old_handler = <built-in function default_int_handler>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "Socket closed"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"Socket closed", grpc_status:14, created_time:"2024-07-08T12:47:14.380734+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
______________________ ERROR at setup of test_nodes_repr _______________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
______________________ ERROR at setup of test_nodes_first ______________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
______________________ ERROR at setup of test_nodes_next _______________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
______________________ ERROR at setup of test_nodes_info _______________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
____________________ ERROR at setup of test_nodes_num[True] ____________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
___________________ ERROR at setup of test_nodes_num[False] ____________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
_____________________ ERROR at setup of test_nodes_max_num _____________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
______________________ ERROR at setup of test_nodes_coord ______________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
_____________________ ERROR at setup of test_nodes_asarray _____________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
______________________ ERROR at setup of test_nodes_push _______________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
______________________ ERROR at setup of test_elems_repr _______________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
______________________ ERROR at setup of test_elems_first ______________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
______________________ ERROR at setup of test_elems_next _______________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
______________________ ERROR at setup of test_elems_info _______________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
____________________ ERROR at setup of test_elems_num[True] ____________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
___________________ ERROR at setup of test_elems_num[False] ____________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
_____________________ ERROR at setup of test_elems_max_num _____________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
_______________________ ERROR at setup of test_elems_get _______________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
______________________ ERROR at setup of test_elems_push _______________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def gen_block(mapdl):
"""Generate nodes and elements in a simple block."""
> mapdl.clear()
tests/test_database.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_extended.py:1272: in clear
self._create_session()
src/ansys/mapdl/core/mapdl_grpc.py:3302: in _create_session
self._run(f"{SESSION_ID_NAME}='{id_}'")
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, "__PYMAPDL_SESSION_ID__='33737da769854347a40ed9a4860'")
kwargs = {'mute': False}, old_handler = <function handler at 0x154335750>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50072: recvmsg:Connection reset by peer", grpc_status:14, created_time:"2024-07-08T12:47:14.711853+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
_____________________ ERROR at setup of test__channel_str ______________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def db(mapdl):
from ansys.api.mapdl import __version__ as api_version
api_version = tuple(int(each) for each in api_version.split("."))
if api_version < (0, 5, 1):
pytest.skip("Requires 'ansys.api.mapdl' package to at least v0.5.1.")
## Checking MAPDL versions
mapdl_version = str(mapdl.version)
if not server_meets_version(mapdl_version, MINIMUM_MAPDL_VERSION):
pytest.skip(
f"This MAPDL version ({mapdl_version}) is not compatible with the Database module."
)
## Exceptions
# Exception for 22.2
if mapdl_version == "22.2" and ON_CI:
pytest.skip(
f"This MAPDL version ({mapdl_version}) docker image seems to not support DB, but local does."
)
if mapdl_version == "24.1" or mapdl_version == "24.2":
pytest.skip(
f"This MAPDL version ({mapdl_version}) does not support PyMAPDL Database."
)
if mapdl._server_version < (0, 4, 1): # 2021R2
ver_ = ".".join([str(each) for each in mapdl._server_version])
pytest.skip(
f"This version of MAPDL gRPC API version ('ansys.api.mapdl' == {ver_}) is not compatible with 'database' module."
)
mapdl.clear()
> mapdl.db.start()
tests/test_database.py:72:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_grpc.py:2682: in db
self._db.start()
src/ansys/mapdl/core/database/database.py:262: in start
is_running = self.active
src/ansys/mapdl/core/database/database.py:213: in active
return "NOT" not in self._status()
src/ansys/mapdl/core/database/database.py:338: in _status
return self._mapdl.run("/DBS,SERVER,STATUS")
src/ansys/mapdl/core/mapdl_core.py:2212: in run
text = self._run(command, verbose=verbose, mute=mute)
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, '/DBS,SERVER,STATUS')
kwargs = {'mute': False}, old_handler = <built-in function default_int_handler>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "Socket closed"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"Socket closed", grpc_status:14, created_time:"2024-07-08T12:47:14.380734+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
________________________ ERROR at setup of test_off_db _________________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def db(mapdl):
from ansys.api.mapdl import __version__ as api_version
api_version = tuple(int(each) for each in api_version.split("."))
if api_version < (0, 5, 1):
pytest.skip("Requires 'ansys.api.mapdl' package to at least v0.5.1.")
## Checking MAPDL versions
mapdl_version = str(mapdl.version)
if not server_meets_version(mapdl_version, MINIMUM_MAPDL_VERSION):
pytest.skip(
f"This MAPDL version ({mapdl_version}) is not compatible with the Database module."
)
## Exceptions
# Exception for 22.2
if mapdl_version == "22.2" and ON_CI:
pytest.skip(
f"This MAPDL version ({mapdl_version}) docker image seems to not support DB, but local does."
)
if mapdl_version == "24.1" or mapdl_version == "24.2":
pytest.skip(
f"This MAPDL version ({mapdl_version}) does not support PyMAPDL Database."
)
if mapdl._server_version < (0, 4, 1): # 2021R2
ver_ = ".".join([str(each) for each in mapdl._server_version])
pytest.skip(
f"This version of MAPDL gRPC API version ('ansys.api.mapdl' == {ver_}) is not compatible with 'database' module."
)
mapdl.clear()
> mapdl.db.start()
tests/test_database.py:72:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_grpc.py:2682: in db
self._db.start()
src/ansys/mapdl/core/database/database.py:262: in start
is_running = self.active
src/ansys/mapdl/core/database/database.py:213: in active
return "NOT" not in self._status()
src/ansys/mapdl/core/database/database.py:338: in _status
return self._mapdl.run("/DBS,SERVER,STATUS")
src/ansys/mapdl/core/mapdl_core.py:2212: in run
text = self._run(command, verbose=verbose, mute=mute)
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, '/DBS,SERVER,STATUS')
kwargs = {'mute': False}, old_handler = <built-in function default_int_handler>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "Socket closed"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"Socket closed", grpc_status:14, created_time:"2024-07-08T12:47:14.380734+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
___________________ ERROR at setup of test_wrong_api_version ___________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def db(mapdl):
from ansys.api.mapdl import __version__ as api_version
api_version = tuple(int(each) for each in api_version.split("."))
if api_version < (0, 5, 1):
pytest.skip("Requires 'ansys.api.mapdl' package to at least v0.5.1.")
## Checking MAPDL versions
mapdl_version = str(mapdl.version)
if not server_meets_version(mapdl_version, MINIMUM_MAPDL_VERSION):
pytest.skip(
f"This MAPDL version ({mapdl_version}) is not compatible with the Database module."
)
## Exceptions
# Exception for 22.2
if mapdl_version == "22.2" and ON_CI:
pytest.skip(
f"This MAPDL version ({mapdl_version}) docker image seems to not support DB, but local does."
)
if mapdl_version == "24.1" or mapdl_version == "24.2":
pytest.skip(
f"This MAPDL version ({mapdl_version}) does not support PyMAPDL Database."
)
if mapdl._server_version < (0, 4, 1): # 2021R2
ver_ = ".".join([str(each) for each in mapdl._server_version])
pytest.skip(
f"This version of MAPDL gRPC API version ('ansys.api.mapdl' == {ver_}) is not compatible with 'database' module."
)
mapdl.clear()
> mapdl.db.start()
tests/test_database.py:72:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_grpc.py:2682: in db
self._db.start()
src/ansys/mapdl/core/database/database.py:262: in start
is_running = self.active
src/ansys/mapdl/core/database/database.py:213: in active
return "NOT" not in self._status()
src/ansys/mapdl/core/database/database.py:338: in _status
return self._mapdl.run("/DBS,SERVER,STATUS")
src/ansys/mapdl/core/mapdl_core.py:2212: in run
text = self._run(command, verbose=verbose, mute=mute)
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, '/DBS,SERVER,STATUS')
kwargs = {'mute': False}, old_handler = <built-in function default_int_handler>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "Socket closed"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"Socket closed", grpc_status:14, created_time:"2024-07-08T12:47:14.380734+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
_________________________ ERROR at setup of test_repr __________________________
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@pytest.fixture(scope="session")
def db(mapdl):
from ansys.api.mapdl import __version__ as api_version
api_version = tuple(int(each) for each in api_version.split("."))
if api_version < (0, 5, 1):
pytest.skip("Requires 'ansys.api.mapdl' package to at least v0.5.1.")
## Checking MAPDL versions
mapdl_version = str(mapdl.version)
if not server_meets_version(mapdl_version, MINIMUM_MAPDL_VERSION):
pytest.skip(
f"This MAPDL version ({mapdl_version}) is not compatible with the Database module."
)
## Exceptions
# Exception for 22.2
if mapdl_version == "22.2" and ON_CI:
pytest.skip(
f"This MAPDL version ({mapdl_version}) docker image seems to not support DB, but local does."
)
if mapdl_version == "24.1" or mapdl_version == "24.2":
pytest.skip(
f"This MAPDL version ({mapdl_version}) does not support PyMAPDL Database."
)
if mapdl._server_version < (0, 4, 1): # 2021R2
ver_ = ".".join([str(each) for each in mapdl._server_version])
pytest.skip(
f"This version of MAPDL gRPC API version ('ansys.api.mapdl' == {ver_}) is not compatible with 'database' module."
)
mapdl.clear()
> mapdl.db.start()
tests/test_database.py:72:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/ansys/mapdl/core/mapdl_grpc.py:2682: in db
self._db.start()
src/ansys/mapdl/core/database/database.py:262: in start
is_running = self.active
src/ansys/mapdl/core/database/database.py:213: in active
return "NOT" not in self._status()
src/ansys/mapdl/core/database/database.py:338: in _status
return self._mapdl.run("/DBS,SERVER,STATUS")
src/ansys/mapdl/core/mapdl_core.py:2212: in run
text = self._run(command, verbose=verbose, mute=mute)
src/ansys/mapdl/core/mapdl_grpc.py:904: in _run
response = self._send_command(cmd, mute=mute)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>, '/DBS,SERVER,STATUS')
kwargs = {'mute': False}, old_handler = <built-in function default_int_handler>
class_name = 'MapdlGrpc'
mapdl = <ansys.mapdl.core.mapdl_grpc.MapdlGrpc object at 0x16a4cbbb0>
@wraps(func)
def wrapper(*args, **kwargs):
"""Capture gRPC exceptions and KeyboardInterrupt"""
# capture KeyboardInterrupt
old_handler = None
if threading.current_thread().__class__.__name__ == "_MainThread":
if threading.current_thread().is_alive():
old_handler = signal.signal(signal.SIGINT, handler)
# Capture gRPC exceptions
try:
out = func(*args, **kwargs)
except (_InactiveRpcError, _MultiThreadedRendezvous) as error:
# can't use isinstance here due to circular imports
try:
class_name = args[0].__class__.__name__
except:
class_name = ""
if class_name == "MapdlGrpc":
mapdl = args[0]
elif hasattr(args[0], "_mapdl"):
mapdl = args[0]._mapdl
# Must close unfinished processes
mapdl._close_process()
> raise MapdlExitedError(
f"MAPDL server connection terminated with the following error\n{error}"
) from None
E ansys.mapdl.core.errors.MapdlExitedError: MAPDL server connection terminated with the following error
E <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAVAILABLE
E details = "Socket closed"
E debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"Socket closed", grpc_status:14, created_time:"2024-07-08T12:47:14.380734+02:00"}"
E >
src/ansys/mapdl/core/errors.py:319: MapdlExitedError
========================= memory consumption estimates =========================
pymapdl::tests::test_database.py::test_database_start_stop - 176.0 KB
========================= PyMAPDL Pytest short summary =========================
[ERROR] test_database_repr - E >
[ERROR] test_save - E >
[ERROR] test_clear - E >
[ERROR] test_nodes_repr - E >
[ERROR] test_nodes_first - E >
[ERROR] test_nodes_next - E >
[ERROR] test_nodes_info - E >
[ERROR] test_nodes_num[True] - E >
[ERROR] test_nodes_num[False] - E >
[ERROR] test_nodes_max_num - E >
[ERROR] test_nodes_coord - E >
[ERROR] test_nodes_asarray - E >
[ERROR] test_nodes_push - E >
[ERROR] test_elems_repr - E >
[ERROR] test_elems_first - E >
[ERROR] test_elems_next - E >
[ERROR] test_elems_info - E >
[ERROR] test_elems_num[True] - E >
[ERROR] test_elems_num[False] - E >
[ERROR] test_elems_max_num - E >
[ERROR] test_elems_get - E >
[ERROR] test_elems_push - E >
[ERROR] test__channel_str - E >
[ERROR] test_off_db - E >
[ERROR] test_wrong_api_version - E >
[ERROR] test_repr - E >
=================== 1 passed, 1 skipped, 26 errors in 3.88s ====================
MAPDL output
/OUTPUT FILE= anstmp
*** MAPDL - ENGINEERING ANALYSIS SYSTEM RELEASE 25.1BETA ***
Ansys Mechanical Enterprise
00000000 VERSION=LINUX x64 10:47:13 JUL 08, 2024 CP= 1.104
** WARNING: PRE-RELEASE VERSION OF MAPDL 25.1BETA
ANSYS,INC TESTING IS NOT COMPLETE - CHECK RESULTS CAREFULLY **
***** MAPDL ANALYSIS DEFINITION (PREP7) *****
/OUTPUT FILE= anstmp
/OUTPUT FILE= anstmp
*** MAPDL - ENGINEERING ANALYSIS SYSTEM RELEASE 25.1BETA ***
Ansys Mechanical Enterprise
00000000 VERSION=LINUX x64 10:47:14 JUL 08, 2024 CP= 1.112
** WARNING: PRE-RELEASE VERSION OF MAPDL 25.1BETA
ANSYS,INC TESTING IS NOT COMPLETE - CHECK RESULTS CAREFULLY **
***** MAPDL ANALYSIS DEFINITION (PREP7) *****
/OUTPUT FILE= anstmp
/OUTPUT FILE= anstmp
*** MAPDL - ENGINEERING ANALYSIS SYSTEM RELEASE 25.1BETA ***
Ansys Mechanical Enterprise
00000000 VERSION=LINUX x64 10:47:14 JUL 08, 2024 CP= 1.116
** WARNING: PRE-RELEASE VERSION OF MAPDL 25.1BETA
ANSYS,INC TESTING IS NOT COMPLETE - CHECK RESULTS CAREFULLY **
***** MAPDL ANALYSIS DEFINITION (PREP7) *****
/OUTPUT FILE= anstmp
/OUTPUT FILE= anstmp
*** MAPDL - ENGINEERING ANALYSIS SYSTEM RELEASE 25.1BETA ***
Ansys Mechanical Enterprise
00000000 VERSION=LINUX x64 10:47:14 JUL 08, 2024 CP= 1.120
** WARNING: PRE-RELEASE VERSION OF MAPDL 25.1BETA
ANSYS,INC TESTING IS NOT COMPLETE - CHECK RESULTS CAREFULLY **
***** MAPDL ANALYSIS DEFINITION (PREP7) *****
/OUTPUT FILE= anstmp
***** ROUTINE COMPLETED ***** CP = 1.123
CLEAR MAPDL DATABASE AND RESTART
Ansys Mechanical Enterprise
***** ROUTINE COMPLETED ***** CP = 1.224
/OUTPUT FILE= anstmp
/OUTPUT FILE= anstmp
Current ANSYS Traceback:
DBServer
Mapdl::SendCommand
Mapdl::SendCommand
Mapdl::SendCommand
GRPC_Start
gRPCMapdlStart
ANSYS
/ansys_inc/ansys/bin/mapdl: line 412: 158 Segmentation fault /ansys_inc/ansys/bin/linx64/ansys.e -grpc -m 8192 -db 2048 -meba -smp -np 4
Metadata
Metadata
Assignees
Labels
MAPDLRequires changes in MAPDLRequires changes in MAPDL