I cannot print from a macro created especially for construction software

I create a macro that works in conjunction with a construction software, the problem is that when switching to python 3, when printing a special report that compares information extracted from the software, it does not print in pdf. I have just installed the modules of python3 that were missing but even if it does not print in pdf and no error appears.