简体   繁体   English

APLpy属性错误:“模块”对象没有属性“ FITSfigure”

[英]APLpy attribute error : 'module' object has no attribute 'FITSfigure'

I have installed APLpy (version 0.9.12) & I have python 2.7. 我已经安装了APLpy(0.9.12版)&我安装了python 2.7。

I have a FITS image called "test.fits". 我有一个FITS图片,称为“ test.fits”。

I gave following commands: 我给出了以下命令:

import aplpy
fig = aplpy.FITSfigure("test.fits")

Then I got this message: 然后我得到了这个消息:

AttributeError: 'module' object has no attribute 'FITSfigure'

I got same message when I tried following: 当我尝试以下操作时,我收到了相同的消息:

fig = aplpy.aplpy.FITSfigure("test.fits")

I am new to python & APLpy. 我是python和APLpy的新手。

Your line: 您的电话:

fig = aplpy.FITSfigure("test.fits")

is spelled wrong it has to be: 拼写错误,必须是:

fig = aplpy.FITSFigure("test.fits")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AttributeError: 'FITSFigure' object 没有属性 'set_tick_labels_font' - AttributeError: 'FITSFigure' object has no attribute 'set_tick_labels_font' 属性错误'module'对象没有属性'DateField' - Attribute Error 'module' object has no attribute 'DateField' 属性错误:“模块”对象没有属性“ Oauth” - Attribute Error: 'module' object has no attribute 'Oauth' 属性错误'module'对象没有属性“Field” - Attribute Error 'module' object has no attribute “Field” Python错误,“'module'对象没有属性'lstrip'” - Python error, “ 'module' object has no attribute 'lstrip' ” 错误:模块'对象没有属性'符号链接 - Error: module' object has no attribute 'symlink AttributeError: 'module' 对象没有属性 'error' - AttributeError: 'module' object has no attribute 'error' '模块'对象在django中没有属性'模型'错误 - 'Module' Object Has no Attribute 'models' error in django AttributeError:'模块'对象没有属性'Popen'错误 - AttributeError: 'module' object has no attribute 'Popen' error 'module'对象在pymongo中没有属性'OrderedDict'错误 - 'module' object has no attribute 'OrderedDict' error in pymongo
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM