yzhangcs / parser

:rocket: State-of-the-art parsers for natural language.
https://parser.yzhang.site/
MIT License
829 stars 141 forks source link

Duplicate Name "parser" #9

Closed shellywhen closed 5 years ago

shellywhen commented 5 years ago

I get an error when running run.py

ModuleNotFoundError: No module named 'parser.cmds'; 'parser' is not a package

I suppose the reason is that one module is named "parser" while one file is named "parser".

yzhangcs commented 5 years ago

This might be the case, but I still haven't encountered this problem. I'll check it later. If you solve it, can you tell me where is the problem?

shellywhen commented 5 years ago

Yes. I changed the module name and modified the relevant codes slightly and it works now. Currently, I am facing another problem with encoding...

yzhangcs commented 5 years ago

Did you run it on windows? Just now I re-clone the repo and run the code on both the Ubuntu server and windows 10 WSL, and there was still no problems. Since there are no computation resources on my windows machine, I didn't test the code on windows carefully.

shellywhen commented 5 years ago

Yeah I am running on a win10 machine with python 3.7.3

yzhangcs commented 5 years ago

OK, I will fix this bug later, thanks.