yoshida-lab / XenonPy

XenonPy is a Python Software for Materials Informatics
http://xenonpy.readthedocs.io
BSD 3-Clause "New" or "Revised" License
133 stars 57 forks source link

KeyError message during importing xenonpy #165

Closed yutaoki closed 3 years ago

yutaoki commented 4 years ago

When I import xenonpy, the error occurs as follows:

import xenonpy Traceback (most recent call last): File "", line 1, in File "(the directory path for xenonpy)/xenonpy/init.py", line 66, in init() File "(the directory path for xenonpy)/xenonpy/init.py", line 48, in init pack_cfg['userdata'] = user_cfg['userdata'] KeyError: 'userdata'

It looks like a key error for the dictionary-type data but I couldn't find the cause of the error.

I have confirmed that this error occurs at least in version 0.3.7 and 0.4.2. I'm now using Anaconda 3 with python 3.7.3 on Windows 10 and macOS 10.13.6.