Skip to content

executable file flvrec.py not found in $PATH with 1.4.0 #20

Description

@Azquelt

Trying to start the 1.4.0 container, I get this error:

$ podman run docker.io/testcontainers/vnc-recorder:1.4.0
Error: crun: executable file `flvrec.py` not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found

In contrast, 1.3.0 shows me the help message:

$ podman run docker.io/testcontainers/vnc-recorder:1.3.0
/usr/local/bin/flvrec.py 20100207
usage: /usr/local/bin/flvrec.py [-d] [-q] [-o filename] [-r framerate] [-K keyframe] [-e vnc_encoding] [-P vnc_pwdfile] [-N] [-B blocksize] [-C clipping] [-S subprocess] [host[:display] [port]]

Poking around inside the containers,

  • in 1.3.0, flvrec.py is in /usr/local/bin, which is on root's PATH
  • in 1.4.0, flvrec.py is in /root/.local/bin, which isn't on root's PATH
    • looking at /etc/skel/.profile (the template .profile when users are created), $HOME/.local/bin is added to the PATH for any newly created users, but root's .profile doesn't add it
    • this file is actually a symlink to /root/.local/pipx/venvs/vnc2flv3/bin/flvrec.py

So it looked like something changed where doing pipx install now puts the installed scripts in a place which isn't on the PATH for the root user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions