This python script
from aspose.psd import Image
from aspose.psd.fileformats.psd import PsdImage
from aspose.psd.fileformats.psd.layers.smartobjects import SmartObjectLayer
from aspose.psd.imageloadoptions import PsdL…...Check if you are using the latest version of the Aspose.PSD library...not, consider updating to the latest version as it may contain bug...