Closed Ngkaokis closed 3 years ago
solved by adding if __name__ == '__main__'
guard in the main module
Oh yeah, pycantonese (through the underlying pylangacq package) has parallel code, and so it's important to run code under if __name__ == "__main__"
. I'll add a note about this in the documentation -- thank you for filing this ticket!
I can successfully use pycantonese using wsl but crash in windows cmd/powershell
code:
Traceback: