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

Arch aarch64 systemd fix #3005

Closed
letkan opened this issue Jun 10, 2024 · 4 comments · Fixed by #3011
Closed

Arch aarch64 systemd fix #3005

letkan opened this issue Jun 10, 2024 · 4 comments · Fixed by #3011

Comments

@letkan
Copy link

letkan commented Jun 10, 2024

So I'm running MotionEye on Arch aarch64 and it's been installed from git as per instructions. All is well except
/etc/systemd/system/motioneye.service which points to /usr/local/bin/meyectl instead of /usr/bin/meyectl where it's been actually installed.
Might be just a distribution specific issue, I don't know.

@MichaIng
Copy link
Member

Arch Linux is installing pip packages to /usr instead of /usr/local? All distros I use consequently use /usr/local, and keep /usr for their distribution package manager exclusively.

We can do which meyectl or command -v meyectl to detect the effective executable location, so not a big issue. I am just surprised.

@letkan
Copy link
Author

letkan commented Jun 10, 2024

Arch Linux is installing pip packages to /usr instead of /usr/local? All distros I use consequently use /usr/local, and keep /usr for their distribution package manager exclusively.

Yes, /usr/

We can do which meyectl or command -v meyectl to detect the effective executable location, so not a big issue. I am just surprised.

@MichaIng MichaIng added the bug label Jun 10, 2024
@MichaIng MichaIng added this to the v0.43.1 milestone Jun 10, 2024
MichaIng added a commit that referenced this issue Jun 17, 2024
On Arch Linux, pip seems to not install Python modules/executables to /usr/local/bin but /usr/bin instead. In such cases, search the meyectl path in PATH and adjust the systemd service. Print an error if it could not be found at all.

Fixes: #3005

Signed-off-by: MichaIng <[email protected]>
@MichaIng MichaIng linked a pull request Jun 17, 2024 that will close this issue
@MichaIng
Copy link
Member

PR up: #3011

Does it work when you run motioneye_init with this branch?

sudo python3 -m pip install --upgrade --force-reinstall --no-deps 'https://github.com/motioneye-project/motioneye/archive/arch.tar.gz'
sudo motioneye_init

MichaIng added a commit that referenced this issue Oct 29, 2024
On Arch Linux, pip seems to not install Python modules/executables to /usr/local/bin but /usr/bin instead. In such cases, search the meyectl path in PATH and adjust the systemd service. Print an error if it could not be found at all.

Fixes: #3005

Signed-off-by: MichaIng <[email protected]>
@MichaIng
Copy link
Member

Fixed for next release/beta iteration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants