-
Notifications
You must be signed in to change notification settings - Fork 661
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
Why do the installation instructions encourage "sudo pip install" #3066
Comments
motionEye has a low number of dependencies without any specific version requirements. So IMO a venv/virtualenv does not add any benefit. If anyone is running into any conflicts with the system-wide installation, I would be interested to know, since it must be a very rare and special case. However, you are right that Python generally moves towards venv only, recet Debian and Ubuntu install flag files with their distro packages which prevent Please open a PR for the readme, if someone finds time. Also the install tests should be updated accordingly. |
I dunno if I agree with the "does not add any benefits" because my friend did run into conflicts. I'll have a look at it when I can, but I'm going to try zoneminder with that setup instead. There has to be a better way to install it. But I thought that we got over that "sudo pip install" thing years ago, almost nobody does that anymore. |
Did you even read the second half of my comment? |
You're taking about the |
No, that is still prevented on Debian and Ubuntu. This part of my comment is what I mean:
It is one more package |
I'll have to have a good read of the code first to get an understanding of the installation, it looks like motioneye_init.py invokes a shell script which makes me wonder what the point of that is and why not just run the shell script directly. But there may have been a reason. Makes me wonder "who not just |
Here is the shell script and systemd unit: https://github.com/motioneye-project/motioneye/tree/dev/motioneye/extra I was wondering as well what the Python script purpose is. At least it is installed into PATH. However now it comes in handy, since it assures the shell script is executed within the venv, so that we can know the location of The Makefile is for localization only. It is indeed misleading there. I already wanted to move it into the l10n dir. But workflows need to be adjusted as well then. |
First of all, I personally don't run this project (I run a zoneminder installation), but I am a Python developer and a friend came across it and installed it.
I was a bit shocked to see "sudo pip install" instructions, especially because that is going away in future versions of pip.
https://stackoverflow.com/questions/61452582/why-is-using-sudo-pip-a-bad-idea
https://pages.charlesreid1.com/dont-sudo-pip/
Why are we encouraging this sort of installation? Why can't we recommend users to create a virtualenv instead and teach good practices?
I don't want to come across negative, but "sudo pip install" is always a bad idea.
The text was updated successfully, but these errors were encountered: