Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/284.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Astroquery:AttributeError(“字节”)对象没有属性(“编码”)_Python_Astropy - Fatal编程技术网

Python Astroquery:AttributeError(“字节”)对象没有属性(“编码”)

Python Astroquery:AttributeError(“字节”)对象没有属性(“编码”),python,astropy,Python,Astropy,我想运行的NED查询 这是由纪录片中的例子给出的 我得到了以下问题: TableParseError: Failed to parse NED result! The raw response can be found in self.response, and the error in self.table_parse_error. 在self.table_parse_error中,我发现: AttributeError("'bytes' object has no attribute '

我想运行的NED查询

这是由纪录片中的例子给出的

我得到了以下问题:

TableParseError: Failed to parse NED result! The raw response can be found in
self.response, and the error in self.table_parse_error.
在self.table_parse_error中,我发现:

 AttributeError("'bytes' object has no attribute 'encode'")
我不知道出了什么问题

以下是我的版本:

Python  3.4.1 (default, May 19 2014, 17:23:49) [GCC 4.9.0 20140507 (prerelease)]
SciPy   0.14.0
Cython  0.20.1
OS      posix [linux]
Numpy   1.8.1
IPython 2.1.0

这是astroquery上提出的一个问题,是一个已确认的错误:

应该很快就修好

Python  3.4.1 (default, May 19 2014, 17:23:49) [GCC 4.9.0 20140507 (prerelease)]
SciPy   0.14.0
Cython  0.20.1
OS      posix [linux]
Numpy   1.8.1
IPython 2.1.0