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

[Bug] Error when building docker image. sudachipy dependency error #187

Closed
rmajasol opened this issue Dec 3, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@rmajasol
Copy link

rmajasol commented Dec 3, 2024

Describe the bug

It seems a problem with sudachipy python package

To Reproduce

When doing this command, as said in docs to build docker image:

docker build -t tts .

Expected behavior

No response

Logs

23.52   Building wheel for sudachipy (pyproject.toml): started
23.72   Building wheel for sudachipy (pyproject.toml): finished with status 'error'
23.72   error: subprocess-exited-with-error
23.72
23.72   × Building wheel for sudachipy (pyproject.toml) did not run successfully.
23.72   │ exit code: 1
23.72   ╰─> [34 lines of output]
23.72       running bdist_wheel
23.72       running build
23.72       running build_py
23.72       creating build/lib.linux-aarch64-cpython-310/sudachipy
23.72       copying py_src/sudachipy/command_line.py -> build/lib.linux-aarch64-cpython-310/sudachipy
23.72       copying py_src/sudachipy/errors.py -> build/lib.linux-aarch64-cpython-310/sudachipy
23.72       copying py_src/sudachipy/config.py -> build/lib.linux-aarch64-cpython-310/sudachipy
23.72       copying py_src/sudachipy/__init__.py -> build/lib.linux-aarch64-cpython-310/sudachipy
23.72       creating build/lib.linux-aarch64-cpython-310/sudachipy/dictionary
23.72       copying py_src/sudachipy/dictionary/__init__.py -> build/lib.linux-aarch64-cpython-310/sudachipy/dictionary
23.72       creating build/lib.linux-aarch64-cpython-310/sudachipy/tokenizer
23.72       copying py_src/sudachipy/tokenizer/__init__.py -> build/lib.linux-aarch64-cpython-310/sudachipy/tokenizer
23.72       creating build/lib.linux-aarch64-cpython-310/sudachipy/morphemelist
23.72       copying py_src/sudachipy/morphemelist/__init__.py -> build/lib.linux-aarch64-cpython-310/sudachipy/morphemelist
23.72       creating build/lib.linux-aarch64-cpython-310/sudachipy/morpheme
23.72       copying py_src/sudachipy/morpheme/__init__.py -> build/lib.linux-aarch64-cpython-310/sudachipy/morpheme
23.72       copying py_src/sudachipy/sudachipy.pyi -> build/lib.linux-aarch64-cpython-310/sudachipy
23.72       creating build/lib.linux-aarch64-cpython-310/sudachipy/resources
23.72       copying py_src/sudachipy/resources/sudachi.json -> build/lib.linux-aarch64-cpython-310/sudachipy/resources
23.72       copying py_src/sudachipy/resources/unk.def -> build/lib.linux-aarch64-cpython-310/sudachipy/resources
23.72       copying py_src/sudachipy/resources/char.def -> build/lib.linux-aarch64-cpython-310/sudachipy/resources
23.72       copying py_src/sudachipy/resources/rewrite.def -> build/lib.linux-aarch64-cpython-310/sudachipy/resources
23.72       running build_ext
23.72       running build_rust
23.72       error: failed to parse manifest at `/tmp/pip-install-qo5shv3i/sudachipy_2eddad6e95a24909985352fa8795e97a/Cargo.toml`
23.72
23.72       Caused by:
23.72         error inheriting `edition` from workspace root manifest's `workspace.package.edition`
23.72
23.72       Caused by:
23.72         failed to find a workspace root
23.72       error: `cargo metadata --manifest-path Cargo.toml --format-version 1` failed with code 101
23.72       -- Output captured from stdout:
23.72
23.72       [end of output]
23.72
23.72   note: This error originates from a subprocess, and is likely not a problem with pip.
23.72   ERROR: Failed building wheel for sudachipy
23.72 Successfully built cymem murmurhash
23.72 Failed to build sudachipy
23.97 ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (sudachipy)
------
Dockerfile:17
--------------------
  15 |
  16 |     RUN pip3 install -U pip setuptools wheel
  17 | >>> RUN pip3 install -U "spacy[ja]<3.8"
  18 |     RUN pip3 install llvmlite --ignore-installed
  19 |
--------------------
ERROR: failed to solve: process "/bin/sh -c pip3 install -U \"spacy[ja]<3.8\"" did not complete successfully: exit code: 1

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/1l0gordcvia3pspu0tu89s57f

Environment

Docker version: 27.3.1, build ce12230
Host OS: macOS Sequoia 15.1.1 (24B91)

Additional context

No response

@rmajasol rmajasol added the bug Something isn't working label Dec 3, 2024
@eginhard
Copy link
Member

eginhard commented Dec 3, 2024

You should report issues with sudachipy in their repo. WorksApplications/sudachi.rs#220 suggests that installing 0.6.8 might work? I don't know if @hongkongkiwi has the same issue (they added the Docker on Mac setup). I don't have a Mac so can't test this and won't look into it further myself.

@eginhard eginhard closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants