AlibabaResearch / DAMO-ConvAI

DAMO-ConvAI: The official repository which contains the codebase for Alibaba DAMO Conversational AI.
MIT License
1.15k stars 185 forks source link

setup.sh 中python -c "from embeddings import GloveEmbedding; emb = GloveEmbedding('common_crawl_48', d_emb=300)"bug #12

Closed ddd146 closed 1 year ago

ddd146 commented 1 year ago

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'

huybery commented 1 year ago

Which project raise this issue ? pls provide more detail information about it

ddd146 commented 1 year ago

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'

huybery commented 1 year ago

It seems that this is not a bug in the codebase, but caused by the Windows platform. Could you try it the linux environment ?

huybery commented 1 year ago

Long time no reply, close the issue