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

Dockerizing JamSpell #22

Closed
antonshilov opened this issue Apr 18, 2018 · 2 comments
Closed

Dockerizing JamSpell #22

antonshilov opened this issue Apr 18, 2018 · 2 comments

Comments

@antonshilov
Copy link

antonshilov commented Apr 18, 2018

Hello! I am trying to put a JamSpell into a docker but I have faced the following problem.
My Dockerfile is

FROM python:3.6.5-stretch
RUN apt-get update && \
    apt-get -y install swig3.0
RUN pip3 install jamspell

And during the installation, I can see the next log

writing manifest file 'jamspell.egg-info/SOURCES.txt'
  installing to build/bdist.linux-x86_64/wheel
  running install
  Checking .pth file support in build/bdist.linux-x86_64/wheel/
  /usr/local/bin/python -E -c pass
  TEST FAILED: build/bdist.linux-x86_64/wheel/ does NOT support .pth files
  error: bad install directory or PYTHONPATH
  
  You are attempting to install a package to a directory that is not
  on PYTHONPATH and which Python does not read ".pth" files from.  The
  installation directory you specified (via --install-dir, --prefix, or
  the distutils default setting) was:
  
      build/bdist.linux-x86_64/wheel/
  
  and your PYTHONPATH environment variable currently contains:
  
      ''
  
  Here are some of your options for correcting the problem:
  
  * You can choose a different installation directory, i.e., one that is
    on PYTHONPATH or supports .pth files
  
  * You can add the installation directory to the PYTHONPATH environment
    variable.  (It must then also be on PYTHONPATH whenever you run
    Python and want to use the package(s) you are installing.)
  
  * You can set up the installation directory to support ".pth" files by
    using one of the approaches described here:
  
    https://setuptools.readthedocs.io/en/latest/easy_install.html#custom-installation-locations
  
  
  Please make the appropriate changes for your system and try again.
  
  ----------------------------------------
  Failed building wheel for jamspell
  Running setup.py clean for jamspell
Failed to build jamspell
Installing collected packages: jamspell
  Running setup.py install for jamspell: started
    Running setup.py install for jamspell: finished with status 'done'
  Could not find .egg-info directory in install record for jamspell from https://files.pythonhosted.org/packages/30/20/37b376f21547222b5eb1ee08cc99b42dfa84d31166bb99ae195d43372034/jamspell-0.0.10.tar.gz#sha256=204f20c96a0c69a61c091283630409ef1664403a0475934db0432a66681978ce
Successfully installed jamspell

Do you know what can be the reason of such an error?

@antonshilov
Copy link
Author

antonshilov commented Apr 19, 2018

And also I am getting

terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Aborted (core dumped)

When trying to import jamspell inside that container after the installation.

@bakwc
Copy link
Owner

bakwc commented Apr 19, 2018

Please look at #17, there is a workaround there

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