VoxelCubes / PanelCleaner

An AI-powered tool to clean manga panels.
GNU General Public License v3.0
202 stars 16 forks source link

pip install error on Windows #73

Closed arihid closed 5 months ago

arihid commented 5 months ago

I'm trying to install from pip, but I always run into this error:

  Building wheel for fugashi (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for fugashi (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-312
      creating build\lib.win-amd64-cpython-312\fugashi
      copying fugashi\cli.py -> build\lib.win-amd64-cpython-312\fugashi
      copying fugashi\__init__.py -> build\lib.win-amd64-cpython-312\fugashi
      running build_ext
      cythoning fugashi/fugashi.pyx to fugashi\fugashi.c
      building 'fugashi.fugashi' extension
      creating build\temp.win-amd64-cpython-312
      creating build\temp.win-amd64-cpython-312\Release
      creating build\temp.win-amd64-cpython-312\Release\fugashi
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\mecab -IC:\Users\kekes\AppData\Local\Programs\Python\Python312\include -IC:\Users\kekes\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\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" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcfugashi\fugashi.c /Fobuild\temp.win-amd64-cpython-312\Release\fugashi\fugashi.obj
      fugashi.c
      fugashi\fugashi.c(750): fatal error C1083: Cannot open include file: 'mecab.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\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 fugashi
Failed to build fugashi
ERROR: Could not build wheels for fugashi, which is required to install pyproject.toml-based projects

I have installed mecab and mecab-python3, and when I tried to install fugashi with pip install fugashi, i run into the same error.

VoxelCubes commented 5 months ago

That's...unfortunate. I don't have any connection to the fugashi package so nothing I can do, and I don't know any workarounds, unfortunately. Gonna have to use the prebuilt binary which has it included until the fugashi team fixes it, or the problem goes away on it's own.

Raise this issue to the fugashi project instead, I can't help here.

arihid commented 5 months ago

Okay. I just raised the issue to the fugashi project.

VoxelCubes commented 5 months ago

Good, hopefully they can sort it out.

arihid commented 5 months ago

Update: the fugashi project is working on a fix and a working dev version is in testing. We can expect a working version soon.

VoxelCubes commented 5 months ago

cool, thanks for the update!