<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Nathan,<div><br></div><div>You're definitely right! Everything seems to be working now.</div><div><br></div><div>Thanks for walking me through this. </div><div><br></div><div><br></div><div><br></div><div>Andrew E.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 28, 2015 at 1:56 AM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Fri, Mar 27, 2015 at 10:41 PM, Andrew James Emerick <span dir="ltr"><<a href="mailto:aje2123@columbia.edu" target="_blank">aje2123@columbia.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">I feel like I may have just tied myself into a package installation knot...</div><div class="gmail_extra"><br></div><div class="gmail_extra">I decided to try and preempt future headaches by just installing via conda ($conda install yt). This ran fine, and I can now run "yt update" without getting the error message. So now, for the commands you asked for:</div><div class="gmail_extra"><br></div><div class="gmail_extra">which yt   ->         /home/emerick/anaconda/bin/yt</div><div class="gmail_extra">which python >     /home/emerick/anaconda/bin/python</div><div class="gmail_extra">import yt; yt.__file__ -> /home/emerick/code/yt/yt/__init__.pyc</div><div class="gmail_extra"><br></div><div class="gmail_extra">Now, that is somewhat baffling. The final path is the path to the original yt installation (installed from source, managed by mercurial) I was using. The weird part is that that path is not located in any environment variables that I could think of (e.g. $PATH, $PYTHONPATH, $LD_LIBRARY_PATH, etc.).</div><div class="gmail_extra"><br></div><div class="gmail_extra">I figured there was a chance it would work now, even given the above, but when running the same code as before I get a new error (though I guess maybe I shouldn't be surprised): <a href="http://paste.yt-project.org/show/5494/" target="_blank">http://paste.yt-project.org/show/5494/</a>  </div></div></blockquote><div><br></div></span><div>This is actually due to a very recent change by Cameron Hummels, who totally revamped the plot callbacks recently. The annoate_line callback should take two coordinates and draw a straight line between them.  Take a look at the dev docs:</div><div><br></div><div><a href="http://yt-project.org/docs/dev/visualizing/callbacks.html#overplot-a-straight-line" target="_blank">http://yt-project.org/docs/dev/visualizing/callbacks.html#overplot-a-straight-line</a><br></div><div><br></div><div>And the docstring for the callback:</div><div><br></div><div><a href="http://yt-project.org/docs/dev/reference/api/generated/yt.visualization.plot_modifications.LinePlotCallback.html#yt.visualization.plot_modifications.LinePlotCallback" target="_blank">http://yt-project.org/docs/dev/reference/api/generated/yt.visualization.plot_modifications.LinePlotCallback.html#yt.visualization.plot_modifications.LinePlotCallback</a><br></div><div><div class="h5"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Andrew E.</div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 28, 2015 at 12:40 AM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Fri, Mar 27, 2015 at 9:28 PM, Andrew James Emerick <span dir="ltr"><<a href="mailto:aje2123@columbia.edu" target="_blank">aje2123@columbia.edu</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Nathan,<div><br></div><span><div>I can do "import h5py" without issue in a python script, and checked the "from h5py import _errors" statement that seems to cause the breakage. Updating via conda didn't fix the issue. I have hdf5 and h5py installed via conda.</div><div><br></div><div>Doing some more checking it looks like (for whatever reason) when running "yt update" it is looking for a version of the hdf5 library that I don't have anywhere. When I did the soft linking of the libhdf5.so that I do have to the libhdf5.so.6 that it is looking for, it yelled at me saying it is trying to use the HDF5 version 1.8.4 headers, but can't find the corresponding libraries. (the most up to date version I have installed is 1.8.14).</div><div><br></div><div>I guess a workaround would be to get the HDF5 1.8.4 library somewhere, but I'm still bothered by this... </div></span></div></blockquote><div><br></div><div>I'm not sure what's going wrong here.  You shouldn't need to create a softlink and you shouldn't need to install an old version of the hdf5 library. It sort of looks like you have the remnants of an old python installation conflicting with your current anaconda installation. Unfortunately it's really hard to debug this sort of thing remotely...</div><div><br></div><div>Can you paste the output of:</div><div><br></div><div>$ which yt</div><div>$ which python</div><div>$ python -c 'import yt; yt.__file__'</div><div> </div><div>I'm looking for yt being installed in a strange place outside of your normal python installation.</div><div><br></div><div>You could try the yt conda package, installable via "consta install yt", which is newer than the old pre-yt 3.1 development version you had installed.</div><div><br></div><div>You could also try installing yt from a fresh clone of the yt mercurial repository.  See the instructions here:</div><div><br></div><div><a href="http://yt-project.org/docs/dev/installing.html#installing-yt-using-pip-or-from-source" target="_blank">http://yt-project.org/docs/dev/installing.html#installing-yt-using-pip-or-from-source</a><br></div><div><br></div><div>Finally, you could build a fresh conda package based on the yt mercurial repostiory.  That will require a small modification to the conda recipe to point it at the mercurial repository instead of the release tarball on pypi.</div><div><br></div><div>Hope you're able to sort this out.</div><span><font color="#888888"><div><br></div><div>-Nathan</div></font></span><div><br></div><div>PS Python packaging is literally the worst.</div><div><div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Thanks again.</div><div><br></div><div><br></div><div><br></div><div>Andrew E.</div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 27, 2015 at 5:18 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Fri, Mar 27, 2015 at 2:15 PM, Andrew James Emerick <span dir="ltr"><<a href="mailto:aje2123@columbia.edu" target="_blank">aje2123@columbia.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Nathan,<div><br></div><div>Thanks for the response. I have been delinquent in updating yt. </div><div><br></div><div>Running "yt update", however gives me this error: <a href="http://paste.yt-project.org/show/5492/" target="_blank">http://paste.yt-project.org/show/5492/</a></div><div><br></div><div>Looks like an issue with finding the <span style="color:rgb(0,0,0);font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px">libhdf5.so.6</span> library that I couldn't figure out on my own. I had installed yt from source as to not disturb the python, numpy, hdf5, etc. installations I already had (managed by anaconda). I have <font color="#000000" face="Bitstream Vera Sans Mono, monospace">libhdf5.so.9 in my LD_LIBRARY_PATH (I already tried soft linking .so.9 as .so.6 .. understandably it threw an error).</font><br></div><div><br></div></div></blockquote><div><br></div></span><div>The error is happening when python tries to import h5py.  Can you import h5py in a script that doesn't use yt?  How did you install h5py?</div><div><br></div><div>$ conda update -f h5py</div><div><br></div><div>might fix this.</div><div><div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div></div><div>Have you run across this before?</div><div><br></div><div><br></div><div><br></div><div>Andrew E.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 27, 2015 at 1:04 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Fri, Mar 27, 2015 at 10:00 AM, Andrew James Emerick <span dir="ltr"><<a href="mailto:aje2123@columbia.edu" target="_blank">aje2123@columbia.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hello everyone,<div><br></div><div>I just ran into an error in using "data_source" kwarg with the SlicePlot function (error message copied below):</div><div><br></div><div><div>slice = yt.SlicePlot(ds, axis, field, data_source=region)</div><div>File "/home/emerick/.local/lib/python2.7/site-packages/yt-3.1dev-py2.7-linux-x86_64.egg/yt/visualization/plot_window.py", line 1816, in SlicePlot</div><div>    return AxisAlignedSlicePlot(ds, normal, fields, *args, **kwargs)</div><div>TypeError: __init__() got an unexpected keyword argument 'data_source'</div><div><br></div><div>I have no problem doing the above with ProjectionPlot. If anyone knows what could be causing this I'd appreciate the help. Otherwise I can do some digging into the code myself.</div><div><br></div></div></div></blockquote><div><br></div></span><div>Hi Andrew,</div><div><br></div><div>This should work, but might not if you haven't updated yt in a while.  Can you update to the latest development version and try again?</div><div><br></div><div>-Nathan</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span><div dir="ltr"><div><div></div><div><br></div><div><br></div><div>Thanks,</div><div>Andrew E.</div><span><font color="#888888">-- <br><div><div dir="ltr"><div style="font-family:arial;font-size:small">Graduate Student </div><div style="font-family:arial;font-size:small">Columbia University</div><div style="font-family:arial;font-size:small">Department of Astronomy</div></div></div>
</font></span></div></div>
<br></span>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div style="font-family:arial;font-size:small">Graduate Student </div><div style="font-family:arial;font-size:small">Columbia University</div><div style="font-family:arial;font-size:small">Department of Astronomy</div></div></div>
</div>
</div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div></div></div><br></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div style="font-family:arial;font-size:small">Graduate Student </div><div style="font-family:arial;font-size:small">Columbia University</div><div style="font-family:arial;font-size:small">Department of Astronomy</div></div></div>
</div>
</div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div></div></div><br></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div style="font-family:arial;font-size:small">Graduate Student </div><div style="font-family:arial;font-size:small">Columbia University</div><div style="font-family:arial;font-size:small">Department of Astronomy</div></div></div>
</div></div></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div></div></div><br></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div style="font-family:arial;font-size:small">Graduate Student </div><div style="font-family:arial;font-size:small">Columbia University</div><div style="font-family:arial;font-size:small">Department of Astronomy</div></div></div>
</div>