質問編集履歴

1

補足情報を更新しました。

2020/04/14 08:32

投稿

azy
azy

スコア4

test CHANGED
File without changes
test CHANGED
@@ -54,12 +54,58 @@
54
54
 
55
55
 
56
56
 
57
+ #エラーメッセージ
58
+
59
+ /home/ec2-user/.pyenv/versions/3.6.5/lib/python3.6/site-packages/selenium/webdriver/phantomjs/webdriver.py:49: UserWarning: Selenium support for PhantomJS has been deprecated, please use headless versions of Chrome or Firefox instead
60
+
61
+ warnings.warn('Selenium support for PhantomJS has been deprecated, please use headless '
62
+
63
+ Traceback (most recent call last):
64
+
65
+ File "/home/ec2-user/.pyenv/versions/3.6.5/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 76, in start
66
+
67
+ stdin=PIPE)
68
+
69
+ File "/home/ec2-user/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 709, in __init__
70
+
71
+ restore_signals, start_new_session)
72
+
73
+ File "/home/ec2-user/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 1344, in _execute_child
74
+
75
+ raise child_exception_type(errno_num, err_msg, err_filename)
76
+
77
+ FileNotFoundError: [Errno 2] No such file or directory: 'phantomjs': 'phantomjs'
78
+
79
+
80
+
81
+ During handling of the above exception, another exception occurred:
82
+
83
+
84
+
85
+ Traceback (most recent call last):
86
+
87
+ File "trendAnalytics.py", line 22, in <module>
88
+
89
+ browser=webdriver.PhantomJS()
90
+
91
+ File "/home/ec2-user/.pyenv/versions/3.6.5/lib/python3.6/site-packages/selenium/webdriver/phantomjs/webdriver.py", line 56, in __init__
92
+
93
+ self.service.start()
94
+
95
+ File "/home/ec2-user/.pyenv/versions/3.6.5/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 83, in start
96
+
97
+ os.path.basename(self.path), self.start_error_message)
98
+
99
+ selenium.common.exceptions.WebDriverException: Message: 'phantomjs' executable needs to be in PATH.
100
+
101
+
102
+
57
103
 
58
104
 
59
105
  ### 補足情報(FW/ツールのバージョンなど)
60
106
 
61
- clound9上で実行しています。
107
+ clound9上で実行しています。(Linuxサーバー)
62
108
 
63
- Windows10です。
109
+ PCのOSはWindows10です。
64
110
 
65
111
  ここにより詳細な情報を記載してください。