Description
I'm trying to use the ibe
module of astroquery. As a first step, I wanted to go through the list_missions
, list_datasets
, and list_tables
methods to get an idea for what has been implemented. When I call the list_missions
method, though, I get nonsense.
In [1]: from astroquery.ibe import IbeClass
In [2]: Irsa = IbeClass()
In [3]: Irsa.list_missions()
/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/bs4/__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
The code that caused this warning is on line 5 of the file /opt/local/bin/ipython-3.6. To get rid of this warning, change code that looks like this:
BeautifulSoup(YOUR_MARKUP})
to this:
BeautifulSoup(YOUR_MARKUP, "lxml")
markup_type=markup_type))
Out[3]:
['',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'']
I've manually constructed the URL and checked in my browser and using astroquery's BaseQuery._request
and can confirm that my system is recieving HTML of some kind, but there seems to be something going wrong in these lines of the list_missions
method:
astroquery/astroquery/ibe/core.py
Lines 277 to 279 in a1c4276
System information: Macbook Pro, MacOS X 10.14.4, using python 3.6 installed via MacPorts (version 3.6.8), astropy installed using the MacPorts package py36-astropy
(version 3.1), astroquery installed using the MacPorts pip-3.6
(pip version 19.0.3, astroquery version 0.3.9), and the Beautiful Soup is version 4.6.0 (looks like it was installed by pip). I have no idea what version of lxml I'm using nor what it was installed by.