← 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 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.

Suggested action: close stale

Reason: The thread stalled 20 months ago after the maintainer (tigarmo) questioned whether it's a bug in craft-archives at all, suggesting the fix belongs in the external homebrew formula, and the reporter never provided the requested venv reproduction. The affected version (snapcraft 8.5.0, Dec 2024) is long superseded, and the unresolved design question (lazy/optional debian import) can be re-filed against current code if still reproducible. Confidence is moderate because repo tools were unavailable, so I could not verify whether craft-archives still imports debian unconditionally today.

Impact: 30 Quick Win: 16.5 Staleness: 75 Complexity: 45 Confidence: 55 Support Request: 10

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
qwen/qwen3.8-27b
Impact: 30
Quick Win: 16.5
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.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 40
Confidence: 70
Support Request: 30
close stale Snapcraft crashes on macOS due to a missing python-debian dependency from craft-archives. Maintainers debate whether Snapcraft should gracefully skip craft-archives on macOS or if the Homebrew formula should include the dependency. Unresolved.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#4843 snapcraft 8.2.10 build failure snapcraft closed Fixed by updating the Homebrew formula to require craft-parts 1.30.0, resolving the missing unregister API error in snapcraft 8.2.10. Closed.
75%
#1604 Homebrew still on snapcraft 2.33 snapcraft closed Reported outdated Homebrew snapcraft formula. Maintainers closed the issue and redirected the reporter to file the bug on Launchpad, as GitHub is reserved for project management. No fix was implemented here.
70%