Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you help me with this problem? Does windows require different permissions? #1

Open
kshit-ij-getting-real opened this issue May 21, 2020 · 0 comments

Comments

@kshit-ij-getting-real
Copy link

PermissionError Traceback (most recent call last)
in
135 return all_players_df
136
--> 137 df = scrape_europe("")

in scrape_europe(path_to_chromedriver, league_names)
46 chrome_options.add_argument('--disable-dev-shm-usage')
47 # Finds / Downloads ChromeDriver for you
---> 48 browser = webdriver.Chrome(ChromeDriverManager().install())
49
50 # Makes lists out of the arrays

~\Anaconda3\lib\site-packages\webdriver_manager\chrome.py in install(self)
26
27 def install(self):
---> 28 driver_path = self.download_driver(self.driver)
29
30 os.chmod(driver_path, 0o755)

~\Anaconda3\lib\site-packages\webdriver_manager\manager.py in download_driver(self, driver)
41 return cached_path
42
---> 43 path = self.__download_and_save_driver_to_cache(driver, driver_version)
44
45 if is_latest:

~\Anaconda3\lib\site-packages\webdriver_manager\manager.py in __download_and_save_driver_to_cache(self, driver, driver_version)
31 response = download_driver(driver.get_url(driver_version))
32 return self.driver_cache.save_driver_to_cache(response, driver.get_name(), driver_version,
---> 33 driver.get_os_type())
34
35 def download_driver(self, driver):

~\Anaconda3\lib\site-packages\webdriver_manager\driver_cache.py in save_driver_to_cache(self, response, driver_name, version, os_type)
61 file_path = os.path.join(driver_path, filename)
62 write_file(response.content, file_path)
---> 63 files = self.__unpack(file_path)
64 if "win" in os_type:
65 for item in files:

~\Anaconda3\lib\site-packages\webdriver_manager\driver_cache.py in __unpack(self, path, to_directory)
110 to_directory = os.path.dirname(path)
111 if path.endswith(".zip"):
--> 112 return extract_zip(path, to_directory)
113 else:
114 file_list = extract_tar_file(path, to_directory)

~\Anaconda3\lib\site-packages\webdriver_manager\archive.py in extract_zip(zip_file, to_directory)
5 def extract_zip(zip_file, to_directory):
6 archive = zipfile.ZipFile(zip_file)
----> 7 archive.extractall(to_directory)
8 return archive.namelist()
9

~\Anaconda3\lib\zipfile.py in extractall(self, path, members, pwd)
1614
1615 for zipinfo in members:
-> 1616 self._extract_member(zipinfo, path, pwd)
1617
1618 @classmethod

~\Anaconda3\lib\zipfile.py in _extract_member(self, member, targetpath, pwd)
1668
1669 with self.open(member, pwd=pwd) as source,
-> 1670 open(targetpath, "wb") as target:
1671 shutil.copyfileobj(source, target)
1672

PermissionError: [Errno 13] Permission denied: 'C:\Users\Sanjana\.wdm\drivers\chromedriver\81.0.4044.138\win32\chromedriver.exe'

@kshit-ij-getting-real kshit-ij-getting-real changed the title Can you help me with this problem? Can you help me with this problem? Does windows require different permissions? May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant