"No module named mech_dpf" error while importing mech_dpf in ACT extension

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 470
100 Answers 250 Likes 100 Comments Second Anniversary
✭✭✭✭
edited June 2023 in Structures

I have developed an ACT extension which uses DPF for post-processing. All relevant DPF libraries are imported correctly at the beginning of the Python file:

import mech_dpf
import Ans.DataProcessing as dpf

mech_dpf.setExtAPI(ExtAPI)
dpf.DataProcessingCore.LoadLibrary(
    "math", r"C:\Program Files\ANSYS Inc\v211\aisol\bin\winx64\Ans.Dpf.Math.dll")

However, when I reload the extension I get the below shown error. This doesn't affect the result but how can I get around this error in the log?

enter image description here

Tagged:

Answers