pybind / pybind11

Seamless operability between C++11 and Python
https://pybind11.readthedocs.io/
Other
15.58k stars 2.09k forks source link

[BUG]: pybind11/include/pybind11/numpy.h:1020:7: note: candidate expects 1 argument, 2 provided... #4823

Open abcdsky opened 1 year ago

abcdsky commented 1 year ago

Required prerequisites

What version (or hash if on master) of pybind11 are you using?

2.11.1

Problem description

HI, the same code, one computer compiles without an error, the other computer compiles and reports an error. Thanks. error ### log: error.log

the error computer python version: Python 3.8.5 (default, Sep 4 2020, 07:30:14) [GCC 7.3.0] :: Anaconda, Inc. on linux

the error computer gcc version: gcc version 11.2.1 20220127 (Red Hat 11.2.1-9) (GCC)

the correct computer python version: Python 3.8.5 (default, Aug 9 2023, 16:45:37) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] on linux

the error computer gcc version: gcc version 11.4.1 20230605 (Red Hat 11.4.1-2) (GCC)

Seems gcc version of python? I have no idea. Thank you!

Reproducible example code

code:
https://github.com/mteillet/PyVexr/blob/main/cppModules/loadExrChannel.cpp

Is this a regression? Put the last known working version here if it is.

Not a regression