pybind / pybind/pybind11

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

Open
#4,823 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
C++
Stars
18k
Forks
2.3k
Avg merge
5d 17h
Merged PRs (30d)
10

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the compiler diagnostic at pybind11/include/pybind11/numpy.h:1020:7 and reproduce it using the loadExrChannel.cpp example linked in the issue. Compare the two Python and GCC environments against the attached error.log. Done means identifying why pybind11 2.11.1 behaves differently and documenting a confirmed resolution or reproducible project issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.