ansys / pydpf-post

Data Processing Framework - Post Processing Module
https://post.docs.pyansys.com
MIT License
43 stars 10 forks source link

post.load_solution error: "name 'warnings' is not defined" #199

Open Jalmenara opened 1 year ago

Jalmenara commented 1 year ago

Before submitting the issue

Description of the bug

Trying to load the DPF-Post example for a static analysis, there is an issue at the load_solution method

image

Steps To Reproduce

ANSYS 2021 R2 running on CentOS 7:

$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.9.2009 (Core)
Release:        7.9.2009
Codename:       Core

Python 3.8.15 running in an Anaconda environment, with the packages listed below.

Which Operating System are you using?

Linux

Which Python version are you using?

3.8

Installed packages

$ python -m pip freeze
aiohttp==3.8.3
aiosignal==1.3.1
ansys-api-mapdl==0.5.1
ansys-api-platform-instancemanagement==1.0.0b3
ansys-corba==0.1.1
ansys-dpf-core==0.6.2
ansys-dpf-gate==0.2.3
ansys-dpf-gatebin==0.2.3
ansys-dpf-post==0.2.5
ansys-grpc-dpf==0.3.0
ansys-mapdl-core==0.63.3
ansys-mapdl-reader==0.52.3
ansys-platform-instancemanagement==1.0.2
appdirs==1.4.4
asttokens @ file:///home/conda/feedstock_root/build_artifacts/asttokens_1667325728359/work
async-timeout==4.0.2
attrs==22.1.0
backcall @ file:///home/conda/feedstock_root/build_artifacts/backcall_1592338393461/work
backports.functools-lru-cache @ file:///home/conda/feedstock_root/build_artifacts/backports.functools_lru_cache_1618230623929/work
cachetools==5.2.0
certifi==2022.9.24
charset-normalizer==2.1.1
comm @ file:///home/conda/feedstock_root/build_artifacts/comm_1668713578881/work
cycler @ file:///home/conda/feedstock_root/build_artifacts/cycler_1635519461629/work
debugpy @ file:///home/conda/feedstock_root/build_artifacts/debugpy_1666826399851/work
decorator @ file:///home/conda/feedstock_root/build_artifacts/decorator_1641555617451/work
entrypoints @ file:///home/conda/feedstock_root/build_artifacts/entrypoints_1643888246732/work
executing @ file:///home/conda/feedstock_root/build_artifacts/executing_1667317341051/work
frozenlist==1.3.3
geomdl==5.3.1
git-filter-repo @ file:///home/conda/feedstock_root/build_artifacts/git-filter-repo_1642678241140/work
google-api-core==2.10.2
google-api-python-client==2.66.0
google-auth==2.14.1
google-auth-httplib2==0.1.0
googleapis-common-protos==1.57.0
grpcio==1.50.0
httplib2==0.21.0
idna==3.4
imageio==2.22.4
importlib-metadata==5.0.0
ipykernel @ file:///home/conda/feedstock_root/build_artifacts/ipykernel_1669056400400/work
ipython @ file:///home/conda/feedstock_root/build_artifacts/ipython_1667140637743/work
jedi @ file:///home/conda/feedstock_root/build_artifacts/jedi_1659959867326/work
jupyter_client @ file:///home/conda/feedstock_root/build_artifacts/jupyter_client_1668623095912/work
jupyter_core @ file:///home/conda/feedstock_root/build_artifacts/jupyter_core_1668030817979/work
kiwisolver @ file:///home/conda/feedstock_root/build_artifacts/kiwisolver_1666805766046/work
matplotlib @ file:///home/conda/feedstock_root/build_artifacts/matplotlib-base_1594091694890/work
matplotlib-inline @ file:///home/conda/feedstock_root/build_artifacts/matplotlib-inline_1660814786464/work
multidict==6.0.2
nest-asyncio @ file:///home/conda/feedstock_root/build_artifacts/nest-asyncio_1664684991461/work
numpy @ file:///home/conda/feedstock_root/build_artifacts/numpy_1662888872762/work
packaging @ file:///home/conda/feedstock_root/build_artifacts/packaging_1637239678211/work
parso @ file:///home/conda/feedstock_root/build_artifacts/parso_1638334955874/work
pexpect @ file:///home/conda/feedstock_root/build_artifacts/pexpect_1667297516076/work
pickleshare @ file:///home/conda/feedstock_root/build_artifacts/pickleshare_1602536217715/work
Pillow @ file:///home/conda/feedstock_root/build_artifacts/pillow_1660385857893/work
platformdirs @ file:///home/conda/feedstock_root/build_artifacts/platformdirs_1657729053205/work
pooch==1.6.0
prompt-toolkit @ file:///home/conda/feedstock_root/build_artifacts/prompt-toolkit_1669057097528/work
protobuf==3.20.3
protoc-gen-swagger==0.1.0
psutil @ file:///home/conda/feedstock_root/build_artifacts/psutil_1667885878918/work
ptyprocess @ file:///home/conda/feedstock_root/build_artifacts/ptyprocess_1609419310487/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl
pure-eval @ file:///home/conda/feedstock_root/build_artifacts/pure_eval_1642875951954/work
pyasn1==0.4.8
pyasn1-modules==0.2.8
Pygments @ file:///home/conda/feedstock_root/build_artifacts/pygments_1660666458521/work
pyiges==0.2.1
pyparsing @ file:///home/conda/feedstock_root/build_artifacts/pyparsing_1652235407899/work
python-dateutil @ file:///home/conda/feedstock_root/build_artifacts/python-dateutil_1626286286081/work
pyvista==0.37.0
pyzmq @ file:///home/conda/feedstock_root/build_artifacts/pyzmq_1666828534876/work
requests==2.28.1
rsa==4.9
scipy==1.9.1
scooby==0.7.0
six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
stack-data @ file:///home/conda/feedstock_root/build_artifacts/stack_data_1668260892666/work
tornado @ file:///home/conda/feedstock_root/build_artifacts/tornado_1666788592778/work
tqdm==4.64.1
traitlets @ file:///home/conda/feedstock_root/build_artifacts/traitlets_1666115969632/work
uritemplate==4.1.1
urllib3==1.26.12
vtk==9.2.2
wcwidth @ file:///home/conda/feedstock_root/build_artifacts/wcwidth_1600965781394/work
wslink==1.9.1
yarl==1.8.1
zipp==3.10.0