Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Encountered error while trying to install package fasttext #160

@JokerVilli

Description

@JokerVilli
Collecting dostoevsky
  Using cached dostoevsky-0.6.0-py2.py3-none-any.whl (8.5 kB)
Requirement already satisfied: razdel==0.5.0 in c:\users\joker\appdata\local\programs\python\python310\lib\site-packages (from dostoevsky) (0.5.0)
Collecting fasttext==0.9.2
  Using cached fasttext-0.9.2.tar.gz (68 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: pybind11>=2.2 in c:\users\joker\appdata\local\programs\python\python310\lib\site-packages (from fasttext==0.9.2->dostoevsky) (2.9.1)
Requirement already satisfied: setuptools>=0.7.0 in c:\users\joker\appdata\local\programs\python\python310\lib\site-packages (from fasttext==0.9.2->dostoevsky) (60.9.3)
Requirement already satisfied: numpy in c:\users\joker\appdata\local\programs\python\python310\lib\site-packages (from fasttext==0.9.2->dostoevsky) (1.22.2)
Building wheels for collected packages: fasttext
  Building wheel for fasttext (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [52 lines of output]
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:738: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.10
      creating build\lib.win-amd64-3.10\fasttext
      copying python\fasttext_module\fasttext\FastText.py -> build\lib.win-amd64-3.10\fasttext
      copying python\fasttext_module\fasttext\__init__.py -> build\lib.win-amd64-3.10\fasttext
      creating build\lib.win-amd64-3.10\fasttext\util
      copying python\fasttext_module\fasttext\util\util.py -> build\lib.win-amd64-3.10\fasttext\util
      copying python\fasttext_module\fasttext\util\__init__.py -> build\lib.win-amd64-3.10\fasttext\util
      creating build\lib.win-amd64-3.10\fasttext\tests
      copying python\fasttext_module\fasttext\tests\test_configurations.py -> build\lib.win-amd64-3.10\fasttext\tests
      copying python\fasttext_module\fasttext\tests\test_script.py -> build\lib.win-amd64-3.10\fasttext\tests
      copying python\fasttext_module\fasttext\tests\__init__.py -> build\lib.win-amd64-3.10\fasttext\tests
      running build_ext
      building 'fasttext_pybind' extension
      creating build\temp.win-amd64-3.10
      creating build\temp.win-amd64-3.10\Release
      creating build\temp.win-amd64-3.10\Release\python
      creating build\temp.win-amd64-3.10\Release\python\fasttext_module
      creating build\temp.win-amd64-3.10\Release\python\fasttext_module\fasttext
      creating build\temp.win-amd64-3.10\Release\python\fasttext_module\fasttext\pybind
      creating build\temp.win-amd64-3.10\Release\src
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -Isrc -IC:\Users\joker\AppData\Local\Programs\Python\Python310\include -IC:\Users\joker\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tppython/fasttext_module/fasttext/pybind/fasttext_pybind.cc /Fobuild\temp.win-amd64-3.10\Release\python/fasttext_module/fasttext/pybind/fasttext_pybind.obj /EHsc /DVERSION_INFO=\\\"0.9.2\\\"
      fasttext_pybind.cc
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2065: ssize_t: ­Ґ®Ўкпў«Ґ­­л© Ё¤Ґ­вЁдЁЄ в®а
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2672: "pybind11::init": ­Ґ ­ ©¤Ґ­  ᮮ⢥вбвўгой п ЇҐаҐЈа㦥­­ п дг­ЄжЁп
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: pybind11::init: ­Ґ¤®ЇгбвЁ¬л©  аЈг¬Ґ­в и Ў«®­ ¤«п "CFunc", вॡгҐвбп вЁЇ
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1702): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::init"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: pybind11::init: ­Ґ¤®ЇгбвЁ¬л©  аЈг¬Ґ­в и Ў«®­ ¤«п "Func", вॡгҐвбп вЁЇ
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1697): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::init"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: pybind11::init: ­Ґ¤®ЇгбвЁ¬л©  аЈг¬Ґ­в и Ў«®­ ¤«п "Args", вॡгҐвбп вЁЇ
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1690): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::init"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2672: "pybind11::class_<fasttext::Vector>::def": ­Ґ ­ ©¤Ґ­  ᮮ⢥вбвўгой п ЇҐаҐЈа㦥­­ п дг­ЄжЁп
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2780: pybind11::class_<fasttext::Vector> &pybind11::class_<fasttext::Vector>::def(const char *,Func &&,const Extra &...): вॡгҐв  аЈг¬Ґ­в®ў: 3, Ё¬ҐҐвбп: 1
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1416): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::class_<fasttext::Vector>::def"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2065: ssize_t: ­Ґ®Ўкпў«Ґ­­л© Ё¤Ґ­вЁдЁЄ в®а
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2065: ssize_t: ­Ґ®Ўкпў«Ґ­­л© Ё¤Ґ­вЁдЁЄ в®а
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2672: "pybind11::init": ­Ґ ­ ©¤Ґ­  ᮮ⢥вбвўгой п ЇҐаҐЈа㦥­­ п дг­ЄжЁп
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: pybind11::init: ­Ґ¤®ЇгбвЁ¬л©  аЈг¬Ґ­в и Ў«®­ ¤«п "CFunc", вॡгҐвбп вЁЇ
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1702): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::init"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: pybind11::init: ­Ґ¤®ЇгбвЁ¬л©  аЈг¬Ґ­в и Ў«®­ ¤«п "Func", вॡгҐвбп вЁЇ
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1697): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::init"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: pybind11::init: ­Ґ¤®ЇгбвЁ¬л©  аЈг¬Ґ­в и Ў«®­ ¤«п "Args", вॡгҐвбп вЁЇ
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1690): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::init"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2672: "pybind11::class_<fasttext::DenseMatrix>::def": ­Ґ ­ ©¤Ґ­  ᮮ⢥вбвўгой п ЇҐаҐЈа㦥­­ п дг­ЄжЁп
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2780: pybind11::class_<fasttext::DenseMatrix> &pybind11::class_<fasttext::DenseMatrix>::def(const char *,Func &&,const Extra &...): вॡгҐв  аЈг¬Ґ­в®ў: 3, Ё¬ҐҐвбп: 1
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1416): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::class_<fasttext::DenseMatrix>::def"
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for fasttext
  Running setup.py clean for fasttext
Failed to build fasttext
Installing collected packages: fasttext, dostoevsky
  Running setup.py install for fasttext ... error
  error: subprocess-exited-with-error

  × Running setup.py install for fasttext did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py:738: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      running install
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.10
      creating build\lib.win-amd64-3.10\fasttext
      copying python\fasttext_module\fasttext\FastText.py -> build\lib.win-amd64-3.10\fasttext
      copying python\fasttext_module\fasttext\__init__.py -> build\lib.win-amd64-3.10\fasttext
      creating build\lib.win-amd64-3.10\fasttext\util
      copying python\fasttext_module\fasttext\util\util.py -> build\lib.win-amd64-3.10\fasttext\util
      copying python\fasttext_module\fasttext\util\__init__.py -> build\lib.win-amd64-3.10\fasttext\util
      creating build\lib.win-amd64-3.10\fasttext\tests
      copying python\fasttext_module\fasttext\tests\test_configurations.py -> build\lib.win-amd64-3.10\fasttext\tests
      copying python\fasttext_module\fasttext\tests\test_script.py -> build\lib.win-amd64-3.10\fasttext\tests
      copying python\fasttext_module\fasttext\tests\__init__.py -> build\lib.win-amd64-3.10\fasttext\tests
      running build_ext
      building 'fasttext_pybind' extension
      creating build\temp.win-amd64-3.10
      creating build\temp.win-amd64-3.10\Release
      creating build\temp.win-amd64-3.10\Release\python
      creating build\temp.win-amd64-3.10\Release\python\fasttext_module
      creating build\temp.win-amd64-3.10\Release\python\fasttext_module\fasttext
      creating build\temp.win-amd64-3.10\Release\python\fasttext_module\fasttext\pybind
      creating build\temp.win-amd64-3.10\Release\src
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -IC:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include -Isrc -IC:\Users\joker\AppData\Local\Programs\Python\Python310\include -IC:\Users\joker\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tppython/fasttext_module/fasttext/pybind/fasttext_pybind.cc /Fobuild\temp.win-amd64-3.10\Release\python/fasttext_module/fasttext/pybind/fasttext_pybind.obj /EHsc /DVERSION_INFO=\\\"0.9.2\\\"
      fasttext_pybind.cc
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2065: ssize_t: ­Ґ®Ўкпў«Ґ­­л© Ё¤Ґ­вЁдЁЄ в®а
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2672: "pybind11::init": ­Ґ ­ ©¤Ґ­  ᮮ⢥вбвўгой п ЇҐаҐЈа㦥­­ п дг­ЄжЁп
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: pybind11::init: ­Ґ¤®ЇгбвЁ¬л©  аЈг¬Ґ­в и Ў«®­ ¤«п "CFunc", вॡгҐвбп вЁЇ
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1702): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::init"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: pybind11::init: ­Ґ¤®ЇгбвЁ¬л©  аЈг¬Ґ­в и Ў«®­ ¤«п "Func", вॡгҐвбп вЁЇ
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1697): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::init"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: pybind11::init: ­Ґ¤®ЇгбвЁ¬л©  аЈг¬Ґ­в и Ў«®­ ¤«п "Args", вॡгҐвбп вЁЇ
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1690): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::init"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2672: "pybind11::class_<fasttext::Vector>::def": ­Ґ ­ ©¤Ґ­  ᮮ⢥вбвўгой п ЇҐаҐЈа㦥­­ п дг­ЄжЁп
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2780: pybind11::class_<fasttext::Vector> &pybind11::class_<fasttext::Vector>::def(const char *,Func &&,const Extra &...): вॡгҐв  аЈг¬Ґ­в®ў: 3, Ё¬ҐҐвбп: 1
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1416): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::class_<fasttext::Vector>::def"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2065: ssize_t: ­Ґ®Ўкпў«Ґ­­л© Ё¤Ґ­вЁдЁЄ в®а
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2065: ssize_t: ­Ґ®Ўкпў«Ґ­­л© Ё¤Ґ­вЁдЁЄ в®а
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2672: "pybind11::init": ­Ґ ­ ©¤Ґ­  ᮮ⢥вбвўгой п ЇҐаҐЈа㦥­­ п дг­ЄжЁп
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: pybind11::init: ­Ґ¤®ЇгбвЁ¬л©  аЈг¬Ґ­в и Ў«®­ ¤«п "CFunc", вॡгҐвбп вЁЇ
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1702): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::init"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: pybind11::init: ­Ґ¤®ЇгбвЁ¬л©  аЈг¬Ґ­в и Ў«®­ ¤«п "Func", вॡгҐвбп вЁЇ
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1697): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::init"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: pybind11::init: ­Ґ¤®ЇгбвЁ¬л©  аЈг¬Ґ­в и Ў«®­ ¤«п "Args", вॡгҐвбп вЁЇ
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1690): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::init"
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2672: "pybind11::class_<fasttext::DenseMatrix>::def": ­Ґ ­ ©¤Ґ­  ᮮ⢥вбвўгой п ЇҐаҐЈа㦥­­ п дг­ЄжЁп
      python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2780: pybind11::class_<fasttext::DenseMatrix> &pybind11::class_<fasttext::DenseMatrix>::def(const char *,Func &&,const Extra &...): вॡгҐв  аЈг¬Ґ­в®ў: 3, Ё¬ҐҐвбп: 1
      C:\Users\joker\AppData\Local\Programs\Python\Python310\lib\site-packages\pybind11\include\pybind11\pybind11.h(1416): note:  б¬. ®Ўкпў«Ґ­ЁҐ "pybind11::class_<fasttext::DenseMatrix>::def"
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> fasttext

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Could someone please help me out?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions