astropy / astroquery

Functions and classes to access online data resources. Maintainers: @keflavich and @bsipocz and @ceb8
http://astroquery.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
689 stars 393 forks source link

Confusing warning on start-up #310

Closed AlexaVillaume closed 10 years ago

AlexaVillaume commented 10 years ago

After "import astroquery" the following error is printed out,

WARNING: ConfigurationDefaultMissingWarning: Requested default configuration file /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astroquery-0.2.dev1666-py2.7.egg/astroquery/astroquery.cfg is not a file. Cannot install default profile. If you are importing from source, this is expected. [astroquery]

There doesn't appear to be anything wrong with the installation it's just confusing and it could be made clearer what this means.

keflavich commented 10 years ago

@astrofrog - could you let me know if the latest affiliated-package-template fixes this?

cdeil commented 10 years ago

@AlexaVillaume I've seen this warning before and I think you should simply ignore it. The configuration system in Astropy is currently being re-worked and I think (but don't know for sure or why) this warning is normal for certain Astropy and affiliated package template combinations.

If you want to track down and get rid of this warning, please execute the following commands and paste the output here:

pwd
python -c 'import astropy; print(astropy.__version__)'
python -c 'import astroquery; print(astroquery.__version__)'

I have these versions and I don't see the warning at the moment, irrespective if I'm in the Astroquery source directory or not:

$ python -c 'import astropy; print(astropy.__version__)'
0.4.dev8097
$ python -c 'import astroquery; print(astroquery.__version__)'
0.2.dev1686
AlexaVillaume commented 10 years ago

@cdeil Okay, it looks like I have older versions than you

python -c 'import astropy; print(astropy.version)' 0.3

python -c 'import astroquery; print(astroquery.version)' WARNING: ConfigurationDefaultMissingWarning: Requested default configuration file /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astroquery-0.2.dev1666-py2.7.egg/astroquery/astroquery.cfg is not a file. Cannot install default profile. If you are importing from source, this is expected. [astroquery] 0.2.dev1666

cdeil commented 10 years ago

@AlexaVillaume Would it be OK if we close this issue? This warning is harmless and will go away once Astropy 0.4 is released (in a few months). (but definitely do re-open the issue if you notice any actual problem with Astroquery configuration)

AlexaVillaume commented 10 years ago

@cdeil Yes, that will be fine. Nothing seems to be actually broken on my end.