Skip to content

Conversation

@vpoulailleau
Copy link
Contributor

Une traduction qui clôt rien, j’avais pas réservé.

Par contre, une traduction réalisé sous Windows avec padpo, powrap, potodo et consort. 🎉

Cf #1062

@JulienPalard
Copy link
Member

Dans la série installer les outils sur Windows, pourrais-tu tester cette branche : https://github.com/JulienPalard/pospell/tree/hunspell

Elle tend a rendre l'installation de pospell plus simple sur windows (pas de dépendances à hunspell).

Mais elle n'est pas encore capable de télécharger toute seule un dictionnaire, et elle hardcode le path, donc j'imagine qu'elle ne fonctionne pas sur Windows :(

@vpoulailleau
Copy link
Contributor Author

vpoulailleau commented Dec 12, 2019

Dans la série installer les outils sur Windows, pourrais-tu tester cette branche : JulienPalard/pospell@hunspell

@JulienPalard :

(venv_pospell) vincent@DESKTOP-URSSREA:/mnt/c/Users/vincent/Documents/traduction_python_docs/python-docs-fr$ pip install git+https://github.com/JulienPalard/pospell.git@hunspell
Collecting git+https://github.com/JulienPalard/pospell.git@hunspell
  Cloning https://github.com/JulienPalard/pospell.git (to hunspell) to /tmp/pip-jt6k1sd9-build
Collecting cyhunspell (from pospell==1.0.3)
  Downloading https://files.pythonhosted.org/packages/7b/c1/f2d43b9a111de312a9f2e33118926e7e5b96d3f634adf643a4bb543bbe8a/CyHunspell-1.3.4.tar.gz (2.7MB)
    100% |████████████████████████████████| 2.7MB 534kB/s
    Complete output from command python setup.py egg_info:
    Downloading https://github.com/hunspell/hunspell/archive/v1.6.2.tar.gz to /tmp/pip-build-u78tbtqk/cyhunspell/external/v1.6.2.tar.gz
    Extracting /tmp/pip-build-u78tbtqk/cyhunspell/external/v1.6.2.tar.gz to /tmp/pip-build-u78tbtqk/cyhunspell/external
    Traceback (most recent call last):
      File "/tmp/pip-build-u78tbtqk/cyhunspell/find_library.py", line 226, in pkgconfig
        raise RuntimeError(response)
    RuntimeError: /bin/sh: 1: pkg-config: not found

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-u78tbtqk/cyhunspell/setup.py", line 46, in <module>
        hunspell_config = pkgconfig('hunspell', language='c++')
      File "/tmp/pip-build-u78tbtqk/cyhunspell/find_library.py", line 259, in pkgconfig
        lib_path = build_hunspell_package(os.path.join(BASE_DIR, 'external', 'hunspell-1.6.2'))
      File "/tmp/pip-build-u78tbtqk/cyhunspell/find_library.py", line 189, in build_hunspell_package
        check_call(['autoreconf', '-vfi'])
      File "/usr/lib/python3.8/subprocess.py", line 359, in check_call
        retcode = call(*popenargs, **kwargs)
      File "/usr/lib/python3.8/subprocess.py", line 340, in call
        with Popen(*popenargs, **kwargs) as p:
      File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: 'autoreconf'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-u78tbtqk/cyhunspell/

@JulienPalard
Copy link
Member

Dans la série installer les outils sur Windows, pourrais-tu tester cette branche : JulienPalard/pospell@hunspell

@JulienPalard :

(venv_pospell) vincent@DESKTOP-URSSREA:/mnt/c/Users/vincent/Documents/traduction_python_docs/python-docs-fr$ pip install git+https://github.com/JulienPalard/pospell.git@hunspell
Collecting git+https://github.com/JulienPalard/pospell.git@hunspell
  Cloning https://github.com/JulienPalard/pospell.git (to hunspell) to /tmp/pip-jt6k1sd9-build
Collecting cyhunspell (from pospell==1.0.3)
  Downloading https://files.pythonhosted.org/packages/7b/c1/f2d43b9a111de312a9f2e33118926e7e5b96d3f634adf643a4bb543bbe8a/CyHunspell-1.3.4.tar.gz (2.7MB)
    100% |████████████████████████████████| 2.7MB 534kB/s
    Complete output from command python setup.py egg_info:
    Downloading https://github.com/hunspell/hunspell/archive/v1.6.2.tar.gz to /tmp/pip-build-u78tbtqk/cyhunspell/external/v1.6.2.tar.gz
    Extracting /tmp/pip-build-u78tbtqk/cyhunspell/external/v1.6.2.tar.gz to /tmp/pip-build-u78tbtqk/cyhunspell/external
    Traceback (most recent call last):
      File "/tmp/pip-build-u78tbtqk/cyhunspell/find_library.py", line 226, in pkgconfig
        raise RuntimeError(response)
    RuntimeError: /bin/sh: 1: pkg-config: not found

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-u78tbtqk/cyhunspell/setup.py", line 46, in <module>
        hunspell_config = pkgconfig('hunspell', language='c++')
      File "/tmp/pip-build-u78tbtqk/cyhunspell/find_library.py", line 259, in pkgconfig
        lib_path = build_hunspell_package(os.path.join(BASE_DIR, 'external', 'hunspell-1.6.2'))
      File "/tmp/pip-build-u78tbtqk/cyhunspell/find_library.py", line 189, in build_hunspell_package
        check_call(['autoreconf', '-vfi'])
      File "/usr/lib/python3.8/subprocess.py", line 359, in check_call
        retcode = call(*popenargs, **kwargs)
      File "/usr/lib/python3.8/subprocess.py", line 340, in call
        with Popen(*popenargs, **kwargs) as p:
      File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: 'autoreconf'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-u78tbtqk/cyhunspell/

Genial.

@JulienPalard JulienPalard merged commit 1d5ab1b into python:3.8 Dec 12, 2019
@JulienPalard
Copy link
Member

👍

@vpoulailleau
Copy link
Contributor Author

Genial.

@JulienPalard, attend, je viens de voir ça :

Ubuntu on windows needs autoconf and build tooling installed to function. Install sudo apt-get install autoconf automake libtool build-essential pkg-config python python-dev to enable build tooling to work.

Ce qui est mon cas. En fait, il y a du C++ dans tes dépendances, donc faut que je teste dans le Ubuntu du Windows Store, et en dehors. Je te tiens au jus…

@JulienPalard
Copy link
Member

@vpoulailleau tu pourrais tester de pip install directement cyhunspell, je pense que c'est eux le souci, et peut être directement bug report ici : https://github.com/MSeal/cython_hunspell/

@christopheNan
Copy link
Contributor

Merci à padpo et à son auteur !

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

Successfully merging this pull request may close these issues.

3 participants