<div dir="ltr">Hi Devin,<div><br></div><div>The problem is that doing "from yt.analysis_modules.api import ..." will try to import everything that api first and the particle_trajectories (which is an unrelated module) is simply failing.  You might file a bug for the import error.  Beside that, you can import the AbsorptionSpectrum in the following way to circumvent this issue:</div>
<div>from yt.analysis_modules.absorption_spectrum.api import AbsorptionSpectrum<br></div><div><br></div><div>Britton</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 27, 2014 at 3:22 PM, Devin Silvia <span dir="ltr"><<a href="mailto:devin.silvia@gmail.com" target="_blank">devin.silvia@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andrew,<br>
<br>
The code is failing on the import call for AbsorptionSpectrum.  So I'm<br>
not at the point yet of trying to run the code.  I was under the<br>
impression that the line-of-sight velocities would come from the gas<br>
velocity anyway, of course I could be wrong there.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Devin<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, Jan 27, 2014 at 9:38 AM, Andrew James Emerick<br>
<<a href="mailto:aje2123@columbia.edu">aje2123@columbia.edu</a>> wrote:<br>
> Are you generating the spectrum with line of sight velocities turned on? If<br>
> so try it without and see if the same error occurs. I suspect the particle<br>
> trajectories are used for this, but I do not know for sure.<br>
><br>
><br>
><br>
> Andrew E<br>
><br>
><br>
> On Monday, January 27, 2014, Devin Silvia <<a href="mailto:devin.silvia@gmail.com">devin.silvia@gmail.com</a>> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> I recently used conda to install yt, but when I try to import<br>
>> AbsorptionSpectrum, I get this error:<br>
>><br>
>> <a href="http://paste.yt-project.org/show/4246/" target="_blank">http://paste.yt-project.org/show/4246/</a><br>
>><br>
>> I'm not familiar with particle_trajectories, but is this something<br>
>> that is actually needed by AbsorptionSpectrum?  If not, should it even<br>
>> being trying to import that?  Any thoughts/help are, as always,<br>
>> appreciated.<br>
>><br>
>> Cheers,<br>
>> Devin<br>
>><br>
>> --<br>
>> Devin W. Silvia<br>
>> Research Associate<br>
>> Department of Physics and Astronomy<br>
>> Michigan State University<br>
>> <a href="http://www.devinsilvia.com" target="_blank">www.devinsilvia.com</a><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>
><br>
><br>
> --<br>
> Graduate Student<br>
> Columbia University<br>
> Department of Astronomy<br>
><br>
><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>
<br>
<br>
<br>
--<br>
Devin W. Silvia<br>
Research Associate<br>
Department of Physics and Astronomy<br>
Michigan State University<br>
<a href="http://www.devinsilvia.com" target="_blank">www.devinsilvia.com</a><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>
</div></div></blockquote></div><br></div>