Receiving the following error when running Selenium via Flask/Python
browser = webdriver.Firefox()
[Wed Mar 07 03:02:27.719608 2018] [:error] [pid 21555] [c
If you are running your test from a cmd shell in Windows, something to try is to verify your user privileges are at an admin level if you are using a Windows machine. Go to your cmd.exe application "C:\Windows\System32\cmd.exe". Right-click on the cmd.exe icon and see if you have an option for "Elevate!" and click on it. This will open up the cmd shell with admin privileges and should allow the geckodriver to create the log file. Try executing your code in the cmd shell and see if it works.
Another option is to try running the application as Administrator by going to C:\Windows\System32\cmd.exe, right-click, and select "Run as administrator".