<div dir="ltr"><div dir="ltr"><div dir="ltr">Yes. This is what I get when I activate the environment. <div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"># To activate this environment, use</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">#</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"># $ conda activate ncl_to_python</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">#</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"># To deactivate an active environment, use</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">#</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"># $ conda deactivate</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">(ncl_to_python) LASLA17110290:~ mmundakk$ conda activate ncl_to_python</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">(ncl_to_python) LASLA17110290:~ mmundakk$ </span></p></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div>It does show "(ncl_to_python)". <br></div><div><br></div><div>this is what the path to python is:</div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">/Users/mmundakk/anaconda3/envs/ncl_to_python/bin/python</span></p></div><div><br></div><div>Thanks,</div><div>Mahesh</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 3, 2019 at 12:22 PM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu">brownrig@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>A couple of troubleshooting questions:</div><div><br></div><div><span style="background-color:rgb(255,255,255)">- Are you certain the environment was indeed activated? The command prompt should be prefixed with the env name in parenthesis (i.e., (<span style="color:rgb(0,0,0);font-family:Menlo;font-size:11px">ncl_to_python) $ )</span></span></div><div><font color="#000000" face="Menlo"><span style="font-size:11px;background-color:rgb(255,255,255)">- Which version of python? Try "which python" and verify the path is something like</span></font></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000" face="Menlo"><span style="font-size:11px"> ..../</span></font><span style="color:rgb(0,0,0);font-family:Menlo;font-size:14px">miniconda3/envs/ncl_to_python/bin/python</span></span></div><div><font color="#000000" face="Menlo"><span style="font-size:11px;background-color:rgb(255,255,255)">- You might try "source activate ncl_to_python"</span></font></div><div><font color="#000000" face="Menlo"><span style="font-size:11px;background-color:rgb(255,255,255)"><br></span></font></div><div><font color="#000000" face="Menlo"><span style="font-size:11px;background-color:rgb(255,255,255)">Rick</span></font></div><div><font color="#000000" face="Menlo"><span style="font-size:11px;background-color:rgb(254,244,156)"><br></span></font></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 3, 2019 at 9:55 AM Mahesh Kovilakam <<a href="mailto:mkmvarma@gmail.com" target="_blank">mkmvarma@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi, <div>I am now transitioning from NCL to python and installed the modules using conda:</div><div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">conda create -n ncl_to_python -c conda-forge xarray netcdf4 scipy pyngl pynio ncl</span></p></div><div><br></div><div>I then activated the environment using </div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">conda activate ncl_to_python</span></p></div><div><br></div><div>I then used an example "TRANS_read_netCDF.py ". However, after running the script it gives the error:</div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> import Ngl,Nio</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">ImportError: No module named Ngl</span></p></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><br></div><div>Is it just a path issue? Any help is appreciated.</div><div><br></div><div>Thanks,</div><div>Mahesh</div></div></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
</blockquote></div>