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

[Build] build python wheel fails #21145

Closed
DaniAffCH opened this issue Jun 22, 2024 · 3 comments
Closed

[Build] build python wheel fails #21145

DaniAffCH opened this issue Jun 22, 2024 · 3 comments
Labels
build build issues; typically submitted using template stale issues that have not been addressed in a while; categorized by a bot

Comments

@DaniAffCH
Copy link

DaniAffCH commented Jun 22, 2024

Describe the issue

Building the wheel from source fails on Ubuntu 22, but it builds successfully when using the tagged release v1.18.0.

Urgency

No response

Target platform

linux-x86_64

Build script

./build.sh --config Debug --enable_pybind --build_wheel --build_shared_lib

Error / output

error: no matching function for call to ‘pybind11::dtype::dtype(NPY_TYPES)’
  173 |   py::array result(py::dtype(NPY_OBJECT), tensor.Shape().GetDims());

[...]
: error: no matching function for call to ‘pybind11::dtype::dtype(const int&)’
  197 |   pybind11::array result(py::dtype(numpy_type), tensor.Shape().GetDims(),
[...]
/home/daniaffch/Desktop/gsoc/onnxruntime/onnxruntime/python/onnxruntime_pybind_state.cc:197:36: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
  197 |   pybind11::array result(py::dtype(numpy_type), tensor.Shape().GetDims(),

Visual Studio Version

No response

GCC / Compiler Version

11.4.0

@DaniAffCH DaniAffCH added the build build issues; typically submitted using template label Jun 22, 2024
@DaniAffCH DaniAffCH changed the title [Build] build python wheel fail [Build] build python wheel fails Jun 22, 2024
@tianleiwu
Copy link
Contributor

@DaniAffCH, It seems to be related to numpy version. Could you try different numpy version (1.26 vs 2.0) with main branch as well?

@DaniAffCH
Copy link
Author

@tianleiwu thank you for the support. I tried both versions of numpy but the same issue persists.

Copy link
Contributor

github-actions bot commented Aug 5, 2024

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template stale issues that have not been addressed in a while; categorized by a bot
Projects
None yet
Development

No branches or pull requests

2 participants