pytest-dev / pytest-dev/pytest

ImportError: 'No module named fix'

Open
#1,897 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

plugin: pytester type: selftests
Dominant language
Python
Stars
14.5k
Forks
3.4k
Avg merge
2d 9h
Merged PRs (30d)
35

Description

I'm trying to package pytest 3.0.1 for Gentoo. During the test run, I get the following error:

ImportError while importing test module '/var/tmp/portage/dev-python/pytest-3.0.1/temp/pytest-of-portage/pytest-0/testdir/test_non_relative_path0/tests/test_foos.py'.
Original error message:
'No module named fix'
Make sure your test modules/packages have valid Python names.

For more details, see the Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=592424

I've searched the whole internet, and found no reference to a python module with name fix and function fix_with_param. What am I doing wrong? Which dependency am I missing?

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 by reproducing the pytest 3.0.1 test run described in the issue and inspect the failing test module path ending in tests/test_foos.py. Compare the packaging environment with the Gentoo bug report to determine why the fix module cannot be imported. Done means identifying the missing or mispackaged component and documenting a verified correction.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.