-
Notifications
You must be signed in to change notification settings - Fork 162
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
AttributeError: 'Logger' object has no attribute 'f' #38
Comments
hello, |
I would like to know about it as well |
This seems to be a Windows related problem. There is no |
Yes, I did sense it to be Windows problem, will check it out by changing the path |
i used 'windir' instead of 'HOME' but still didn't work, if any one interested to try |
change 'HOME' to 'HOMEPATH', then it can run in windows |
the format used here to save the evaluation file is problematic for windows , in addition to changing 'HOME' TO 'HOMEPATH', you should change the name of the evaluation log file. |
Hello, may I ask you that what does " change the name of the evaluation log file." mean??? |
sorry it is the first time I am responding to something in github so maybe I wasn't clear , |
Traceback (most recent call last): Process finished with exit code 1 Excuse me, what is this question |
Traceback (most recent call last):
File "main.py", line 13, in
from evaluation import ranking_and_hits
File "D:\Codes\ConvE\evaluation.py", line 5, in
from spodernet.utils.global_config import Config
File "d:\codes\conve\src\spodernet\spodernet\utils\global_config.py", line 4, in
log = Logger('global_config.py.txt')
File "d:\codes\conve\src\spodernet\spodernet\utils\logger.py", line 60, in init
path = join(get_logger_path(), file_name)
File "d:\codes\conve\src\spodernet\spodernet\utils\logger.py", line 18, in get_logger_path
return join(get_home_path(), '.data', 'log_files')
File "d:\codes\conve\src\spodernet\spodernet\utils\logger.py", line 15, in get_home_path
return os.environ['HOME']
File "C:\Users\shuaizhang\AppData\Local\Programs\Python\Python36\lib\os.py", line 669, in getitem
raise KeyError(key) from None
KeyError: 'HOME'
Exception ignored in: <bound method Logger.del of <spodernet.utils.logger.Logger object at 0x0000029BBC69C080>>
Traceback (most recent call last):
File "d:\codes\conve\src\spodernet\spodernet\utils\logger.py", line 71, in del
self.f.close()
AttributeError: 'Logger' object has no attribute 'f'
The text was updated successfully, but these errors were encountered: