Skip to content

Setuptools v82.0.0 breaking compatibility with frappe v15Β #1698

@maheini

Description

@maheini

Issue: The recent released setuptools v82.0.0 doesn't contain pkg_resources any longer, which dropbox (frappe v15 dependency) depends on. Due to this, bench new-site will always fail due to the missing dependency.

Do the checklist before filing an issue:

  • Can you replicate the issue on the supported bench versions?

To Reproduce πŸ“ƒ
Steps to reproduce the behavior:

  1. Setup new docker bench development container
  2. Initialize frappe bench (python 3.11, frappe branch version-15)
  3. setup config
  4. run bench new-site sitename
  5. It will start fine, but fails after ~ 85% with this error:
ImportError: Module import failed for Dropbox Settings, the DocType you're trying to open might be deleted.
Error: No module named 'pkg_resources' 

Expected behavior πŸ“ˆ
Bench new-site should complete without issues (working fine with v16)

OS (please complete the following information): πŸŒ€

  • Latest docker bench image (v5.29.0)
  • Bench Branch: develop
  • Frappe Version: 15

Workaround:
Run uv pip install --reinstall setuptools==81.0.0 before creating a new site.

Possible Solution πŸ“‘
Lock setuptools version to 81.0.0 for now and/or manually add pkg_resources as an additional ressource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions