From 4e84466d38652a17b939fdd8cadd69363f4c9b47 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Mon, 16 Mar 2026 08:41:53 -0400 Subject: [PATCH] fix(install): inject setuptools into pipx venv to fix pkg_resources import crash (v0.2.14) pipx can omit setuptools at runtime even when listed as a dependency, causing onionshare-cli to crash on `from pkg_resources import resource_filename`. Add explicit `pipx inject` after install and ensure setuptools is in deps. Co-Authored-By: Claude Opus 4.6 --- install.sh | 3 +++ pyproject.toml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 31306ce..92e1ffd 100755 --- a/install.sh +++ b/install.sh @@ -156,6 +156,9 @@ fi if command_exists pipx; then msg "Falling back to pipx installation (this may take a few minutes)..." if pipx install --force 'voxvera@git+https://github.com/PR0M3TH3AN/VoxVera.git@main'; then + # Ensure setuptools (pkg_resources) is available in the venv — pipx can + # sometimes skip it if the resolver thinks the build-system copy suffices. + pipx inject voxvera setuptools 2>/dev/null || true pipx ensurepath --force msg "\nVoxVera installed/updated successfully via pipx." msg "IMPORTANT: Please restart your terminal or run 'source ~/.bashrc' (or your shell config) to use 'voxvera'." diff --git a/pyproject.toml b/pyproject.toml index 5039176..5b48a1f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ voxvera = ["templates/**", "src/**", "resources/**", "locales/**", "resources/bi [project] name = "voxvera" -version = "0.2.13" +version = "0.2.14" description = "VoxVera CLI utilities" readme = "README.md" authors = [{name = "VoxVera"}] @@ -29,6 +29,7 @@ dependencies = [ "pypdf", "wcwidth", "onionshare-cli", + "setuptools", "flask<2.3.0", "werkzeug<3.0.0", ]