Janus icon indicating copy to clipboard operation
Janus copied to clipboard

sentencepiece error while pip install -e .[gradio]

Open Cassiano2d opened this issue 11 months ago • 5 comments

Image

Building wheel for sentencepiece (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [32 lines of output] C:\Users\Usuário\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\dist.py:493: SetuptoolsDeprecationWarning: Invalid dash-separated options !!

          ********************************************************************************
          Usage of dash-separated 'description-file' will not be supported in future
          versions. Please use the underscore name 'description_file' instead.

          By 2025-Mar-03, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.

          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************

  !!
    opt = self.warn_dash_deprecation(opt, section)
  C:\Users\Usuário\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\dist.py:270: UserWarning: Unknown distribution option: 'test_suite'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_py
  creating build\lib.win-amd64-cpython-312\sentencepiece
  copying src\sentencepiece/__init__.py -> build\lib.win-amd64-cpython-312\sentencepiece
  copying src\sentencepiece/sentencepiece_model_pb2.py -> build\lib.win-amd64-cpython-312\sentencepiece
  copying src\sentencepiece/sentencepiece_pb2.py -> build\lib.win-amd64-cpython-312\sentencepiece
  running build_ext
  building 'sentencepiece._sentencepiece' extension
  creating build\temp.win-amd64-cpython-312\Release\src\sentencepiece
  "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Usuário\AppData\Local\Programs\Python\Python312\include -IC:\Users\Usuário\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /EHsc /Tpsrc/sentencepiece/sentencepiece_wrap.cxx /Fobuild\temp.win-amd64-cpython-312\Release\src\sentencepiece\sentencepiece_wrap.obj /MT /I..\build\root\include
  cl : Linha de comando warning D9025 : substituindo '/MD' com '/MT'
  sentencepiece_wrap.cxx
  src/sentencepiece/sentencepiece_wrap.cxx(2809): fatal error C1083: N\xc6o \x82 poss\xa1vel abrir arquivo incluir: 'sentencepiece_processor.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.42.34433\\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 sentencepiece Running setup.py clean for sentencepiece Successfully built janus Failed to build sentencepiece ERROR: Failed to build installable wheels for some pyproject.toml based projects (sentencepiece)

Have done a lot of tries here, from deleting sentencepiece and manually installing to creating VM and not working

Cassiano2d avatar Jan 29 '25 14:01 Cassiano2d

Using Python 3.12.8

Cassiano2d avatar Jan 29 '25 14:01 Cassiano2d

And/or sentencepiece 0.2.0

vaiden avatar Jan 29 '25 15:01 vaiden

#62

feroooooo avatar Jan 29 '25 16:01 feroooooo

https://github.com/deepseek-ai/Janus/pull/100

andrusha avatar Jan 29 '25 21:01 andrusha

my python version is 3.12.8 and sentencepiece is 0.2.0, but still got this error

zhenlu6611 avatar Feb 22 '25 02:02 zhenlu6611