Page MenuHomePhabricator

Install libenchant1c2a in the toollabs-python2-base docker image
Closed, ResolvedPublic

Description

Package: libenchant1c2a
Rationale: Needed to use the pyenchant python library. Trying to install it without the package fails with

Collecting pyenchant (from -r /data/project/piagetbot/sopel/requirements.txt (line 5))
  Downloading pyenchant-1.6.7.tar.gz (63kB)
    100% |################################| 71kB 6.7MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-5zvXdI/pyenchant/setup.py", line 210, in <module>
        import enchant
      File "enchant/__init__.py", line 92, in <module>
        from enchant import _enchant as _e
      File "enchant/_enchant.py", line 145, in <module>
        raise ImportError(msg)
    ImportError: The 'enchant' C library was not found. Please install it via your OS package manager, or use a pre-built binary wheel from PyPI.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-5zvXdI/pyenchant/

Install in: toollabs-python2-base
Will be used by: piagetbot

Event Timeline

tom29739 created this task.Aug 19 2016, 8:33 PM

The interim solution of using a compiled wheel of pyenchant no longer works because the wheel at http://tools-docker-builder-01.eqiad.wmflabs/pyenchant-1.6.7-py2.py3.cp27.cp32.cp33.cp34.cp35.pp27.pp33-none-any.whl has been taken down. Having the enchant C library (libenchant1c2a) installed in the image would remove the need for the wheel to be compiled and hosted.

Change 321013 had a related patch set uploaded (by Yuvipanda):
Add libenchant to python(2)? base images

https://gerrit.wikimedia.org/r/321013

Change 321013 merged by jenkins-bot:
Add libenchant to python(2)? base images

https://gerrit.wikimedia.org/r/321013

scfc closed this task as Resolved.Nov 26 2016, 11:40 PM
scfc assigned this task to yuvipanda.