<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Thanks Erik. This makes sense but there is actually a setup_package.py file in the directory which I used to install specutils with<br><br>python setup_package.py install<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Nothing showed on my terminal which seems a bit suspicious. <br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">-Aycha<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 17, 2014 at 11:18 AM, Erik Bray <span dir="ltr"><<a href="mailto:embray@stsci.edu" target="_blank">embray@stsci.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">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 repo just yesterday.<br>
<br>
</span>It sounds like you're just trying to import the package directly out of the<br>
repository clone without building the package first or installing it.<br>
<br>
It looks like specutils doesn't have installation instructions as such, but I<br>
recommend looking at the installation instructions for Astropy 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>
<span class=""><br>
> On Wed, Sep 17, 2014 at 11:10 AM, Erik Bray <<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>>> 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 packages and I hope someone<br>
>     > here can help with it.<br>
>     > I am trying to use specutils' extinction module but it seems I am 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 '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 was able to 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>
</div></div>>     <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>
<div class="HOEnZb"><div class="h5">><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<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>
><br>
<br>
_______________________________________________<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><br clear="all"><br></div></div>