Skip to content

ModuleNotFoundError: No module named 'pkg_resources' #687

@camilamaia

Description

@camilamaia

Bug report

Environment

  • Operating System: MacOS
  • Python version: 3.13.0

Description of the bug

$ scanapi
Traceback (most recent call last):
  File "/Users/camilamaia/workspace/scanapi/examples/venv/bin/scanapi", line 5, in <module>
    from scanapi import main
  File "/Users/camilamaia/workspace/scanapi/examples/venv/lib/python3.13/site-packages/scanapi/__init__.py", line 1, in <module>
    from scanapi.cli import main
  File "/Users/camilamaia/workspace/scanapi/examples/venv/lib/python3.13/site-packages/scanapi/cli.py", line 5, in <module>
    from pkg_resources import get_distribution
ModuleNotFoundError: No module named 'pkg_resources'

Expected behavior ?

▶ scanapi
Usage: scanapi [OPTIONS] COMMAND [ARGS]...

  Automated Testing and Documentation for your REST API.

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  run  Automated Testing and Documentation for your REST API.

How to reproduce the the bug ?

> pip install scanapi
> scanapi

Anthing else we need to know?

Add setuptools>=75.1.0 should solve

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions