Search code examples
djangopython-requests-html

Warning - Certain functionality requires requests_html, which is not installed


when I run my django server everything works fine. However right before the normal prompt that comes from running the server, I get this message

Warning - Certain functionality
             requires requests_html, which is not installed.

             Install using:
             pip install requests_html

             After installation, you may have to restart your Python session.
Warning - Certain functionality
             requires requests_html, which is not installed.

             Install using:
             pip install requests_html

             After installation, you may have to restart your Python session.

And then my django server goes on and runs fine. I'm worried that when I deploy my website this error will be a problem. Btw I know where this is coming from. I'm using yahoo_fin and requests_html is a dependency, however I'm not using and won't use the yahoo_fin methods that require this dependency, so I guess what I'm asking is for a way to ignore this random Warning.

I've tried installing the requests_html library but I still get the same error, even after I restart my Python session like the message says.


Solution

  • I have had the same issue, I solved it with :

    pip install lxml[html_clean]