Free Support Forum - aspose.com

Convert OST to PST using Aspose Email for python via NET

Trying to convert OST to PST using Aspose Email for python via NET
I am getting the error PersonalStorage is not defined, but cannot figure out what to import to access PersonalStorage class in python.

Here is the code line and the traceback

pst = PersonalStorage.from_file(“xxxxxxxxx.ost”)
Traceback (most recent call last):
File “”, line 1, in
NameError: name ‘PersonalStorage’ is not defined

@redonja,

Can you please share source file so that we may further investigate on our end to help you out.

@redonja,

Please try to use following code snippet on your end. This will help you to achieve your results.

PersonalStorage.from_file(“outlook0.ost”, False) ;
ost.save_as (“some.pst”, FileFormat.PST);

could someone solve the problem?

@Soulkuyi

Can you please state what issue you are facing.

the same problem presented by @redonja
not fixed with answer from @Adnan.Ahmad

@Soulkuyi

Please share the source OST file that is failing to get converted to PST.