HKUST-KnowComp/ASER

ModuleNotFoundError while using client/server mode

Closed this issue · 7 comments

Thank you for constructing such a great knowledge graph!
I install ASER successfully and can run the ASER extractor and a conceptualizer step-by-step. However, I met a problem while using client/server mode. When I type "aser-server" in the command line, it yield a ModuleNotFoundError:

Traceback (most recent call last):
File "/u01/had/anaconda3/envs/pytorch/bin/aser-server", line 11, in
load_entry_point('aser==2.0.0', 'console_scripts', 'aser-server')()
File "/u01/had/anaconda3/envs/pytorch/lib/python3.6/site-packages/pkg_resources/init.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/u01/had/anaconda3/envs/pytorch/lib/python3.6/site-packages/pkg_resources/init.py", line 2852, in load_entry_point
return ep.load()
File "/u01/had/anaconda3/envs/pytorch/lib/python3.6/site-packages/pkg_resources/init.py", line 2443, in load
return self.resolve()
File "/u01/had/anaconda3/envs/pytorch/lib/python3.6/site-packages/pkg_resources/init.py", line 2449, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
ModuleNotFoundError: No module named 'aser'

Why it can't load aser module? Did I use it in the wrong way?

Hi, could you please try to deactivate and then activate your conda environment?

Hi, could you please try to deactivate and then activate your conda environment?

Hi, I tried to deactivate and then activate my conda environment, the error is still here.
I also tried to use it without anaconda, but I still got the same error.
Screen Shot 2021-05-09 at 8 07 59 PM

Hi, could you please try to deactivate and then activate your conda environment?

Hi, I tried to deactivate and then activate my conda environment, the error is still here.
I also tried to use it without anaconda, but I still got the same error.
Screen Shot 2021-05-09 at 8 07 59 PM

Could you please try to uninstall "aser" and then install it again?

Uninstall and install again didn't solve the problem. I also tried on a different computer, and met the error again. This is so weird.

The bug is fixed by the recent commit (b00c653).

The bug is fixed by the recent commit (b00c653).

Please use python setup.py develop temporarily. I will fix another bug later (due to the missing resource in site-packages).

Please pull the latest commit (043981a) and try python setup.py install.

I am sorry for this bug.