problem with DPF results_provider

Hello everyone,
I am trying to run the example "HDF5 export and import operations" however, when running the line:
h5_read_op = dpf.operators.result.result_provider()
i get the error:
AttributeError: module 'ansys.dpf.core.operators.result' has no attribute 'result_provider'
Ichecked online and it seems like results_provider should be part of dpf.operators.result however it does not seem to be the case in my dpf installation. I tested in two machines and I get the same error in both.
my python version is 3.11 and my package versions are:
ansys-acp-core 0.1b2
ansys-additive-core 0.18.1
ansys-additive-widgets 0.2.1
ansys-api-acp 0.1.0.dev9
ansys-api-additive 1.7.2
ansys-api-dbu 0.3.4
ansys-api-dyna 0.3.6
ansys-api-edb 1.0.10
ansys-api-fluent 0.3.31
ansys-api-geometry 0.4.6
ansys-api-mapdl 0.5.2
ansys-api-mechanical 0.1.2
ansys-api-meshing-prime 0.1.3
ansys-api-modelcenter 0.3.1
ansys-api-platform-instancemanagement 1.1.0
ansys-api-pyensight 0.4.1
ansys-api-sherlock 0.1.27
ansys-api-systemcoupling 0.1.0
ansys-api-tools-filetransfer 0.1.1
ansys-api-workbench 0.2.0
ansys-conceptev-core 0.1.4
ansys-dpf-composites 0.5.0
ansys-dpf-core 0.12.2
ansys-dpf-post 0.8.0
ansys-dyna-core 0.4.15
ansys-dynamicreporting-core 0.6.0
ansys-edb-core 0.1.9
ansys-engineeringworkflow-api 0.1.0
ansys-fluent-core 0.22.0
ansys-geometry-core 0.6.6
ansys-grantami-bomanalytics 2.1.1
ansys-grantami-bomanalytics-openapi 3.0.0
ansys-grantami-jobqueue 1.0.1
ansys-grantami-recordlists 1.2.1
ansys-grantami-serverapi-openapi 3.0.0
ansys-grpc-dpf 0.8.1
ansys-hps-client 0.8.0
ansys-mapdl-core 0.68.4
ansys-mapdl-reader 0.53.0
ansys-math-core 0.1.5
ansys-mechanical-core 0.11.5
ansys-mechanical-env 0.1.7
ansys-mechanical-stubs 0.1.4
ansys-meshing-prime 0.6.2
ansys-modelcenter-workflow 0.1.1
ansys-motorcad-core 0.5.5
ansys-openapi-common 2.2.0
ansys-optislang-core 0.8.0
ansys-platform-instancemanagement 1.1.2
ansys-pyensight-core 0.8.8
ansys-pythonnet 3.1.0rc4
ansys-rocky-core 0.2.0
ansys-seascape 0.2.0
ansys-sherlock-core 0.6.0
ansys-simai-core 0.2.2
ansys-sound-core 0.1.3
ansys-systemcoupling-core 0.6
ansys-tools-filetransfer 0.1.1
ansys-tools-local-product-launcher 0.1.1
ansys-tools-path 0.6.0
ansys-tools-visualization-interface 0.6.2
ansys-turbogrid-api 0.4.3
ansys-turbogrid-core 0.4.1
ansys-units 0.3.4
ansys-workbench-core 0.6.0
Thanks in advance!
Best Answer
-
Hi, this is an issue with package versions. You are using ansys-dpf-core 0.12.2. This operator was not available in that version. This is the example you are trying to run with that pydpf version, and the operator is not mentioned. Can you try the alternative approach that was used there? Another possibility is to upgrade to a newer ansys-dpf-core version. Thanks!
0
Answers
-
Hello,
Yes! this worked.
Thanks for your help!
0