Open hiroyuki-sato opened 3 months ago
Hello, team
pytest-xdist==1.15.0 can't install with error.
pytest-xdist==1.15.0
( cd RDM-osf.io ; docker build -t rdm-osf . )
write docker-compose.override.yml
docker-compose.override.yml
services: requirements: image: rdm-osf
Execute
docker-compose up requirements
dist==1.15.0 requirements-1 | Using cached pytest-xdist-1.15.0.tar.gz (87 kB) requirements-1 | ERROR: Command errored out with exit status 1: requirements-1 | File "/usr/lib/python3.6/urllib/request.py", line 1318, in do_open requirements-1 | encode_chunked=req.has_header('Transfer-encoding')) requirements-1 | File "/usr/lib/python3.6/http/client.py", line 1254, in request requirements-1 | self._send_request(method, url, body, headers, encode_chunked) requirements-1 | File "/usr/lib/python3.6/http/client.py", line 1300, in _send_request requirements-1 | self.endheaders(body, encode_chunked=encode_chunked) requirements-1 | File "/usr/lib/python3.6/http/client.py", line 1249, in endheaders requirements-1 | self._send_output(message_body, encode_chunked=encode_chunked) requirements-1 | File "/usr/lib/python3.6/http/client.py", line 1036, in _send_output requirements-1 | self.send(msg) requirements-1 | File "/usr/lib/python3.6/http/client.py", line 974, in send requirements-1 | self.connect() requirements-1 | File "/usr/lib/python3.6/site-packages/setuptools/ssl_support.py", line 174, in connect requirements-1 | (self.host, self.port), getattr(self, 'source_address', None) requirements-1 | File "/usr/lib/python3.6/socket.py", line 724, in create_connection requirements-1 | raise err requirements-1 | File "/usr/lib/python3.6/socket.py", line 713, in create_connection requirements-1 | sock.connect(sa) requirements-1 | OSError: [Errno 101] Network unreachable requirements-1 | requirements-1 | During handling of the above exception, another exception occurred: requirements-1 | requirements-1 | Traceback (most recent call last): requirements-1 | File "/usr/lib/python3.6/site-packages/setuptools/package_index.py", line 766, in open_url requirements-1 | return open_with_auth(url, self.opener) requirements-1 | File "/usr/lib/python3.6/site-packages/setuptools/package_index.py", line 961, in _socket_timeout requirements-1 | return func(*args, **kwargs) requirements-1 | File "/usr/lib/python3.6/site-packages/setuptools/package_index.py", line 1079, in open_with_auth requirements-1 | fp = opener(request) requirements-1 | File "/usr/lib/python3.6/urllib/request.py", line 526, in open requirements-1 | response = self._open(req, data) requirements-1 | File "/usr/lib/python3.6/urllib/request.py", line 544, in _open requirements-1 | '_open', req) requirements-1 | File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain requirements-1 | result = func(*args) requirements-1 | File "/usr/lib/python3.6/site-packages/setuptools/ssl_support.py", line 161, in https_open requirements-1 | lambda host, **kw: VerifyingHTTPSConn(host, self.ca_bundle, **kw), req requirements-1 | File "/usr/lib/python3.6/urllib/request.py", line 1320, in do_open requirements-1 | raise URLError(err) requirements-1 | urllib.error.URLError: <urlopen error [Errno 101] Network unreachable> requirements-1 | requirements-1 | During handling of the above exception, another exception occurred: requirements-1 | requirements-1 | Traceback (most recent call last): requirements-1 | File "<string>", line 1, in <module> requirements-1 | File "/tmp/pip-install-w8190za7/pytest-xdist_5506c84a114f4fe1a1ba3a3594e9dd86/setup.py", line 37, in <module> requirements-1 | 'Programming Language :: Python :: 3', requirements-1 | File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 142, in setup requirements-1 | _install_setup_requires(attrs) requirements-1 | File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 137, in _install_setup_requires requirements-1 | dist.fetch_build_eggs(dist.setup_requires) requirements-1 | File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 653, in fetch_build_egg requirements-1 | return cmd.easy_install(req) requirements-1 | File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 667, in easy_install requirements-1 | not self.always_copy, self.local_index requirements-1 | File "/usr/lib/python3.6/site-packages/setuptools/package_index.py", line 655, in fetch_distribution requirements-1 | dist = find(requirement) requirements-1 | File "/usr/lib/python3.6/site-packages/setuptools/package_index.py", line 635, in find requirements-1 | loc = self.download(dist.location, tmpdir) requirements-1 | File "/usr/lib/python3.6/site-packages/setuptools/package_index.py", line 579, in download
Upgrade setuptools
setuptools
diff --git a/docker-compose.yml b/docker-compose.yml index cff0bf911f..d528fffbf1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -399,7 +399,8 @@ services: command: - /bin/bash - -c - - invoke requirements --all && + - pip install --upgrade setuptools && + invoke requirements --all && (python3 -m compileall /usr/lib/python3.6 || true) && rm -Rf /python3.6/* && cp -Rf -p /usr/lib/python3.6 /
Hello, team
Overview
pytest-xdist==1.15.0
can't install with error.Environments
( cd RDM-osf.io ; docker build -t rdm-osf . )
Reproduce steps
write
docker-compose.override.yml
Execute
Error
Workaround
Upgrade
setuptools