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

Yt search not working / output error #1300

Open
galgot opened this issue Dec 3, 2024 · 11 comments
Open

Yt search not working / output error #1300

galgot opened this issue Dec 3, 2024 · 11 comments

Comments

@galgot
Copy link

galgot commented Dec 3, 2024

Hi,
When ever i try a search, I get this error msg :

Error fetching data. Possible network issue.
'NoneType' object is not iterable

This happens with same version 2.12.0 on multiple environments (MacOS and Linux)I have yewtube installed on. For example this --version output is on a Rpi 3b running Debian 10 :

yewtube version : 2.12.0
yt_dlp version : 2023.11.16
Python version : 3.7.3 (default, Mar 23 2024, 16:12:05)
[GCC 8.3.0]
Processor :
Machine type : armv7l
Architecture : 32bit, ELF
Platform : Linux-4.19.66-v7+-armv7l-with-debian-10.13
sys.stdout.enc : UTF-8
default enc : utf-8
Config dir : /home/galgot/.config/mps-youtube
dbus : None
glib : False
env:TERM : xterm
env:SHELL : /bin/bash
env:LANG : fr_FR.UTF-8

And this is on a MacBook Pro running MacOSX 10.11.6, Yewtube installed with Macports :

yewtube version : 2.12.0
yt_dlp version : 2024.11.04
Python version : 3.12.7 (main, Oct 5 2024, 00:33:30) [Clang 8.0.0 (clang-800.0.42.1)]
Processor : i386
Machine type : x86_64
Architecture : 64bit,
Platform : macOS-10.11.6-x86_64-i386-64bit
sys.stdout.enc : utf-8
default enc : utf-8
Config dir : /Users/galgot/.config/mps-youtube
dbus : None
glib : False
env:TERM : xterm
env:SHELL : /bin/bash
env:LANG : fr_FR.UTF-8`

Mplayer is used on all environments.

@galgot galgot changed the title Yt search to working / output error Yt search not working / output error Dec 3, 2024
@galgot
Copy link
Author

galgot commented Dec 5, 2024

Ok, this is strange...
After installing Yewtube, first thing I would do is search for "chopin", it usually gave me a long list of Chopin sonatas stuff.
And I kept that habit, each time after installing Yewtube or upgrading, I would search "chopin"... without thinking of searching something else 🙄... until yesterday.

/chopin

indeed gives :

Error fetching data. Possible network issue.
'NoneType' object is not iterable

But most other searches works fine :D
Tried others searches that would fail, yt doesn't like Bach either :

/bach
Error fetching data. Possible network issue.
'NoneType' object is not iterable

But

/chopin sonata

or

/bach sonata

works fine :)

Anyway, mostly working fine. Sorry for the bother, think this can be closed.

@blahpetr
Copy link

Same issue but my error reads:
Error fetching data. Possible network issue.
post() got an unexpected keyword argument 'proxies'

@ficonni
Copy link

ficonni commented Dec 14, 2024

Same issue but my error reads: Error fetching data. Possible network issue. post() got an unexpected keyword argument 'proxies'

Same here. Fedora 41, installed using pipx. Can't use search at all.

@57r31
Copy link

57r31 commented Dec 16, 2024

alexmercerind/youtube-search-python#140
this helps

@gzqx
Copy link

gzqx commented Dec 16, 2024

Since 0.28 version of httpx, proxy is deprecated. This should be the reason that caused the proxy error.

@efade
Copy link

efade commented Dec 17, 2024

Same issue but my error reads: Error fetching data. Possible network issue. post() got an unexpected keyword argument 'proxies'

Same here. OpenSUSE Tumbleweed. Installed using pipx.

@bclouthier
Copy link

Samesies.

@HaxNet
Copy link

HaxNet commented Dec 28, 2024

Same issue. I uninstalled the regular yewtube and installed the git. same problem.

Update: it works with the #1303. I am using ArchLinux and installed it via AUR. I had to install pipx and then install yewtube through it to make it work.

@terminaldweller
Copy link

yewtube uses youtube-search-python and youtube-search-python is the package using httpx.

@efade
Copy link

efade commented Dec 29, 2024

Same issue but my error reads: Error fetching data. Possible network issue. post() got an unexpected keyword argument 'proxies'

Same here. OpenSUSE Tumbleweed. Installed using pipx.

To everyone who experience the same issue as mine, the solution can be found here
#1303 (comment)

@danideoliv
Copy link

Same issue. I uninstalled the regular yewtube and installed the git. same problem.

Update: it works with the #1303. I am using ArchLinux and installed it via AUR. I had to install pipx and then install yewtube through it to make it work.

Thank you very much, that worked!

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

10 participants