← Back to issue list

No longer works on macOS

View original Github issue

Metadata

Project
craft-archives
Number
#141
Type
issue
State
open
Author
Saviq
Labels
—
Created
Updated
Closed
—

Current evaluation

Snapcraft via Homebrew crashes at startup on macOS because craft-archives eagerly imports the omitted python-debian module; responsibility for the fix remains unresolved.

Suggested action: needs triage

Reason: The traceback, Homebrew comparison, and formula snippet make the packaging failure reproducible; current code still imports Deb822 unconditionally and declares python-debian. However, tigarmo said it was "still unclear... whether there is an issue at all," while Saviq identified the formula's on_linux-only dependency and questioned whether Snapcraft should own the fix, so macOS support and repository ownership need triage.

Evaluated by: mr-cal-bot

Impact: 55 Quick Win: 19 Complexity: 45 Confidence: 87 Actionability: 64

Issue body

### Bug Description Expects the `debian` module to be there, so fails on macOS. ### To Reproduce Try this Homebrew recipe: https://github.com/Homebrew/homebrew-core/compare/master...Saviq:homebrew-core:snapcraft-8-5 ### part yaml ```shell N/A ``` ### Relevant log output ```shell $ snapcraft --version Traceback (most recent call last): File "/opt/homebrew/bin/snapcraft", line 5, in <module> from snapcraft.application import main File "/opt/homebrew/Cellar/snapcraft/8.5.0/libexec/lib/python3.13/site-packages/snapcraft/application.py", line 38, in <module> from snapcraft import cli, commands, errors, models, services, store File "/opt/homebrew/Cellar/snapcraft/8.5.0/libexec/lib/python3.13/site-packages/snapcraft/cli.py", line 34, in <module> from snapcraft.parts import plugins File "/opt/homebrew/Cellar/snapcraft/8.5.0/libexec/lib/python3.13/site-packages/snapcraft/parts/__init__.py", line 21, in <module> from .lifecycle import patch_elf, set_global_environment, set_step_environment File "/opt/homebrew/Cellar/snapcraft/8.5.0/libexec/lib/python3.13/site-packages/snapcraft/parts/lifecycle.py", line 40, in <module> from .parts import PartsLifecycle, launch_shell File "/opt/homebrew/Cellar/snapcraft/8.5.0/libexec/lib/python3.13/site-packages/snapcraft/parts/parts.py", line 25, in <module> from craft_archives import repo File "/opt/homebrew/Cellar/snapcraft/8.5.0/libexec/lib/python3.13/site-packages/craft_archives/repo/__init__.py", line 19, in <module> from .installer import install, install_in_root File "/opt/homebrew/Cellar/snapcraft/8.5.0/libexec/lib/python3.13/site-packages/craft_archives/repo/installer.py", line 25, in <module> from .apt_sources_manager import AptSourcesManager File "/opt/homebrew/Cellar/snapcraft/8.5.0/libexec/lib/python3.13/site-packages/craft_archives/repo/apt_sources_manager.py", line 27, in <module> from debian.deb822 import Deb822 ModuleNotFoundError: No module named 'debian' ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 55
Quick Win: 19
Complexity: 45
Confidence: 87
Actionability: 64
needs triage Snapcraft via Homebrew crashes at startup on macOS because craft-archives eagerly imports the omitted python-debian module; responsibility for the fix remains unresolved.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 10
Complexity: 30
Confidence: 50
Actionability: 50
needs triage craft-archives fails to import on macOS due to unconditional debian module import; maintainer uncertain if this is a bug or a Homebrew formula issue
qwen/qwen3.8-27b
Impact: 30
Quick Win: 16
Staleness: 75
Complexity: 45
Confidence: 55
Support Request: 10
close stale Snapcraft 8.5.0 via Homebrew fails on macOS: craft-archives unconditionally imports python-debian, which the brew formula only installs on Linux. Discussion ended ~20 months ago with the maintainer questioning whether it's a bug in this repo at all.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 65
Confidence: 75
Support Request: 30
keep open Issue reports snapcraft failing on macOS due to missing 'debian' module. Discussion highlights architectural mismatch: Linux-specific dependencies included in macOS Homebrew formula. No maintainer resolution; issue remains open with unresolved dependency conflict.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 65
Confidence: 75
Support Request: 20
needs triage macOS Homebrew installation fails due to unconditional import of Linux-only debian module in craft-archives. Discussion stalled without resolution.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.