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

error: subprocess-exited-with-error when install manga-ocr #87

Open
ohmandpp opened this issue Dec 31, 2024 · 1 comment
Open

error: subprocess-exited-with-error when install manga-ocr #87

ohmandpp opened this issue Dec 31, 2024 · 1 comment

Comments

@ohmandpp
Copy link

Collecting manga-ocr
Using cached manga_ocr-0.1.13-py3-none-any.whl.metadata (20 kB)
Collecting fire (from manga-ocr)
Using cached fire-0.7.0.tar.gz (87 kB)
Preparing metadata (setup.py) ... done
Collecting fugashi (from manga-ocr)
Using cached fugashi-1.4.0-cp313-cp313-win_amd64.whl.metadata (7.1 kB)
Collecting jaconv (from manga-ocr)
Using cached jaconv-0.4.0.tar.gz (17 kB)
Preparing metadata (setup.py) ... done
Collecting loguru (from manga-ocr)
Using cached loguru-0.7.3-py3-none-any.whl.metadata (22 kB)
Collecting numpy<2 (from manga-ocr)
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
+ C:\Users\Ph_ohm\AppData\Local\Programs\Python\Python313\python.exe C:\Users\Ph_ohm\AppData\Local\Temp\pip-install-jnormuif\numpy_3494af56eb564a999dd8a06ddcfac309\vendored-meson\meson\meson.py setup C:\Users\Ph_ohm\AppData\Local\Temp\pip-install-jnormuif\numpy_3494af56eb564a999dd8a06ddcfac309 C:\Users\Ph_ohm\AppData\Local\Temp\pip-install-jnormuif\numpy_3494af56eb564a999dd8a06ddcfac309.mesonpy-xfnk7f5d -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\Ph_ohm\AppData\Local\Temp\pip-install-jnormuif\numpy_3494af56eb564a999dd8a06ddcfac309.mesonpy-xfnk7f5d\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\Ph_ohm\AppData\Local\Temp\pip-install-jnormuif\numpy_3494af56eb564a999dd8a06ddcfac309
Build dir: C:\Users\Ph_ohm\AppData\Local\Temp\pip-install-jnormuif\numpy_3494af56eb564a999dd8a06ddcfac309.mesonpy-xfnk7f5d
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

  ..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
  The following exception(s) were encountered:
  Running `icl ""` gave "[WinError 2] The system cannot find the file specified"
  Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
  Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
  Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
  Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
  Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
  Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"

  A full log can be found at C:\Users\Ph_ohm\AppData\Local\Temp\pip-install-jnormuif\numpy_3494af56eb564a999dd8a06ddcfac309\.mesonpy-xfnk7f5d\meson-logs\meson-log.txt
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@Mar2ck
Copy link
Contributor

Mar2ck commented Jan 2, 2025

Numpy 1.X doesn't have pre-built wheels for Python 3.13. Manga-ocr v0.1.14 just released which bumps the Numpy version up to one that supports Py 3.13 so if you try installing again it should work.

(Although I'm not sure if PyTorch and such support 3.13 properly yet, I'd personally recommend 3.11 to be safe)

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

No branches or pull requests

2 participants