<div dir="ltr"><div>Hello everyone,</div><div><br></div><div>I am trying to run the <a href="https://www.sasview.org/docs/user/qtgui/Perspectives/Fitting/scripting.html">scripting tutorial</a>, and I am unable to run the code because I can't import the 'sas' package. <br></div><div><br></div><div>When I run the import statements at the top of the tutorial, i.e.</div><div><span style="font-family:monospace"><br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-family:monospace">import sys<br>from bumps.names import *<br>from sasmodels.core import load_model<br>from sasmodels.bumps_model import Model, Experiment<br>from sasmodels.data import load_data, set_beam_stop, set_top</span></blockquote><div><br></div><div>I get <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-family:monospace">---------------------------------------------------------------------------<br>ModuleNotFoundError                       Traceback (most recent call last)<br>Cell In[9], line 4<br>      2 from bumps.names import *<br>      3 from sasmodels.core import load_model<br>----> 4 from sasmodels.bumps_model import Model, Experiment<br>      5 from sasmodels.data import load_data, set_beam_stop, set_top<br><br>File ~/micromamba/envs/smi_py311/lib/python3.11/site-packages/sasmodels/bumps_model.py:20<br>     16 __all__ = ["Model", "Experiment", "BumpsParameter"]<br>     18 import numpy as np  # type: ignore<br>---> 20 from .data import plot_theory<br>     21 from .direct_model import DataMixin<br>     23 # pylint: disable=unused-import<br><br>File ~/micromamba/envs/smi_py311/lib/python3.11/site-packages/sasmodels/data.py:39<br>     37 import numpy as np  # type: ignore<br>     38 from numpy import sqrt, sin, cos, pi<br>---> 39 import sas<br>     40 # pylint: disable=unused-import<br>     41 try:<br><br>ModuleNotFoundError: No module named 'sas'</span></blockquote><div><br></div><div><div>I apparently have sasmodels installed, since I can successfully import <span style="font-family:monospace">load_model </span>from sasmodels<span style="font-family:monospace">.core</span>. However, it seems I am missing the <span style="font-family:monospace">sas</span> package. I have searched online and wasn't able to find any such package. I ran a simple <span style="font-family:monospace">pip install sas</span>, and indeed, something downloaded, but it didn't resolve the issue.</div><div><br></div><div>Any insights on the issue would be most appreciated.</div><div><br></div><div>Best, <br></div><div><br></div><div>Ian Billinge<br></div><div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Ian Billinge</div><div><i>he/him/his</i></div><div>Ph.D Student, Yip Lab</div><div>Dept. of Earth & Environmental Engineering</div><div>Fu Foundation School of Engineering</div><div>Columbia University in the City of New York<br></div></div></div></div></div></div>