requests-html icon indicating copy to clipboard operation
requests-html copied to clipboard

render() not working on Mac and Linux

Open ghoxt007 opened this issue 3 years ago • 2 comments

render() not working, code hangs when it gets to the render().

so i used hanging thread to see what the issue was and i got this output

---------- Thread 4375182656 "MainThread" hangs   ----------
        File "/Users/Documents/pythonfile.py", line 14, in <module>
                r.html.render()
        File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/requests_html.py", line 586, in render
                self.browser = self.session.browser  # Automatically create a event loop and browser
        File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/requests_html.py", line 730, in browser
                self._browser = self.loop.run_until_complete(super().browser)
        File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 628, in run_until_complete
                self.run_forever()
        File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 595, in run_forever
                self._run_once()
        File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 1845, in _run_once
                event_list = self._selector.select(timeout)
        File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/selectors.py", line 562, in select
                kev_list = self._selector.control(None, max_ev, timeout)

i really dont understand this because i'm a newbie

ghoxt007 avatar Jan 09 '22 17:01 ghoxt007

for soure you dont read the README.. only works in python 3.6 ... a rule in linux word is read the files..

mckaygerhard avatar Apr 10 '22 22:04 mckaygerhard

by the way you can install an alternate python 3.6 and use it as only environemnt withour touch the system's python default install

mckaygerhard avatar Apr 10 '22 22:04 mckaygerhard