Install & Compatibility
Where this runs
tested against v0.56.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
build_error
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 15.3s · import 3.432s · 858MB
820MB installed
● package 820MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Archive
✓ from ansys.mapdl.reader import Archive
Direct import path
ResultFile
✓ from ansys.mapdl.reader import ResultFile
Main class for reading RST files
Open a MAPDL result file and inspect basic properties.
from ansys.mapdl.reader import ResultFile
# Replace with your MAPDL result file path
rst = ResultFile('file.rst')
print(rst)
print('Number of results:', rst.n_results)
# Get mesh and solution at a specific result set
mesh = rst.mesh
result = rst.result(0) # first set
print('Nodal displacements shape:', result.nodal_displacement.shape)
ansys-mapdl-reader --version
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'ansys.mapdl'
Library not installed or conflicting with old 'pymapdl-reader' package.
fixRun `pip install ansys-mapdl-reader`. If you had the old `pymapdl-reader`, uninstall first: `pip uninstall pymapdl-reader`.
AttributeError: 'NoneType' object has no attribute 'nodal_displacement'
Trying to access results on an unread or empty result set.
fixEnsure the file exists and is not corrupted. Check `rst.n_results > 0` before accessing results.
ValueError: could not convert string to float: '...'
Incorrect file format or corrupted header in ASCII result files (e.g., .rst converted incorrectly).
fixVerify the file is a valid MAPDL binary result file. If it's ASCII, use `ResultFile('file.rst', mode='ascii')`. Upgrade
Version history
0.56.0latest on PyPI · released May 19, 2026
Audit
Dependencies
pyvistarequiredPrimary 3D visualization backend
vtkrequiredVTK is required for many operations
numpyrequiredArray handling
trameoptionalWeb-based plotting (optional)