skip to Main Content

Trying to install this thing called Gailbot, but I’m quite a newbie at Python (coming from linguistics not coding background)
I did manage to solve some previous issues i had while trying to install but haven’t been able to fix this?
i’d love some advice from people with more experience!
if relevant, my things arent installed on PATH as python warns me but i don’t know how to move my things to PATH and have thus been using the commands python -m pip install [whatever im trying to install]

Building wheels for collected packages: xattr
  Building wheel for xattr (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for xattr (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [24 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating buildlib.win-amd64-cpython-310
      creating buildlib.win-amd64-cpython-310xattr
      copying xattrcompat.py -> buildlib.win-amd64-cpython-310xattr
      copying xattrlib.py -> buildlib.win-amd64-cpython-310xattr
      copying xattrlib_build.py -> buildlib.win-amd64-cpython-310xattr
      copying xattrpyxattr_compat.py -> buildlib.win-amd64-cpython-310xattr
      copying xattrtool.py -> buildlib.win-amd64-cpython-310xattr
      copying xattr__init__.py -> buildlib.win-amd64-cpython-310xattr
      running build_ext
      generating cffi module 'build\temp.win-amd64-cpython-310\Release\_lib.c'
      creating buildtemp.win-amd64-cpython-310
      creating buildtemp.win-amd64-cpython-310Release
      building '_lib' extension
      creating buildtemp.win-amd64-cpython-310Releasebuild
      creating buildtemp.win-amd64-cpython-310Releasebuildtemp.win-amd64-cpython-310
      creating buildtemp.win-amd64-cpython-310Releasebuildtemp.win-amd64-cpython-310Release
      "C:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.37.32822binHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-IC:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0include" "-IC:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0Include" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.37.32822include" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCAuxiliaryVSinclude" "-IC:Program Files (x86)Windows Kits10include10.0.22621.0ucrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\um" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\shared" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\winrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\cppwinrt" /Tcbuildtemp.win-amd64-cpython-310Release_lib.c /Fobuildtemp.win-amd64-cpython-310Releasebuildtemp.win-amd64-cpython-310Release_lib.obj
      _lib.c
      buildtemp.win-amd64-cpython-310Release_lib.c(580): fatal error C1083: Cannot open include file: 'sys/xattr.h': No such file or directory
      error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\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 xattr
Failed to build xattr
ERROR: Could not build wheels for xattr, which is required to install pyproject.toml-based projects

tried to install xattr on its own, same error
tried uninstalling and reinstalling python, didnt work
tried this thing i saw somewhere but i forgot python -m pip install xattr --no-cache-dir but that didnt work either
tried looking for what sys/xattr.h is to download it or something but that led to nowhere
tried to install the latest sdk as per another post’s solution, didn’t work and same error

2

Answers


  1. Chosen as BEST ANSWER

    Thanks to phd who pointed out that Gailbot is for MacOS and I'd been having issues because I was on Windows 😭


  2. This error is occurring because the xattr package is trying to compile C extensions, but it cannot find the necessary headers to do so.

    There are a few things you can try:

    1. Install the Windows SDK. It seems like you’ve tried this already but make sure you install the latest SDK and also include the "C Runtime" component during installation.

    2. Set up your environment variables to include the path to the Windows SDK include directories. This will make the header files accessible when compiling extensions.

    3. Use a pre-compiled wheel for the xattr package instead of trying to compile it yourself. You can do this with:

    pip install xattr --find-links https://github.com/xattr/xattr/releases

    1. As a last resort, you can try installing xattr in a virtual environment instead of globally. This may isolate the issue and allow it to install successfully:
    python -m venv venv  
    venvScriptsactivate
    pip install xattr
    

    Then you can install and run Gailbot within that virtual environment.

    Hope this helps! Let me know if you have any other questions. The error message suggests it’s an issue compiling C extensions, so ensuring the necessary headers and SDK components are installed correctly should resolve the issue.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search