[AstroPy] missing modules in ipython notebook

JJ Kavelaars jjk at uvic.ca
Mon Aug 11 14:35:18 EDT 2014


try:

import astropy.io

help(astropy.io)

The sub-packages are not loaded when you do import astropy

JJ

On Aug 11, 2014, at 11:23 AM, Luke Zoltan Kelley <lzkelley at gmail.com> wrote:

> I'm using astropy 0.3.2 in an ipython notebook; my ipython is from canopy, version 2.1.0.  I can't access certain modules: astropy.io and astropy.table seem to be completely missing.  They don't appear in tab-completion, and if I try to access them I get something like:
> 
> In [8]: astropy.io
> ERROR:astropy:AttributeError: 'module' object has no attribute 'io'
> ERROR : AttributeError: 'module' object has no attribute 'io' [IPython.core.interactiveshell]
> ---------------------------------------------------------------------------
> AttributeError
>                            Traceback (most recent call last)
> <ipython-input-8-d9b3d4bf20e3> in <module>()
> ----> 1 astropy.io
> AttributeError : 'module' object has no attribute 'io'
> 
> 
> Using the same version of astropy in a normal ipython session and the modules work fine.
> 
> Has anyone experienced any similar problems?
> 
> Thanks!
> Luke
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy




More information about the AstroPy mailing list