resemble-ai/chatterbox

Error installing pkuseg (different error that other topic)

Opened this issue · 1 comments

Hey guys, I have build tools installed but its giving me this error, my older version of this installed with absolutely no problem.

I did everything in the other issue listed with upgrading setuptools, installing wheel, its just not budging

Installing collected packages: numpy
Successfully installed numpy-1.25.2

(chatterbox) F:\ChatGPT\chatterbox>pip install --no-build-isolation "pkuseg==0.0.25"
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting pkuseg==0.0.25
Downloading pkuseg-0.0.25.tar.gz (48.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.8/48.8 MB 6.4 MB/s 0:00:07
Preparing metadata (setup.py) ... done
Collecting cython (from pkuseg==0.0.25)
Downloading cython-3.1.3-cp311-cp311-win_amd64.whl.metadata (4.9 kB)
Requirement already satisfied: numpy>=1.16.0 in c:\users\user1\miniconda3\envs\chatterbox\lib\site-packages (from pkuseg==0.0.25) (1.25.2)
Downloading cython-3.1.3-cp311-cp311-win_amd64.whl (2.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.7/2.7 MB 6.8 MB/s 0:00:00
Building wheels for collected packages: pkuseg
DEPRECATION: Building 'pkuseg' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517 option, (possibly combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of 'pkuseg'. Discussion can be found at pypa/pip#6334
Building wheel for pkuseg (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [64 lines of output]
C:\Users\user1\miniconda3\envs\chatterbox\Lib\site-packages\setuptools_init_.py:92: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

          ********************************************************************************
          Requirements should be satisfied by a PEP 517 installer.
          If you are using pip, you can try `pip install --use-pep517`.

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

  !!
    dist.fetch_build_eggs(dist.setup_requires)
  C:\Users\user1\miniconda3\envs\chatterbox\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: Other/Proprietary License

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    self._finalize_license_expression()
  running bdist_wheel
  running build
  running build_py
  creating build\lib.win-amd64-cpython-311\pkuseg
  copying pkuseg\config.py -> build\lib.win-amd64-cpython-311\pkuseg
  copying pkuseg\data.py -> build\lib.win-amd64-cpython-311\pkuseg
  copying pkuseg\download.py -> build\lib.win-amd64-cpython-311\pkuseg
  copying pkuseg\gradient.py -> build\lib.win-amd64-cpython-311\pkuseg
  copying pkuseg\model.py -> build\lib.win-amd64-cpython-311\pkuseg
  copying pkuseg\optimizer.py -> build\lib.win-amd64-cpython-311\pkuseg
  copying pkuseg\res_summarize.py -> build\lib.win-amd64-cpython-311\pkuseg
  copying pkuseg\scorer.py -> build\lib.win-amd64-cpython-311\pkuseg
  copying pkuseg\trainer.py -> build\lib.win-amd64-cpython-311\pkuseg
  copying pkuseg\__init__.py -> build\lib.win-amd64-cpython-311\pkuseg
  creating build\lib.win-amd64-cpython-311\pkuseg\dicts
  copying pkuseg\dicts\__init__.py -> build\lib.win-amd64-cpython-311\pkuseg\dicts
  creating build\lib.win-amd64-cpython-311\pkuseg\models
  copying pkuseg\models\__init__.py -> build\lib.win-amd64-cpython-311\pkuseg\models
  creating build\lib.win-amd64-cpython-311\pkuseg\postag
  copying pkuseg\postag\model.py -> build\lib.win-amd64-cpython-311\pkuseg\postag
  copying pkuseg\postag\__init__.py -> build\lib.win-amd64-cpython-311\pkuseg\postag
  creating build\lib.win-amd64-cpython-311\pkuseg\models\default
  copying pkuseg\models\default\__init__.py -> build\lib.win-amd64-cpython-311\pkuseg\models\default
  copying pkuseg\feature_extractor.pyx -> build\lib.win-amd64-cpython-311\pkuseg
  copying pkuseg\inference.pyx -> build\lib.win-amd64-cpython-311\pkuseg
  copying pkuseg\dicts\default.pkl -> build\lib.win-amd64-cpython-311\pkuseg\dicts
  copying pkuseg\postag\feature_extractor.pyx -> build\lib.win-amd64-cpython-311\pkuseg\postag
  copying pkuseg\models\default\features.pkl -> build\lib.win-amd64-cpython-311\pkuseg\models\default
  copying pkuseg\models\default\weights.npz -> build\lib.win-amd64-cpython-311\pkuseg\models\default
  running build_ext
  Compiling pkuseg/inference.pyx because it changed.
  [1/1] Cythonizing pkuseg/inference.pyx
  building 'pkuseg.inference' extension
  creating build\temp.win-amd64-cpython-311\Release\pkuseg
  "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\user1\miniconda3\envs\chatterbox\Lib\site-packages\numpy\core\include -IC:\Users\user1\miniconda3\envs\chatterbox\include -IC:\Users\user1\miniconda3\envs\chatterbox\Include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /EHsc /Tppkuseg/inference.cpp /Fobuild\temp.win-amd64-cpython-311\Release\pkuseg\inference.obj
  inference.cpp
  c:\users\user1\miniconda3\envs\chatterbox\include\pyconfig.h(207): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\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 pkuseg
Running setup.py clean for pkuseg
Failed to build pkuseg
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> pkuseg

The pkuseg seems to be supported with Python 3.8.20.