-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
Description
I am using the Python bindings for Jamspell. Assuming that I have the following Dockerfile:
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:jonathonf/python-3.6
RUN apt-get update
RUN apt install -y build-essential libstdc++6 wget git swig libssl-dev python3.6 python3.6-dev python3-pip python3.6-venv
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN python3.6 -m pip install pip --upgrade
RUN python3.6 -m pip install wheel
COPY . /app
WORKDIR /app
RUN python3.6 -m pip install -r requirements.txt
CMD ["python3.6", "-m", "http.server"]
I get the following error on import jamspell
:
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
The locales are set with the ENV
directives and when checking the locales with locale
on interactive terminal in Docker, LANG
and LC_ALL
are set. Is there anything that I'm missing with my dependencies?
Cheers,
steph