PermissionError when running check_and_gen.py #420

Closed
opened 2025-10-14 17:24:18 -06:00 by navan · 0 comments
Owner

Originally created by @dkasak on 10/14/2020

I made a virtualenv, activated it and installed GHunt's depedencies using

pip install -r requirements.txt

Then I ran python check_and_gen.py. After entering the required cookies, it reports they seem valid and then the following happens:

Traceback (most recent call last):
File "/home/dkasak/code/projects/GHunt/venv/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 72, in start
    self.process = subprocess.Popen(cmd, env=self.env,
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/home/dkasak/code/projects/GHunt/venv/lib/python3.8/site-packages/chromedriver_autoinstaller-0.2.2.dist-info'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "scripts/check_and_gen.py", line 78, in <module>
    driver = webdriver.Chrome(executable_path=driverpath, seleniumwire_options=options, options=chrome_options)
File "/home/dkasak/code/projects/GHunt/venv/lib/python3.8/site-packages/seleniumwire/webdriver/browser.py", line 86, in __init__
    super().__init__(*args, **kwargs)
File "/home/dkasak/code/projects/GHunt/venv/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
    self.service.start()
File "/home/dkasak/code/projects/GHunt/venv/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 86, in start
    raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver_autoinstaller-0.2.2.dist-info' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
*Originally created by @dkasak on 10/14/2020* I made a virtualenv, activated it and installed GHunt's depedencies using pip install -r requirements.txt Then I ran `python check_and_gen.py`. After entering the required cookies, it reports they seem valid and then the following happens: Traceback (most recent call last): File "/home/dkasak/code/projects/GHunt/venv/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 72, in start self.process = subprocess.Popen(cmd, env=self.env, File "/usr/lib/python3.8/subprocess.py", line 854, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: '/home/dkasak/code/projects/GHunt/venv/lib/python3.8/site-packages/chromedriver_autoinstaller-0.2.2.dist-info' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "scripts/check_and_gen.py", line 78, in <module> driver = webdriver.Chrome(executable_path=driverpath, seleniumwire_options=options, options=chrome_options) File "/home/dkasak/code/projects/GHunt/venv/lib/python3.8/site-packages/seleniumwire/webdriver/browser.py", line 86, in __init__ super().__init__(*args, **kwargs) File "/home/dkasak/code/projects/GHunt/venv/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__ self.service.start() File "/home/dkasak/code/projects/GHunt/venv/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 86, in start raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'chromedriver_autoinstaller-0.2.2.dist-info' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Sign in to join this conversation.
No labels
backdoor-try
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
can't read
can't read
can't read
can't read
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
good first issue
google-patch
google-patch
hacktoberfest-accepted
hacktoberfest-accepted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
knowledge-enrichment
known bug
question
question
question
question
question
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
stale
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
third party bug
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/GHunt#420
No description provided.