question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PermissionError: [WinError 5] Access is denied

See original GitHub issue

Taking a shot in the dark here and hoping someone can point me in the right direction as to why I’m getting this error. I have used this same script in the past without issue so I’m completely lost as to what happened. Any help/suggestions would be greatly appreciated.

from requests_html import HTMLSession

link = 'https://www.denvergov.org/property/realproperty/summary/160820474'
session = HTMLSession()
url = session.get(link)
print(url)

<Response [200]>

url.html.render()

Traceback (most recent call last):
  File "C:/Users/Nick/gfddfsf.py", line 9, in <module>
    url.html.render()
  File "C:\Users\Nick\lib\site-packages\requests_html.py", line 572, in render
    self.session.browser  # Automatycally create a event loop and browser
  File "C:\Users\Nick\lib\site-packages\requests_html.py", line 680, in browser
    self._browser = self.loop.run_until_complete(pyppeteer.launch(headless=True, args=['--no-sandbox']))
  File "C:\Users\Nick\lib\asyncio\base_events.py", line 467, in run_until_complete
    return future.result()
  File "C:\Users\Nick\lib\site-packages\pyppeteer\launcher.py", line 311, in launch
    return await Launcher(options, **kwargs).launch()
  File "C:\Users\Nick\lib\site-packages\pyppeteer\launcher.py", line 169, in launch
    **options,
  File "C:\Users\Nick\lib\subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "C:\Users\Nick\lib\subprocess.py", line 997, in _execute_child
    startupinfo)
PermissionError: [WinError 5] Access is denied

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:21 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
ghostcommented, Apr 21, 2020

Having the same issue, with python 3.8 anyone. Have already tried all the above still not working

3reactions
ADVEngrcommented, May 1, 2020

I recently faced a similar issue. In my case it was similar to the OP’s issue with subprocess.py and PermissionError: [WinError 5] Access is denied.

The displayed error is very misleading, but in my case there was an executable required for a subprocess, and I had only specified the directory containing the executable. Completing the path the the executable solved the issue.

Now that I have it solved, I understand the Permission Error description (the script can’t access the required executable) but that was not obvious to me when first debugging.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[WinError 5] Access is denied python using moviepy to write ...
Sometimes it occurs when some installations are not completed correctly, the process is stuck, or a file is still opened. So, when you...
Read more >
Permissionerror: Winerror 5 access is denied [Fixed Completely]
The main reason behind the error of access denial is that you are only allowed to run programs and not directories. This error...
Read more >
Instantly Fix Permissionerror Winerror 5 Access Is Denied
Sometimes “permission error Winerror 5 access is denied” can occur when there are some faults with the working directory path. If you are...
Read more >
PermissionError: [WinError 5] Access is Denied (Fixed)
All over the world, Python developers deal with the permissionerror: [winerror 5] access is denied on a regular basis. Usually, this error occurs...
Read more >
WinError 5 PermissionError on Windows 10 - Google Groups
The problem is, I keep getting error PermissionError: [WinError 5] Access is denied: 'from implementing image_to_data and image_to_string in Windows 10.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found