Skip to content

Hook scripts should use venv python in it's hooks #545

@semide

Description

@semide

What happened?

Installed on a Mac/Tahoe system using pipx. Failed to run because newer python (3.14) threw errors with database. Downgraded to 3.13, installed correctly. Ran set up and initial tests. Configured Claude CLI and had ran specifying path to older python. Hooks failed due to incorrect path call.

What did you expect?
Once installed, hooks work normally

How to reproduce:

  1. Install via pipx,
  2. Workaround database call not working correctly by installing using older python
  3. complete install
  4. configure in Claude
  5. See Hook errors, ask Claude to fix, it succeeds and says: Fixed. Both hook scripts were using bare python3 (which resolves to Python 3.14), but mempalace is installed in a pipx venv
    under Python 3.13. Updated both hooks to use the explicit pipx path:
    /Users/xxxxxxxxxxxxxxx/.local/pipx/venvs/mempalace/bin/python3.13.

Environment:

  • OS: Mac Tahoe
  • Python version: 3.13
  • MemPal version: mempalace 3.1.0, installed using Python 3.13.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/hooksClaude Code hook scripts (Stop, PreCompact, SessionStart)area/installpip/uv/pipx/plugin install and packagingbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions