I'm trying to use the Subprocess.py lib in a macro but it's not working.
here is an exemple of the code:
- Code: Select all
import subprocess
subprocess.run(['print("hello")'],shell=True)
I got this message:
MagicDraw cannot execute the Jython macro, please make sure that the md:\\_19_0_2_e670268_1627040463662_130879_79761 is correct. null java.lang.IncompatibleClassChangeError: java.lang.IncompatibleClassChangeError: Found class com.kenai.jffi.InvocationBuffer, but interface was expected in md:\\_19_0_2_e670268_1627040463662_130879_79761 at line number 2
I tried it on a pyhton IDE it's working
Does anyone know why?
Thank you by advance,
Alban