sdss / marvin

Data access and visualization for MaNGA. http://sdss-marvin.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
55 stars 32 forks source link

MarvinUserWarning: No local database found. Cannot perform queries. #599

Open qiqiw960223 opened 5 years ago

qiqiw960223 commented 5 years ago

from marvin.tools.query import doQuery q, r = doQuery(search_filter='nsa.sersic_logmass >= 10 and nsa.sersic_logmass <= 11', limit=3)

Hi I was trying to perform a query using the syntax above, and I keep getting this error message:

/anaconda3/lib/python3.6/site-packages/marvin/tools/query.py:236: MarvinUserWarning: No local database found. Cannot perform queries. warnings.warn('No local database found. Cannot perform queries.', MarvinUserWarning)

I have searched the issues page and saw in #595 the similar error as mine, which was solved more than a week ago as SSL certificate issue. I ran the two lines as above just now and am still getting this error...

albireox commented 5 years ago

Hi @qiqiw960223,

Can you send the full traceback message you are getting? In that message, do you see something about

MarvinError: No URL Map found. Cannot make remote query calls!.

More importantly, does the query work? Can you check the value of r after running the lines? I think the query may be working and you are not getting an error, just a warning. I just tried it in my computer and I get the warnings.warn('No local database found. Cannot perform queries.', MarvinUserWarning) if I disable my local DB but the query still works remotely. If that's the case then the problem is that we are issuing that warning which is quite confusing, and we should remove or edit it.