<div dir="ltr">Hi Aycha,<div><br></div><div>Erik B. has already given a relatively good instruction how to install specutils. As Tom R. said there has not been an official release of specutils, however it is ready for science (and is also being used for that ;-) ). Obviously it depends on what the science you want to do. Kyle et al. has written the extinction part and documentation and it is mostly ready for consumption (I used it a couple of times). </div><div><br></div><div>It is pretty clearly laid out in the document that Erik sent (<a href="http://docs.astropy.org/en/stable/install.html#obtaining-the-source-packages">http://docs.astropy.org/en/stable/install.html#obtaining-the-source-packages</a>)  of what to do -- including the need to install cython. </div><div><br></div><div>Let us know how it goes,</div><div>    Wolfgang</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 18, 2014 at 1:39 PM, Thomas Robitaille <span dir="ltr"><<a href="mailto:thomas.robitaille@gmail.com" target="_blank">thomas.robitaille@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 Aycha,<br>
<br>
Just to echo what Erik Bray said, there hasn't actually been a specutils<br>
release yet, so in addition to meaning that it is a bit harder to<br>
install, the package may not be ready for 'science' use yet (and the API<br>
may not be stable).<br>
<br>
Maybe Wolfgang or someone else involved in specutils can give an update<br>
on the current status?<br>
<br>
Cheers,<br>
Tom<br>
<span class=""><br>
Aycha Tammour wrote:<br>
> Erik,<br>
><br>
> pip install specutils was not able to install the package (No<br>
> distributions at all found for specutils) even when I tried<br>
> --allow-unvirified and --allow-external.<br>
><br>
> Although pip search specutils seemed to find the package.<br>
><br>
> I tried installing from source on a MAC and a unix machine and got error<br>
> messages about cythoning some file (code.py, I think).<br>
><br>
> Best,<br>
> Aycha<br>
><br>
> On Wed, Sep 17, 2014 at 4:40 PM, Erik Bray <<a href="mailto:embray@stsci.edu">embray@stsci.edu</a><br>
</span><span class="">> <mailto:<a href="mailto:embray@stsci.edu">embray@stsci.edu</a>>> wrote:<br>
><br>
>     On 09/17/2014 11:46 AM, Aycha Tammour wrote:<br>
>     > Thanks Erik. This makes sense but there is actually a<br>
>     setup_package.py file in<br>
>     > the directory which I used to install specutils with<br>
>     ><br>
>     > python setup_package.py install<br>
>     ><br>
>     > Nothing showed on my terminal which seems a bit suspicious.<br>
><br>
>     setup_package.py is not the file you are looking for.<br>
><br>
>     Please follow the instructions at<br>
><br>
>     <a href="http://docs.astropy.org/en/stable/install.html#obtaining-the-source-packages" target="_blank">http://docs.astropy.org/en/stable/install.html#obtaining-the-source-packages</a><br>
><br>
>     if you want to install from source, or better still just do `pip<br>
>     install specutils`.<br>
><br>
>     Erik<br>
><br>
>     > On Wed, Sep 17, 2014 at 11:18 AM, Erik Bray <<a href="mailto:embray@stsci.edu">embray@stsci.edu</a><br>
>     <mailto:<a href="mailto:embray@stsci.edu">embray@stsci.edu</a>><br>
</span><div><div class="h5">>     > <mailto:<a href="mailto:embray@stsci.edu">embray@stsci.edu</a> <mailto:<a href="mailto:embray@stsci.edu">embray@stsci.edu</a>>>> wrote:<br>
>     ><br>
>     >     On 09/17/2014 11:15 AM, Aycha Tammour wrote:<br>
>     >     > Hi Erik,<br>
>     >     ><br>
>     >     > specutils.__version__<br>
>     >     > ''<br>
>     >     ><br>
>     >     > specutils.__file__<br>
>     >     > 'specutils/__init__.py'<br>
>     >     ><br>
>     >     > The package I am using is the one I grabbed from the github<br>
>     repo just yesterday.<br>
>     ><br>
>     >     It sounds like you're just trying to import the package<br>
>     directly out of the<br>
>     >     repository clone without building the package first or<br>
>     installing it.<br>
>     ><br>
>     >     It looks like specutils doesn't have installation instructions<br>
>     as such, but I<br>
>     >     recommend looking at the installation instructions for Astropy<br>
>     as it applies all<br>
>     >     the same:<br>
>     ><br>
>     >     <a href="http://docs.astropy.org/en/stable/install.html" target="_blank">http://docs.astropy.org/en/stable/install.html</a><br>
>     ><br>
>     >     Erik<br>
>     ><br>
>     >     > On Wed, Sep 17, 2014 at 11:10 AM, Erik Bray <<a href="mailto:embray@stsci.edu">embray@stsci.edu</a><br>
>     <mailto:<a href="mailto:embray@stsci.edu">embray@stsci.edu</a>> <mailto:<a href="mailto:embray@stsci.edu">embray@stsci.edu</a><br>
>     <mailto:<a href="mailto:embray@stsci.edu">embray@stsci.edu</a>>><br>
>     >      > <mailto:<a href="mailto:embray@stsci.edu">embray@stsci.edu</a> <mailto:<a href="mailto:embray@stsci.edu">embray@stsci.edu</a>><br>
>     <mailto:<a href="mailto:embray@stsci.edu">embray@stsci.edu</a> <mailto:<a href="mailto:embray@stsci.edu">embray@stsci.edu</a>>>>> wrote:<br>
>     >      ><br>
>     >      >     On 09/17/2014 10:12 AM, Aycha Tammour wrote:<br>
>     >      >     > Hi,<br>
>     >      >     ><br>
>     >      >     > I have a question about one of Astropy's affiliated<br>
>     packages and I<br>
>     >     hope someone<br>
>     >      >     > here can help with it.<br>
>     >      >     > I am trying to use specutils' extinction module but<br>
>     it seems I am<br>
>     >     unable to<br>
>     >      >     > import it.<br>
>     >      >     ><br>
>     >      >     > I tried:<br>
>     >      >     > import specutils<br>
>     >      >     > specutils.extinction.extinction_ccm89(wave, r_v=3.1)<br>
>     >      >     > And got:<br>
>     >      >     > AttributeError: 'module' object has no attribute<br>
>     'extinction'<br>
>     >      >     ><br>
>     >      >     > When I tried:<br>
>     >      >     > from specutils import extinction<br>
>     >      >     > I still got<br>
>     >      >     > ImportError: cannot import name extinction<br>
>     >      >     ><br>
>     >      >     > Am I missing something here? I should mention that I<br>
>     was able to<br>
>     >     use some of the<br>
>     >      >     > functionality in spectrum1D.<br>
>     >      ><br>
>     >      >     When you import specutils what do<br>
>     >      ><br>
>     >      >       >>> specutils.__version__<br>
>     >      ><br>
>     >      >     and<br>
>     >      ><br>
>     >      >       >>> specutils.__file__<br>
>     >      ><br>
>     >      >     show?<br>
>     >      ><br>
>     >      >     _______________________________________________<br>
>     >      >     AstroPy mailing list<br>
>     >      > <a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a> <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>><br>
>     <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a> <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>>><br>
>     <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a> <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>><br>
</div></div>>     >     <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a> <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>>>><br>
<span class="im HOEnZb">>     >      > <a href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
>     >      ><br>
>     >      ><br>
>     >      ><br>
>     >      ><br>
>     >      ><br>
>     >      ><br>
>     >      > _______________________________________________<br>
>     >      > AstroPy mailing list<br>
>     >      > <a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a> <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>><br>
>     <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a> <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>>><br>
>     >      > <a href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
>     >      ><br>
>     ><br>
>     >     _______________________________________________<br>
>     >     AstroPy mailing list<br>
>     >     <a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a> <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>><br>
>     <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a> <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>>><br>
>     >     <a href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
>     > _______________________________________________<br>
>     > AstroPy mailing list<br>
>     > <a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a> <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>><br>
>     > <a href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
>     ><br>
><br>
>     _______________________________________________<br>
>     AstroPy mailing list<br>
>     <a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a> <mailto:<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>><br>
>     <a href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
><br>
><br>
><br>
><br>
</span><span class="im HOEnZb">> --<br>
> Aycha Tammour<br>
> Astronomy PhD Candidate<br>
> University of Western Ontario<br>
><br>
</span><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> AstroPy mailing list<br>
> <a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
</div></div></blockquote></div><br></div>