-
Notifications
You must be signed in to change notification settings - Fork 209
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
error: externally-managed-environment: This environment is externally managed #2201
Comments
Seems to be related to upgrade of your system: https://stackoverflow.com/questions/75602063/pip-install-r-requirements-txt-is-failing-this-environment-is-externally-manag |
I did have bazarr working before 1.2.3 . the system started as Debian 12 when I initially installed bazarr . at that point I had to do these
|
Bazarr 1.2.3 have a new requirement. It's been a long time since we added one so it's normal. Now, you operating system tell to Python to refuse to install requirements without using a venv. The other solution is to delete the file that instruct Python to refuse installation of requirements as instructed in the link I provided. |
Okay I'll check the link and try to undo the venv stuff later on. Also /opt/bazarr//requirements.txt on both systems is identical . |
In v1.2.3, requirements.txt looks like that: https://github.com/morpheus65535/bazarr/blob/master/requirements.txt |
Okay I adjusted this line in requrements.txt , the rest were the same. still same error on startup using . I can work on eliminating the venv setup in the evening or tomorrow. will need to research how to undo it... |
You don't need to eliminate the venv, you must use it or disable PEP-668 by deleting the |
Anything else to fix here? |
Hello, regarding: |
No news, good news! |
This is what I had to do on Debian 12.
I hope this helps others. References: |
For some reason, my .venv folder disappears when I restart the server and I have to recreate it again. Any clues as to why? |
Restart the bazarr app or your entire server? Where is your |
Followed your instructions, so it's inside the /opt/bazarr/ folder. And restart computer not just the app. |
Try creating a file in |
@imthenachoman I did this very thing for sabnzbd a few days ago and it worked fine. I have tried and re-tried it for bazarr but keep getting |
@bmorgan99 if you expect a fix on our side, you'll wait endlessly. There's nothing to fix on our side. The fix is disable the "safe guard" imposed by your operating system or use a venv. |
@morpheus65535 I'm not very familiar with all this but shouldn't Bazarr be updated to do what it needs to do to work with Python's safeguards? |
@imthenachoman I agree, you're not very familiar with this. This isn't a Python safeguard, it an operating system requested feature that Python decided to honour. Python doesn't need that, the user is responsible to make sure the requirements have been installed or that Bazarr is able to do it by itself (by running the same pip command a user would have done). Bazarr can't alter your operating system configuration by itself, you must allow it do what it need. |
@morpheus65535 Ah. So this is a Debian thing. Got it. Thank you. Then, I think it would be nice/kind if the Bazaar instructions included help/steps on what the end-user needs to do to get Bazarr to work on OSes that have this setting set. I understand if that's not possible as developers are busy but I think it would be kind/helpful. |
@imthenachoman I agree, it would be nice and I'll happily accept a PR to the wiki page clarifying the required step. |
Cool. Hopefully someone is able to do that. I’m still not convinced what I did was the best approach. Thanks again! |
For me, the fix was chown -R pi:pi /opt/bazarr for the install, then bazarr:bazarr after. |
Describe the bug
All I have is the output from trying to start bazarr :
To Reproduce
Steps to reproduce the behavior:
Software (please complete the following information):
Bazarr: 1.2.3
OS: Debian 12
Notes:
I checked the requirements.txt file for 1.2.2 and 1.2.3 and they are the same.
I have a test system set up and running in order to do any tests you may want .
Let me know if there is more info wanted or testing to try to fix.
thank you for this software.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: