Skip to content

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/[email protected]/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
21 of 24 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