Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: apprise install after bookworm update #137

Merged
merged 2 commits into from
Sep 6, 2023
Merged

Conversation

k3rnelpan1c-dev
Copy link
Owner

This PR aims to fix the Apprise install after the move to Bookworm (Debian 12).
With Debian 12 comes Python 3.11 and PEP-668, which means that installing Debian's Python system package has the "externally managed environments" set.

There are basically 2 paths to circumvent this causing errors:

  • utilise pip's --break-system-packages flag (keeps the old behaviour how I installed apprise)
  • use a venv as PEP-668 intents to nag you to do.

I attempted the latter, however, since I never really worked with venv nor claim to be a python crack in general I was unable to get it to work within the limited time I had available to invest in this update.
Similarly, I had no luck with attempting to use pipx, which abstracts away the venv for you, but then fails to make apprise available system wide.
Finally, I opted to use the --break-system-packages flag, as the impact of installing apprise is foreseeable and we live within a container anyway.

If anyone finds this PR and wants to contribute a pipx solution I would be interested, but in the mean time this will do.

@k3rnelpan1c-dev k3rnelpan1c-dev added the bug Something isn't working label Sep 6, 2023
@k3rnelpan1c-dev k3rnelpan1c-dev merged commit 8a9f443 into main Sep 6, 2023
@k3rnelpan1c-dev k3rnelpan1c-dev deleted the fix/node-20 branch September 24, 2023 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant