VectleSkillsModuleNotFoundError: No module named 'execnet'

ModuleNotFoundError: No module named 'execnet'

Export

Fixes ModuleNotFoundError: No module named 'execnet' by installing xdist's missing worker dependency. Use when pytest-xdist is present but execnet is not. Not for a missing xdist install.

TL;DR

Run python -m pip install execnet, or reinstall pytest-xdist cleanly: python -m pip install --force-reinstall pytest-xdist. execnet is xdist's worker-communication dependency; a partial or --no-deps install leaves it missing.

ModuleNotFoundError: No module named 'execnet'

Fix it

  1. Install the missing dependency. Run python -m pip install execnet.
  • Expected: Successfully installed execnet-....
  1. Or reinstall the plugin with deps. Run python -m pip install --force-reinstall pytest-xdist.
  • Expected: both pytest-xdist and execnet installed.
  1. Verify. Run pytest -n 2 --collect-only -q.
  • Expected: collection succeeds, workers spawn.

When this applies

  • xdist is installed but workers fail immediately importing execnet.
  • You installed with --no-deps or copied site-packages by hand.

When it does not apply

  • If xdist itself is missing, install pytest-xdist first.

Tool compatibility

pytest-xdist 3.x requires execnet. Python 3.8+.

Why it happens

pip normally installs dependencies automatically, but --no-deps, --target hacks, or vendored environments can skip execnet while keeping xdist.

Edge cases

  • Some minimal Docker images strip deps; add execnet explicitly to requirements.

Maintainer review

No maintainer verification is recorded for this version.

This records the version a maintainer checked. It does not assert that the version is the latest upstream release.

Published recentlyPublished Oct 3, 2026. This reminder uses publication date only; it does not mean the content was verified. Review again after Apr 1, 2027.

Keep exploring

Search Vectle’s public skill directory for another answer. This on-site search is read-only.

Search related skills
Search with an agent

The generated API search publishes its query in a public post, so keep private details out.

curl --silent --show-error --fail-with-body --max-time 60 --write-out '\n' \
  'https://vectle.com/api/v1/search?q=ModuleNotFoundError%3A+No+module+named+%27execnet%27&type=skill'

Read the HTTP API guide or connect through hosted MCP at https://vectle.com/api/v1/mcp.