8000 Does not install to /usr/bin on Raspberry Pi · Issue #24 · fabytm/Outage-Detector · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Does not install to /usr/bin on Raspberry Pi  #24
Open
@nicholasgcotton

Description

@nicholasgcotton

On Raspberry Pi (Debian Bullseye) using pip3 install method the script ends up in /home/[username]/.local/bin/outage_detector and NOT /usr/bin, as a result the crontab settings fail.

Using "crontab -e" to manually change the path for the outage_detector script resolves the issue.

Apologies I don't know enough to figure out how to fix this in python, but I guess you need to add a sanity check for where pip3 defaults to in Bullseye?

I have recreated this issue (and fixed it) on both a Raspberry Pi 4 and a Raspberry Pi 0 W using the most recent (as of this week) Raspberian Bullseye image.

(It's also necessary to add /home/[username]/.local/bin/outage_detector to the $PATH variable to be able to call it from another directory, but I'm not sure that's an issue so much as just how things work when they're installed to that location. I fixed it by adding "PATH=$PATH:/home/[username]/.local/bin/outage_detector" to the .bashrc startup config.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0