Skip to content

Installing error when using python:alpine as the base image #77

@rabbit19981023

Description

@rabbit19981023

Hello,

I'm trying to bundle my app into a docker image.

When using python:alpine as the base image, it causes errors like this (while python:slim doesn't cause this error):

#0 22.01   Downloading fugashi-1.2.1.tar.gz (337 kB)
#0 22.08      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 338.0/338.0 kB 4.7 MB/s eta 0:00:00
#0 22.11   Preparing metadata (setup.py): started
#0 22.86   Preparing metadata (setup.py): finished with status 'error'
#0 22.87   error: subprocess-exited-with-error
#0 22.87
#0 22.87   × python setup.py egg_info did not run successfully.
#0 22.87   │ exit code: 1
#0 22.87   ╰─> [9 lines of output]
#0 22.87       Traceback (most recent call last):
#0 22.87         File "<string>", line 2, in <module>
#0 22.87         File "<pip-setuptools-caller>", line 34, in <module>
#0 22.87         File "/tmp/pip-install-wxx7nb2x/fugashi_e3388a1cdbb74184951bb5024087448f/setup.py", line 15, in <module>
#0 22.87           output, data_files = check_libmecab()
#0 22.87                                ^^^^^^^^^^^^^^^^
#0 22.87         File "/tmp/pip-install-wxx7nb2x/fugashi_e3388a1cdbb74184951bb5024087448f/fugashi_util.py", line 58, in check_libmecab
#0 22.87           raise RuntimeError("Could not configure working env. Have you installed MeCab?")
#0 22.87       RuntimeError: Could not configure working env. Have you installed MeCab?
#0 22.87       [end of output]
#0 22.87
#0 22.87   note: This error originates from a subprocess, and is likely not a problem with pip.
#0 22.87 error: metadata-generation-failed
#0 22.87
#0 22.87 × Encountered error while generating package metadata.
#0 22.87 ╰─> See above for output.
#0 22.87
#0 22.87 note: This is an issue with the package mentioned above, not pip.
#0 22.87 hint: See above for details.

I'm not sure if it's just that mecab doesn't support the platform, or there's something missing in check_libmecab().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions