pybind / pybind/pybind11

[BUG] 2.6.2: pyest based test suite is failing with missing 'pybind11_tests' module

Open
#3,008 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/pybind11-2.6.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/pybind11-2.6.2-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
ImportError while loading conftest '/home/tkloczko/rpmbuild/BUILD/pybind11-2.6.2/tests/conftest.py'.
tests/conftest.py:19: in <module>
    import pybind11_tests  # noqa: F401
E   ModuleNotFoundError: No module named 'pybind11_tests'

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

The failure occurs while loading tests/conftest.py during /usr/bin/python3 -Bm pytest -ra with the shown PYTHONPATH. Start by reproducing that command and tracing how pybind11_tests is built or made importable; done means conftest.py loads without ModuleNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.