Closed ddd146 closed 1 year ago
Which project raise this issue ? pls provide more detail information about it
When proton prepares the environment, setup.sh 中python -c "from embeddings import GloveEmbedding; emb = GloveEmbedding('common_crawl_48', d_emb=300)" Traceback (most recent call last): File "", line 1, in File "D:\anaconda3\lib\site-packages\embeddings\glove.py", line 43, in init self.db = self.initialize_db(self.path(path.join('glove', '{}:{}.db'.format(name, d_emb)))) File "D:\anaconda3\lib\site-packages\embeddings\embedding.py", line 22, in path root = environ.get('EMBEDDINGS_ROOT', path.join(environ['HOME'], '.embeddings')) File "D:\anaconda3\lib\os.py", line 675, in getitem raise KeyError(key) from None KeyError: 'HOME'
It seems that this is not a bug in the codebase, but caused by the Windows platform. Could you try it the linux environment ?
Long time no reply, close the issue
Traceback (most recent call last): File "", line 1, in
File "D:\anaconda3\lib\site-packages\embeddings\glove.py", line 43, in init
self.db = self.initialize_db(self.path(path.join('glove', '{}:{}.db'.format(name, d_emb))))
File "D:\anaconda3\lib\site-packages\embeddings\embedding.py", line 22, in path
root = environ.get('EMBEDDINGS_ROOT', path.join(environ['HOME'], '.embeddings'))
File "D:\anaconda3\lib\os.py", line 675, in getitem
raise KeyError(key) from None
KeyError: 'HOME'