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

dependency issues - urllib3 #3343

Open
alanialgor opened this issue Jul 6, 2024 · 10 comments
Open

dependency issues - urllib3 #3343

alanialgor opened this issue Jul 6, 2024 · 10 comments

Comments

@alanialgor
Copy link

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

@alanialgor
Copy link
Author

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

@uniquePWD
Copy link

The problem stems from an outdated Python package. What version is the FreeBSD package?

@alanialgor
Copy link
Author

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

@uniquePWD
Copy link

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.

@alanialgor
Copy link
Author

alanialgor commented Jul 8, 2024

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

@alanialgor
Copy link
Author

alanialgor commented Jul 8, 2024

whoops
i put a hashtag to represent the command prompt and it made it all bold and shite. sorry didn't know

fixed

@uniquePWD
Copy link

So it's still throwing the same Python error or a different one now?

@alanialgor
Copy link
Author

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

@alanialgor
Copy link
Author

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 ""

@uniquePWD
Copy link

Could it be again that it's being overly specific?

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

No branches or pull requests

2 participants