I run:
sudo docker run --network selenium -it -e SELENIUM='http://firefox:4444/wd/hub' -v $(pwd):/app webwhatsapi /bin/bash -c "pip install ./;pip list;python sample/remote.py"
Errors occur:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Processing /app
Requirement already satisfied: python-dateutil>=2.6.0 in /usr/local/lib/python2.7/site-packages (from webwhatsapi==2.0.3) (2.8.0)
Requirement already satisfied: selenium>=3.4.3 in /usr/local/lib/python2.7/site-packages (from webwhatsapi==2.0.3) (3.141.0)
Requirement already satisfied: six>=1.10.0 in /usr/local/lib/python2.7/site-packages (from webwhatsapi==2.0.3) (1.12.0)
Requirement already satisfied: python-axolotl in /usr/local/lib/python2.7/site-packages (from webwhatsapi==2.0.3) (0.2.3)
Requirement already satisfied: cryptography in /usr/local/lib/python2.7/site-packages (from webwhatsapi==2.0.3) (2.7)
Requirement already satisfied: python-magic in /usr/local/lib/python2.7/site-packages (from webwhatsapi==2.0.3) (0.4.15)
Requirement already satisfied: urllib3 in /usr/local/lib/python2.7/site-packages (from selenium>=3.4.3->webwhatsapi==2.0.3) (1.25.3)
Requirement already satisfied: protobuf>=3.0.0.b2 in /usr/local/lib/python2.7/site-packages (from python-axolotl->webwhatsapi==2.0.3) (3.9.0)
Requirement already satisfied: python-axolotl-curve25519>=0.4.1 in /usr/local/lib/python2.7/site-packages (from python-axolotl->webwhatsapi==2.0.3) (0.4.1.post2)
Requirement already satisfied: asn1crypto>=0.21.0 in /usr/local/lib/python2.7/site-packages (from cryptography->webwhatsapi==2.0.3) (0.24.0)
Requirement already satisfied: enum34; python_version < "3" in /usr/local/lib/python2.7/site-packages (from cryptography->webwhatsapi==2.0.3) (1.1.6)
Requirement already satisfied: ipaddress; pythonversion < "3" in /usr/local/lib/python2.7/site-packages (from cryptography->webwhatsapi==2.0.3) (1.0.22)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/local/lib/python2.7/site-packages (from cryptography->webwhatsapi==2.0.3) (1.12.3)
Requirement already satisfied: setuptools in /usr/local/lib/python2.7/site-packages (from protobuf>=3.0.0.b2->python-axolotl->webwhatsapi==2.0.3) (41.0.1)
Requirement already satisfied: pycparser in /usr/local/lib/python2.7/site-packages (from cffi!=1.11.3,>=1.8->cryptography->webwhatsapi==2.0.3) (2.19)
Building wheels for collected packages: webwhatsapi
Building wheel for webwhatsapi (setup.py) ... done
Stored in directory: /tmp/pip-ephem-wheel-cache-xehi6/wheels/4b/1c/59/a69d3cb46a693578104e640ef6e42bbb128292df4586f1cb10
Successfully built webwhatsapi
Installing collected packages: webwhatsapi
Successfully installed webwhatsapi-2.0.3
WARNING: You are using pip version 19.1.1, however version 19.2.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Package Version
asn1crypto 0.24.0
cffi 1.12.3
cryptography 2.7
enum34 1.1.6
ipaddress 1.0.22
numpy 1.16.4
pip 19.1.1
protobuf 3.9.0
pycparser 2.19
python-axolotl 0.2.3
python-axolotl-curve25519 0.4.1.post2
python-dateutil 2.8.0
python-magic 0.4.15
selenium 3.141.0
setuptools 41.0.1
six 1.12.0
typing 3.7.4
urllib3 1.25.3
virtualenv 16.6.1
webwhatsapi 2.0.3
wheel 0.33.4
WARNING: You are using pip version 19.1.1, however version 19.2.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Environment {'LANG': 'C.UTF-8', 'PYTHONIOENCODING': 'UTF-8', 'TERM': 'xterm', 'GPG_KEY': 'C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF', 'PYTHON_VERSION': '2.7.16', 'SHLVL': '1', 'PYTHON_PIPVERSION': '19.1.1', 'HOSTNAME': 'c4fca90515ff', 'SELENIUM': 'http://firefox:4444/wd/hub', 'PWD': '/app', 'PATH': '/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HOME': '/root', '': '/usr/local/bin/python'}
Traceback (most recent call last):
File "sample/remote.py", line 21, in
driver = WhatsAPIDriver(profile=profiledir, client='remote', command_executor=os.environ["SELENIUM"])
File "/usr/local/lib/python2.7/site-packages/webwhatsapi/init.py", line 232, in initextra_params
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 319, in execute
response = self.command_executor.execute(driver_command, params)
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/remote_connection.py", line 374, in execute
return self._request(command_info[0], url, body=data)
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/remote_connection.py", line 402, in _request
resp = http.request(method, url, body=body, headers=headers)
File "/usr/local/lib/python2.7/site-packages/urllib3/request.py", line 72, in request
urlopen_kw)
File "/usr/local/lib/python2.7/site-packages/urllib3/request.py", line 150, in request_encode_body
return self.urlopen(method, url, extra_kw)
File "/usr/local/lib/python2.7/site-packages/urllib3/poolmanager.py", line 326, in urlopen
response = conn.urlopen(method, u.request_uri, kw)
File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 670, in urlopen
response_kw)
File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 670, in urlopen
response_kw)
File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 670, in urlopen
**response_kw)
File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 641, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python2.7/site-packages/urllib3/util/retry.py", line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='firefox', port=4444): Max retries exceeded with url: /wd/hub/session (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f71061e2610>: Failed to establish a new connection: [Errno -2] Name or service not known',))
I run:
sudo docker run --network selenium -it -e SELENIUM='http://firefox:4444/wd/hub' -v $(pwd):/app webwhatsapi /bin/bash -c "pip install ./;pip list;python sample/remote.py"
Errors occur: