Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix errors when build is required during "npm install opencc" #911

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

tomcatliu2016
Copy link

npm install opencc
...
npm ERR! python: can't open file 'C:\souce code\dbmigrate\node_modules\opencc\data\scripts\reverse.py': [Errno 2] No such file or directory
...
The following is my environment:
Node v20.11.1
Npm 10.2.4
Windows 11
Visual C++ 2022
Python 3.11.6

@lhr0909
Copy link

lhr0909 commented Oct 29, 2024

Can confirm this is the issue. I am getting similar errors when I try to rebuild the nodejs package from npm install myself:

/Users/simon/.pyenv/versions/3.10.12/bin/python: can't open file '/Users/simon/Documents/git-repo/botisan-ai/canto-transcriber/node_modules/.pnpm/opencc@1.1.8/node_modules/opencc/data/scripts/merge.py': [Errno 2] No such file or directory
make: *** [Release/TWPhrases.txt] Error 2

This results in incomplete dictionaries, so some of the translation configs are not working in NodeJS.

@BYVoid BYVoid merged commit b79f604 into BYVoid:master Oct 31, 2024
22 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants