astropy: config folder/file not found

On a Windows 10 computer, when I issue the command from astropy.config import get_config_dir, I get the following error:

C:\ProgramData\Anaconda3\envs\py38\lib\site-packages\astropy\config\configuration.py:557:
ConfigurationMissingWarning: Configuration defaults will be used due to FileNotFoundError:2 on
None warn(ConfigurationMissingWarning(msg))

But, I have set XDG_CONFIG_HOME=C:\Users<USERID>.astropy\config, where USERID is my user ID, and there is a valid configuration file in that folder.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 32 (19 by maintainers)

Most upvoted comments

@pllim Oops, I see you opened #10705 for this. I got my wires crossed since #10705 and #10570 are permutations of each other 😃