Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows error: KeyError: 'HOME' #13

Closed
liuyunli opened this issue Jun 28, 2018 · 1 comment
Closed

windows error: KeyError: 'HOME' #13

liuyunli opened this issue Jun 28, 2018 · 1 comment
Labels

Comments

@liuyunli
Copy link

PS C:\Users\Administrator.okcat> okcat.exe -y=demo-config.yml demo-log-file.log
Traceback (most recent call last):
File "c:\users\administrator\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\administrator\appdata\local\programs\python\python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Scripts\okcat.exe_main
.py", line 5, in <module

File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\okcat_init_.py", line 21, in

from okcat.adb import Adb
File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\okcat\adb.py", line 20, in
from okcat.confloader import ConfLoader
File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\okcat\confloader.py", line 22, i
n
from okcat.helper import handle_home_case, get_conf_path
File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\okcat\helper.py", line 31, in
HOME_PATH = environ['HOME']
File "c:\users\administrator\appdata\local\programs\python\python37\lib\os.py", line 678, in getitem
raise KeyError(key) from None
KeyError: 'HOME'
PS C:\Users\Administrator.okcat>

error occur while running in windows 7 OS .Please help to check. thanks

@xiaominglui
Copy link

在环境变量中增加一项“HOME”,值为实际用户home路径,重启电脑即可生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants