I am trying to import database, as per gmpe-smtk-guide. But according to google, there is no cPickle in Python3, but the guide is using it. Also I tried a solution as suggested in google, but that also didn't work. Is there any new way to load these metadatafile, or some tweaks so that we can use cPickle or something like that?
Thank You!
Case 1:::
------------------------------
import cPickle
db1 = cPickle.load(open(r"F:\Python_Sonice\ngawest_db\metadatafile.pkl", "r"))
O/P -- ErrorMsg::
module not found
----------------------------------------------------------------
Case 2
-------------------------------------------------
import _pickle as cPickle
import cPickle
db1 = cPickle.load(open(r"F:\Python_Sonice\ngawest_db\metadatafile.pkl", "r"))
O/P
ErrorMsg:::
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 44: character maps to <undefined>