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

Works on PC, not on Server #6

Open
jontobonto opened this issue Oct 31, 2020 · 11 comments
Open

Works on PC, not on Server #6

jontobonto opened this issue Oct 31, 2020 · 11 comments

Comments

@jontobonto
Copy link

I need this for my Discord Bot so I can create a lyrics command, the code works when I use it on my pc but in the command, it does not work as expected. Always raises

lyrics_extractor.lyrics.LyricScraperException: {'error': 'No results found'}

@jontobonto
Copy link
Author

not just in the command just everywhere on server, in shell, as a script or in command

@Techcatchers
Copy link
Owner

Techcatchers commented Nov 1, 2020 via email

@jontobonto
Copy link
Author

jontobonto commented Nov 1, 2020

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/xino/cogs/meta.py", line 398, in lyrics
    data = extract_lyrics.get_lyrics(song)
  File "/usr/local/lib/python3.8/dist-packages/lyrics_extractor/lyrics.py", line 195, in get_lyrics
    raise LyricScraperException({"error": "No results found"})
lyrics_extractor.lyrics.LyricScraperException: {'error': 'No results found'}```

@jontobonto
Copy link
Author

or do you mean the code i'm using?

btw, server is running linux ubuntu 20.04

@Techcatchers
Copy link
Owner

Techcatchers commented Nov 1, 2020 via email

@jontobonto
Copy link
Author

I followed the steps and it is working on my local pc but not on my server, I also tried on other servers too
I tried about 5 names and every worked on pc, no one on any server

@Techcatchers
Copy link
Owner

Techcatchers commented Nov 2, 2020 via email

@jontobonto
Copy link
Author

jontobonto commented Nov 2, 2020

I checked both parser & dependencies, everything is installed.
Also tried to install lxml, its up2date as well
image
sadly still not working

@Techcatchers
Copy link
Owner

Techcatchers commented Nov 2, 2020 via email

@jontobonto
Copy link
Author

okay, i'll do
Thank you :)

@ghost
Copy link

ghost commented Apr 27, 2021

Probably too late to answer but according to my research this happens when you use genius to extract lyrics in vps. Genius has some verification or something which makes it unusable in vps most likely.

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