'Requests_html render() returning WinError 14001 on VSCode

I'm working on a web scraping project using Python. I'm using the requests_html library. My problem is identical to one that someone else had . When I run

r.html.render()

I get an error that says

OSError: [WinError 14001] The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail`. 

On the other thread I linked, someone said that the issue is with chromium and that I should reinstall requests & Python. I did a reinstallation of Python (both from VSCode and from the Python website) as well as reinstalling requests. However, I am still receiving this error when trying to run my code. Does anyone have any advice on what I can do?



Solution 1:[1]

Go to command prompt as admin and run sxstrace.exe.

sxstrace.exe Trace -logfile:tracefile.etl

run your program until error occurs then go to the cmd window and press Enter key. Then run

sxstrace.exe Parse -logfile:tracefile.etl -outfile:tracefile.txt

this will output a file into your System32 directory. Find it and post contents of the .txt file here. It should contain information on what is wrong.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 RGB K