-
Notifications
You must be signed in to change notification settings - Fork 188
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
make tesseract-langdata error #387
Comments
I'm afraid that this part of the Makefile never worked in the Windows command line. Either try to fetch the missing files manually (without make – you have to figure out how to do that for yourself). Or try to fix the problem with the Makefile. Or take the easy way and run the training in WSL. |
It works for me on Windows: > git clone --depth=1 https://github.com/tesseract-ocr/tesstrain
Cloning into 'tesstrain'...
remote: Enumerating objects: 34, done.
remote: Counting objects: 100% (34/34), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 34 (delta 3), reused 12 (delta 0), pack-reused 0
Receiving objects: 100% (34/34), 5.29 MiB | 220.00 KiB/s, done.
Resolving deltas: 100% (3/3), done.
>cd tesstrain
>make tesseract-langdata
You are using make version: 4.4.1
wget -O data/langdata/radical-stroke.txt 'https://github.com/tesseract-ocr/langdata_lstm/raw/main/radical-stroke.txt'
--2024-04-25 09:12:49-- https://github.com/tesseract-ocr/langdata_lstm/raw/main/radical-stroke.txt
Connecting to 10.204.10.7:3128... connected.
Proxy request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/tesseract-ocr/langdata_lstm/main/radical-stroke.txt [following]
--2024-04-25 09:12:50-- https://raw.githubusercontent.com/tesseract-ocr/langdata_lstm/main/radical-stroke.txt
Connecting to 10.204.10.7:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 330874 (323K) [text/plain]
Saving to: 'data/langdata/radical-stroke.txt'
data/langdata/radical-stroke. 100%[=================================================>] 323,12K 1,54MB/s in 0,2s
2024-04-25 09:12:50 (1,54 MB/s) - 'data/langdata/radical-stroke.txt' saved [330874/330874]
wget -O data/langdata/Arabic.unicharset 'https://github.com/tesseract-ocr/langdata_lstm/raw/main/Arabic.unicharset'
--2024-04-25 09:12:50-- https://github.com/tesseract-ocr/langdata_lstm/raw/main/Arabic.unicharset
Connecting to 10.204.10.7:3128... connected.
Proxy request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/tesseract-ocr/langdata_lstm/main/Arabic.unicharset [following]
--2024-04-25 09:12:51-- https://raw.githubusercontent.com/tesseract-ocr/langdata_lstm/main/Arabic.unicharset
Connecting to 10.204.10.7:3128... connected.
Proxy request sent, awaiting response... 200 OK
... |
I can reproduce the error. It is reported by a wrong @zdenop, are you using the |
From git: >where mkdir
c:\Program Files\Git\usr\bin\mkdir.exe
>echo %PATH%
C:\Program Files\Git\cmd;C:\Python\Python311\Scripts\;C:\Python\Python311\;c:\Program Files\Git\usr\bin;c:\Program Files\Git\mingw64\bin;... I put git dirs at the beginning of Readme covers this:
|
Thank you very much for the tip!!! |
(.venv) PS D:\ocr\tesstrain> make tesseract-langdata
You are using make version: 4.4.1
wget -O data/langdata/radical-stroke.txt 'https://github.com/tesseract-ocr/langdata_lstm/raw/main/radical-stroke.txt'
--2024-04-25 12:53:22-- https://github.com/tesseract-ocr/langdata_lstm/raw/main/radical-stroke.txt
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/tesseract-ocr/langdata_lstm/main/radical-stroke.txt [following]
--2024-04-25 12:53:23-- https://raw.githubusercontent.com/tesseract-ocr/langdata_lstm/main/radical-stroke.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 330874 (323K) [text/plain]
Saving to: 'data/langdata/radical-stroke.txt'
data/langdata/radical-stroke.txt 100%[===============================================================================>] 323,12K 1,63MB/s in 0,2s
2024-04-25 12:53:23 (1,63 MB/s) - 'data/langdata/radical-stroke.txt' saved [330874/330874]
......
(.venv) PS D:\ocr\tesstrain> |
Can we close this issue? |
I'm trying to create language data as the instructions say, but I can't do it
Is there a way to solve this problem?
Thank you
(.venv) PS D:\ocr\tesstrain> make tesseract-langdata
You are using make version: 4.4.1
There is an error in the command syntax.
make: *** [Makefile:424: data/langdata/radical-stroke.txt] Error 1
The text was updated successfully, but these errors were encountered: