PersonalStorage is not defined


#1

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.


#2

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


#3

@redonja,

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


#4

@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);