質問編集履歴
9
個人情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
File "C:/Users/PycharmProjects/sampleproject2/helloworld3.py", line 12, in <module>
|
28
28
|
|
29
|
-
driver = webdriver.Chrome(executable_path=r"C:\Users\
|
29
|
+
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\chromedriver.exe")
|
30
30
|
|
31
31
|
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__
|
32
32
|
|
8
改善ポイント
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,9 +8,9 @@
|
|
8
8
|
|
9
9
|
[リンク内容](https://qiita.com/nanasaki/items/50528f794e0598969e28)
|
10
10
|
|
11
|
-
です。エラーの内容は、
|
11
|
+
です。エラーの内容は、白い画像が一瞬でてきてすぐに消えるというものです。
|
12
12
|
|
13
|
-
|
13
|
+
chromedriver.exeをフルパスで指定しました。
|
14
14
|
|
15
15
|
|
16
16
|
|
@@ -24,41 +24,31 @@
|
|
24
24
|
|
25
25
|
Traceback (most recent call last):
|
26
26
|
|
27
|
-
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
|
28
|
-
|
29
|
-
stdin=PIPE)
|
30
|
-
|
31
|
-
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 707, in __init__
|
32
|
-
|
33
|
-
restore_signals, start_new_session)
|
34
|
-
|
35
|
-
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 992, in _execute_child
|
36
|
-
|
37
|
-
startupinfo)
|
38
|
-
|
39
|
-
PermissionError: [WinError 5] アクセスが拒否されました。
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
During handling of the above exception, another exception occurred:
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
Traceback (most recent call last):
|
48
|
-
|
49
27
|
File "C:/Users/PycharmProjects/sampleproject2/helloworld3.py", line 12, in <module>
|
50
28
|
|
51
|
-
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\r
|
29
|
+
driver = webdriver.Chrome(executable_path=r"C:\Users\一歩\PycharmProjects\sampleproject2\chromedriver.exe")
|
52
30
|
|
53
|
-
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line
|
31
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__
|
54
32
|
|
55
|
-
sel
|
33
|
+
desired_capabilities=desired_capabilities)
|
56
34
|
|
57
|
-
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\
|
35
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
|
58
36
|
|
59
|
-
|
37
|
+
self.start_session(capabilities, browser_profile)
|
60
38
|
|
39
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
|
40
|
+
|
41
|
+
response = self.execute(Command.NEW_SESSION, parameters)
|
42
|
+
|
43
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
|
44
|
+
|
45
|
+
self.error_handler.check_response(response)
|
46
|
+
|
47
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
|
48
|
+
|
49
|
+
raise exception_class(message, screen, stacktrace)
|
50
|
+
|
61
|
-
selenium.common.exceptions.
|
51
|
+
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 80
|
62
52
|
|
63
53
|
|
64
54
|
|
@@ -94,7 +84,7 @@
|
|
94
84
|
|
95
85
|
]
|
96
86
|
|
97
|
-
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\r
|
87
|
+
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\chromedriver.exe")
|
98
88
|
|
99
89
|
driver.get("https://anime.dmkt-sp.jp/animestore/c_all_pc?initialCollectionKey=1")
|
100
90
|
|
7
改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,6 +10,10 @@
|
|
10
10
|
|
11
11
|
です。エラーの内容は、PermissionErrorというものです。
|
12
12
|
|
13
|
+
Permission Errorを改善するために空のrank.exeというファイルを作成しました。
|
14
|
+
|
15
|
+
|
16
|
+
|
13
17
|
|
14
18
|
|
15
19
|
|
@@ -44,7 +48,7 @@
|
|
44
48
|
|
45
49
|
File "C:/Users/PycharmProjects/sampleproject2/helloworld3.py", line 12, in <module>
|
46
50
|
|
47
|
-
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2")
|
51
|
+
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\rank.exe")
|
48
52
|
|
49
53
|
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
|
50
54
|
|
@@ -54,19 +58,9 @@
|
|
54
58
|
|
55
59
|
os.path.basename(self.path), self.start_error_message)
|
56
60
|
|
57
|
-
selenium.common.exceptions.WebDriverException: Message: '
|
61
|
+
selenium.common.exceptions.WebDriverException: Message: 'rank.exe' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
62
|
+
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
63
|
+
|
68
|
-
|
69
|
-
![イメージ説明](8e12de44a5c45bac15dcedb8ae1dc419.png)
|
70
64
|
|
71
65
|
|
72
66
|
|
@@ -100,7 +94,7 @@
|
|
100
94
|
|
101
95
|
]
|
102
96
|
|
103
|
-
driver = webdriver.Chrome(executable_path="C:\Users\PycharmProjects\sampleproject2")
|
97
|
+
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2\rank.exe")
|
104
98
|
|
105
99
|
driver.get("https://anime.dmkt-sp.jp/animestore/c_all_pc?initialCollectionKey=1")
|
106
100
|
|
6
題名
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Chrome DriverでPermission Errorの改善方法を教えて下さい。
|
test
CHANGED
File without changes
|
5
エラーメッセージ
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,13 +6,11 @@
|
|
6
6
|
|
7
7
|
URLは
|
8
8
|
|
9
|
-
|
10
|
-
|
11
9
|
[リンク内容](https://qiita.com/nanasaki/items/50528f794e0598969e28)
|
12
10
|
|
13
|
-
です。
|
11
|
+
です。エラーの内容は、PermissionErrorというものです。
|
14
|
-
|
15
|
-
|
12
|
+
|
13
|
+
|
16
14
|
|
17
15
|
|
18
16
|
|
@@ -20,7 +18,53 @@
|
|
20
18
|
|
21
19
|
|
22
20
|
|
23
|
-
|
21
|
+
Traceback (most recent call last):
|
22
|
+
|
23
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
|
24
|
+
|
25
|
+
stdin=PIPE)
|
26
|
+
|
27
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 707, in __init__
|
28
|
+
|
29
|
+
restore_signals, start_new_session)
|
30
|
+
|
31
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 992, in _execute_child
|
32
|
+
|
33
|
+
startupinfo)
|
34
|
+
|
35
|
+
PermissionError: [WinError 5] アクセスが拒否されました。
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
During handling of the above exception, another exception occurred:
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
Traceback (most recent call last):
|
44
|
+
|
45
|
+
File "C:/Users/PycharmProjects/sampleproject2/helloworld3.py", line 12, in <module>
|
46
|
+
|
47
|
+
driver = webdriver.Chrome(executable_path=r"C:\Users\PycharmProjects\sampleproject2")
|
48
|
+
|
49
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
|
50
|
+
|
51
|
+
self.service.start()
|
52
|
+
|
53
|
+
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\common\service.py", line 88, in start
|
54
|
+
|
55
|
+
os.path.basename(self.path), self.start_error_message)
|
56
|
+
|
57
|
+
selenium.common.exceptions.WebDriverException: Message: 'sampleproject2' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
Process finished with exit code 1
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
画像
|
24
68
|
|
25
69
|
![イメージ説明](8e12de44a5c45bac15dcedb8ae1dc419.png)
|
26
70
|
|
4
編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
![イメージ説明](
|
25
|
+
![イメージ説明](8e12de44a5c45bac15dcedb8ae1dc419.png)
|
26
26
|
|
27
27
|
|
28
28
|
|
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
]
|
58
58
|
|
59
|
-
driver = webdriver.Chrome(executable_path="chrome
|
59
|
+
driver = webdriver.Chrome(executable_path="C:\Users\PycharmProjects\sampleproject2")
|
60
60
|
|
61
61
|
driver.get("https://anime.dmkt-sp.jp/animestore/c_all_pc?initialCollectionKey=1")
|
62
62
|
|
3
リンクの挿入
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,9 @@
|
|
6
6
|
|
7
7
|
URLは
|
8
8
|
|
9
|
+
|
10
|
+
|
9
|
-
[https://qiita.com/nanasaki/items/50528f794e0598969e28
|
11
|
+
[リンク内容](https://qiita.com/nanasaki/items/50528f794e0598969e28)
|
10
12
|
|
11
13
|
です。どのように改善すればよいか皆目見当がつきません。
|
12
14
|
|
2
リンクの挿入
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,9 @@
|
|
4
4
|
|
5
5
|
して人気ランキングを作るというものです。
|
6
6
|
|
7
|
+
URLは
|
8
|
+
|
7
|
-
|
9
|
+
[https://qiita.com/nanasaki/items/50528f794e0598969e28]
|
8
10
|
|
9
11
|
です。どのように改善すればよいか皆目見当がつきません。
|
10
12
|
|
@@ -154,9 +156,9 @@
|
|
154
156
|
|
155
157
|
|
156
158
|
|
157
|
-
**補足情報**
|
158
159
|
|
159
160
|
|
161
|
+
**補足情報**
|
160
162
|
|
161
163
|
hiragana_listとanime_titleとanime_ranking
|
162
164
|
|
1
助詞
test
CHANGED
File without changes
|
test
CHANGED
@@ -160,4 +160,4 @@
|
|
160
160
|
|
161
161
|
hiragana_listとanime_titleとanime_ranking
|
162
162
|
|
163
|
-
|
163
|
+
のアンダーバーの前に波線がかかっております。
|