Closed AlexaVillaume closed 10 years ago
@astrofrog - could you let me know if the latest affiliated-package-template fixes this?
@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
@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
@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)
@cdeil Yes, that will be fine. Nothing seems to be actually broken on my end.
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.