# Loading petrophysical file

**URL:** <https://simpeg.discourse.group/t/loading-petrophysical-file/360>\
**Category:** Getting Started\
**Created:** [September 7, 2022, 5:46am UTC](https://simpeg.discourse.group/t/loading-petrophysical-file/360 "2022-09-07T05:46:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shreya](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@shreya](https://simpeg.discourse.group/u/shreya)\
**Post date:** [September 7, 2022, 5:46am UTC](https://simpeg.discourse.group/t/loading-petrophysical-file/360/1 "2022-09-07T05:46:43Z")

</div>

I am not able to load a .p extension file with simpeg. It says No module named ‘SimPEG.Utils’. Please resolve my issue. Thank you in advance. Below is the code that I am using  
A= open(‘C:\Users\Astic-2020-JointInversion-master\Petrophysics\gmm\_density\_HK.p’,‘rb’)  
clf = pickle.load(A)  
n = clf.n\_components

---

<div class="post-metadata">

**Author:** ![thibaut.astic](https://yyz2.discourse-cdn.com/free1/user_avatar/simpeg.discourse.group/thibaut.astic/32/109_2.png) [@thibaut.astic](https://simpeg.discourse.group/u/thibaut.astic)\
**Post date:** [September 7, 2022, 7:07pm UTC](https://simpeg.discourse.group/t/loading-petrophysical-file/360/2 "2022-09-07T19:07:59Z")

</div>

Hi @shreya,  
pickle files are sensitive to renaming (here, Utils was renamed utils in SimPEG). Thus, they are not compatible with the new distribution of SimPEG. Furthermore, it is worth noting all the notebooks in that repository relies on an older version of SimPEG.

Two things.

1. If you really need it, you can regenerate the pickle files using the notebook: [Astic-2020-JointInversion/Create\_petrophysical\_GMM.ipynb at master · simpeg-research/Astic-2020-JointInversion · GitHub](https://github.com/simpeg-research/Astic-2020-JointInversion/blob/master/Petrophysics/Create_petrophysical_GMM.ipynb). It will likely need some fixes (like Utils → utils) but should not be too troublesome.

2. But what I would highly recommend if you are more interested in the joint inversion side: the same synthetic example was turned into a tutorial with an octree mesh (with and without prior petrophysical information): [Joint Inversion — SimPEG 0.17.0 documentation](http://docs.simpeg.xyz/content/tutorials/13-joint_inversion/index.html)
