when I run the following code:"
import orekit
orekit.initVM()
from java.io import File
from org.orekit.data import DataProvidersManager, DirectoryCrawler
from orekit import JArray
orekit_data_dir = ‘orekit-data’
datafile = File(orekit_data_dir)
if not datafile.exists():
print(‘Directory :’, datafile.absolutePath, ’ not found’)
DM = DataProvidersManager.getInstance()
crawler = DirectoryCrawler(datafile)
DM.clearProviders()
DM.addProvider(crawler)
"
Errors:
AttributeError: type object ‘DataProvidersManager’ has no attribute ‘getInstance’
Need your help, thanks a lot.