vaex-core windows vendor/pybind11/includepybind11/numpy.h(35): error C2065: 'ssize_t': undeclared identifier

Question:

I am having a error when trying to build a package from source.

      "C:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.29.30133binHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:UsersLenovoAppDataLocalTemppip-build-env-6gtrxy7uoverlayLibsite-packagesnumpycoreinclude -Ivendor/pybind11/include -Ivendor/pybind11/include -Ivendor/string-view-lite/include -Ivendor/boost -IC:PythonPython310include -IC:PythonPython310Libraryinclude -IvendorpcreLibraryinclude -IC:PythonPython310include -IC:PythonPython310Include "-IC:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.29.30133include" "-IC:Program Files (x86)Windows Kits10include10.0.19041.0ucrt" "-IC:Program Files (x86)Windows Kits10include10.0.19041.0shared" "-IC:Program Files (x86)Windows Kits10include10.0.19041.0um" "-IC:Program Files (x86)Windows Kits10include10.0.19041.0winrt" "-IC:Program Files (x86)Windows Kits10include10.0.19041.0cppwinrt" /EHsc /Tpsrcstrings.cpp /Fobuildtemp.win-amd64-3.10Releasesrcstrings.obj /EHsc
      strings.cpp
      vendor/pybind11/includepybind11/numpy.h(35): error C2065: 'ssize_t': undeclared identifier
      vendor/pybind11/includepybind11/numpy.h(35): error C2338: ssize_t != Py_intptr_t
      C:UsersLenovoAppDataLocalTemppip-install-vmdjo61jvaex-core_8c00779b22c745ba90d323d5396909c4srcstring_utils.hpp(208): warning C4244: '=': conversion from 'char32_t' to 'char', possible loss of data
      vendorpcreLibraryincludepcrecpp.h(701): warning C4251: 'pcrecpp::RE::pattern_': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'pcrecpp::RE'
      C:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.29.30133includexstring(4905): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
      srcstrings.cpp(273): warning C4018: '>': signed/unsigned mismatch
      srcstrings.cpp(282): warning C4018: '>': signed/unsigned mismatch
      error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\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 vaex-core
  Building wheel for future (setup.py) ... done
  Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491070 sha256=181e9fce6f02e9d9ededfda32bcd4f51fcb0cc556bb9245af0294c279e6bd36e
  Stored in directory: c:userslenovoappdatalocalpipcachewheels22736557dc4f4ef68179b9d763930d6eec26b88ed7c389b19588a1c
  Building wheel for aplus (setup.py) ... done
  Created wheel for aplus: filename=aplus-0.11.0-py3-none-any.whl size=4410 sha256=70a7aab29eb4cd9eafb025d16acc94ffb3259763f346ec37838f05a65f591d4a
  Stored in directory: c:userslenovoappdatalocalpipcachewheels74ed144d7bffd9475a07582e0c256b9b1ddbbc1f49c58e3150d356f4
Successfully built future aplus
Failed to build vaex-core
ERROR: Could not build wheels for vaex-core, which is required to install pyproject.toml-based projects

I am unable to install vaex-core because of this in python3.10 on windows.

Answers:

Now the bugs are fixed, it installed without any problems.

Answered By: And0k
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.