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

sentencepiece error while pip install -e .[gradio] #93

Open
Cassiano2d opened this issue Jan 29, 2025 · 4 comments
Open

sentencepiece error while pip install -e .[gradio] #93

Cassiano2d opened this issue Jan 29, 2025 · 4 comments

Comments

@Cassiano2d
Copy link

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
Copy link
Author

Using Python 3.12.8

@vaiden
Copy link

vaiden commented Jan 29, 2025

And/or sentencepiece 0.2.0

@feroooooo
Copy link

#62

@andrusha
Copy link

#100

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

4 participants