Open alanialgor opened 2 weeks ago
and I get this after I try to run it. service headphones status /usr/local/etc/rc.d/headphones: WARNING: $command_interpreter /usr/local/bin/python3.9 != python ugh
The problem stems from an outdated Python package. What version is the FreeBSD package?
Hi there, I hope this is what you were wanting to know. Let me know if there is something different you needed. Today i was gonna try the other FreeBSD init script.the one that uses wget.
I grabbed the latest headphones from GIT
freebsd-version 13.3-RELEASE-p3 pkg info python python-3.9_3,2 Name : python Version : 3.9_3,2
pkg info python27 python27-2.7.18_3 Name : python27 Version : 2.7.18_3
pip list urllib3 2.2.2 chardet 5.2.0 charset-normalizer 3.3.2
Thank you
I don't nor have ever run FreeBSD, but it looks like your it's trying to use the Python 27. Maybe try to remove that since it's 14 years old.
Yeah I can try and remove Python 2.7. I hope the other stuff doesn't need. it. haha. In FreeBSD much like linux you can have several version and just link to whichever one you need to use. so /usr/bin/python is currently linked to /usr/local/bin/python3.9 "# which python" "# /usr/bin/python" "# python --version" "# python 3.9.18"
In my version of Linux Fedora, I use alternatives to do the same thing
and in the script you can point the command interpreter to whichever version of python u need. such as command_interpreter="/usr/local/bin/python3.9"
but it still doesn't start up the daemon correctly. Sabnzbd starts up with this command interpreter 3.9 no issues.
banging my head.
Cheers
whoops
i put a hashtag to represent the command prompt and it made it all bold and shite. sorry didn't know
fixed
So it's still throwing the same Python error or a different one now?
So it's still throwing the same Python error or a different one now?
"# service headphones start" /usr/local/etc/rc.d/headphones: WARNING: $command_interpreter /usr/local/bin/python3.9 != python Starting headphones. /usr/local/headphones/lib/requests/init.py:102: RequestsDependencyWarning: urllib3 (1.26.8) or chardet (5.2.0)/charset_normalizer (2.0.10) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported " PID file '/var/run/headphones/headphones.pid' already exists. Exiting. /usr/local/etc/rc.d/headphones: WARNING: failed to start headphones
Hi, In the init script that is generally the default one, one that doesn't use wget, I changed the interpreter value to just "python". vs "/usr/local/bin/python" or "/usr/local/bin/python3.9" or "/usr/bin/python" seems to not complain that python isn't python. sheesh NEW change "command_interpreter="python"" works for now.
now I have to figure out the issues with
"/usr/local/headphones/lib/requests/init.py:102: RequestsDependencyWarning: urllib3 (1.26.8) or chardet (5.2.0)/charset_normalizer (2.0.10) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported ""
Could it be again that it's being overly specific?
Hi, I have no idea what's going on. I had Headphones running on a older version of Freebsd ( jail ) then upgraded everything and this is the only script I can't seem to get running now.
When starting the service I get this error Starting headphones. /usr/local/headphones/lib/requests/init.py:102: RequestsDependencyWarning: urllib3 (1.26.8) or chardet (5.2.0)/charset_normalizer (2.0.10) doesn't match a supported version!
Looking for some help if someone can assist.
thanks