requests-html
requests-html copied to clipboard
render() not working on Mac and Linux
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
for soure you dont read the README.. only works in python 3.6 ... a rule in linux word is read the files..
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