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

Python build fails to compile #615

Open
daniellivingston opened this issue Jul 26, 2024 · 0 comments
Open

Python build fails to compile #615

daniellivingston opened this issue Jul 26, 2024 · 0 comments

Comments

@daniellivingston
Copy link

Attempting to install the Python package via python3 setup.py install fails with the following error:

C:\dev\tmp\DirectML\Python\src\module.cpp(557,12): error C2672: 'pybind11::module_::def': no matching overloaded function found [C:\dev\tmp\DirectML\Python\build\temp.win-amd64-c
python-310\Debug\pydirectml.vcxproj]
  Generating Code...
Traceback (most recent call last):
  File "C:\dev\tmp\DirectML\Python\setup.py", line 125, in <module>
    setup(
... snip full traceback...
    subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
  File "C:\Program Files\Python310\lib\subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Debug', '--', '/m']' returned non-zero exit status 1.

System

  • Python 3.10.11
  • cmake version 3.28.2
  • Visual Studio 17 2022
  • Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
  • The C compiler identification is MSVC 19.40.33811.0
  • The CXX compiler identification is MSVC 19.40.33811.0
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

1 participant