Closed joeflack4 closed 3 years ago
When deploying locally, even on master, deploy fails at 'pipenv lock' stage
master
Short err
119.9 error in tabletext setup command: use_2to3 is invalid.
Long err
docker-compose -p ccdh-master build; docker-compose -p ccdh-master up -d ccdh-redis uses an image, skipping ccdh-neo4j uses an image, skipping Building ccdh-api [+] Building 163.7s (8/12) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 37B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 34B 0.0s => [internal] load metadata for docker.io/library/python:3.8 0.8s => [1/8] FROM docker.io/library/python:3.8@sha256:037c262134bc0cffa81606421308eb0dbf5c851c2328ec585983f8c18553966f 0.0s => => resolve docker.io/library/python:3.8@sha256:037c262134bc0cffa81606421308eb0dbf5c851c2328ec585983f8c18553966f 0.0s => [internal] load build context 0.3s => => transferring context: 15.58MB 0.3s => CACHED [2/8] RUN pip install pipenv 0.0s => CACHED [3/8] COPY Pipfile* /tmp/ 0.0s => ERROR [4/8] RUN cd /tmp && pipenv lock --requirements > requirements.txt 162.4s ------ > [4/8] RUN cd /tmp && pipenv lock --requirements > requirements.txt: #8 1.670 Creating a virtualenv for this project... #8 1.670 Pipfile: /tmp/Pipfile #8 1.692 Using /usr/local/bin/python3.8 (3.8.12) to create virtualenv... ⠙ Creating virtual environment...created virtual environment CPython3.8.12.final.0-64 in 723ms #8 2.639 creator CPython3Posix(dest=/root/.local/share/virtualenvs/tmp-XVr6zr33, clear=False, no_vcs_ignore=False, global=False) #8 2.639 seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv) #8 2.639 added seed packages: pip==21.2.4, setuptools==58.1.0, wheel==0.37.0 #8 2.639 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator #8 2.639 #8 2.668✔ Successfully created virtual environment! #8 3.142 Virtualenv location: /root/.local/share/virtualenvs/tmp-XVr6zr33 #8 3.227 Pipfile.lock (4c9b8a) out of date, updating to (8e121c)... #8 3.286 Locking [dev-packages] dependencies... Building requirements... Resolving dependencies... ⠇ Locking..✔ Success! #8 27.63 Locking [packages] dependencies... Building requirements... Resolving dependencies... ⠋ Locking..✘ Locking Failed! #8 162.1 ERROR:pip.subprocessor:Command errored out with exit status 1: #8 162.1 command: /root/.local/share/virtualenvs/tmp-XVr6zr33/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-resolver-wobjzzst/tabletext/setup.py'"'"'; __file__='"'"'/tmp/pip-resolver-wobjzzst/tabletext/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-resolver-wobjzzst/tabletext/pip-egg-info #8 162.1 cwd: /tmp/pip-resolver-wobjzzst/tabletext/ #8 162.1 Complete output (1 lines): #8 162.1 error in tabletext setup command: use_2to3 is invalid. #8 162.1 ---------------------------------------- #8 162.1 Traceback (most recent call last): #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/resolver.py", line 764, in <module> #8 162.1 main() #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/resolver.py", line 758, in main #8 162.1 _main(parsed.pre, parsed.clear, parsed.verbose, parsed.system, parsed.write, #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/resolver.py", line 741, in _main #8 162.1 resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev) #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/resolver.py", line 702, in resolve_packages #8 162.1 results, resolver = resolve( #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/resolver.py", line 684, in resolve #8 162.1 return resolve_deps( #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/utils.py", line 1397, in resolve_deps #8 162.1 results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps( #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/utils.py", line 1110, in actually_resolve_deps #8 162.1 resolver.resolve() #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/utils.py", line 825, in resolve #8 162.1 results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS) #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 180, in resolve #8 162.1 has_changed, best_matches = self._resolve_one_round() #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 268, in _resolve_one_round #8 162.1 their_constraints.extend(self._iter_dependencies(best_match)) #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 383, in _iter_dependencies #8 162.1 dependencies = self.repository.get_dependencies(ireq) #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 229, in get_dependencies #8 162.1 legacy_results = self.get_legacy_dependencies(ireq) #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 350, in get_legacy_dependencies #8 162.1 results, ireq = self.resolve_reqs( #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 306, in resolve_reqs #8 162.1 results = resolver._resolve_one(reqset, ireq) #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/legacy_resolve.py", line 339, in _resolve_one #8 162.1 abstract_dist = self._get_abstract_dist_for(req_to_install) #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/legacy_resolve.py", line 287, in _get_abstract_dist_for #8 162.1 abstract_dist = self.preparer.prepare_linked_requirement(req) #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 508, in prepare_linked_requirement #8 162.1 abstract_dist = _get_prepared_distribution( #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 95, in _get_prepared_distribution #8 162.1 abstract_dist.prepare_distribution_metadata(finder, build_isolation) #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/distributions/sdist.py", line 40, in prepare_distribution_metadata #8 162.1 self.req.prepare_metadata() #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/req/req_install.py", line 564, in prepare_metadata #8 162.1 self.metadata_directory = self._generate_metadata() #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/req/req_install.py", line 538, in _generate_metadata #8 162.1 return generate_metadata_legacy( #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/operations/build/metadata_legacy.py", line 115, in generate_metadata #8 162.1 call_subprocess( #8 162.1 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/utils/subprocess.py", line 242, in call_subprocess #8 162.1 raise InstallationError(exc_msg) #8 162.1 pipenv.patched.notpip._internal.exceptions.InstallationError: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. #8 162.1 ------ executor failed running [/bin/sh -c cd /tmp && pipenv lock --requirements > requirements.txt]: exit code: 1 ERROR: Service 'ccdh-api' failed to build : Build failed Creating network "ccdh-master_default" with the default driver Creating volume "ccdh-master_ccdh-neo4j" with default driver Creating volume "ccdh-master_ccdh-redis" with default driver Building ccdh-api [+] Building 55.8s (7/12) [+] Building 120.8s (8/12) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 37B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 34B 0.0s => [internal] load metadata for docker.io/library/python:3.8 0.3s => [1/8] FROM docker.io/library/python:3.8@sha256:037c262134bc0cffa81606421308eb0dbf5c851c2328ec585983f8c18553966f 0.0s => => resolve docker.io/library/python:3.8@sha256:037c262134bc0cffa81606421308eb0dbf5c851c2328ec585983f8c18553966f 0.0s => [internal] load build context 0.2s => => transferring context: 92.40kB 0.1s => CACHED [2/8] RUN pip install pipenv 0.0s => CACHED [3/8] COPY Pipfile* /tmp/ 0.0s => ERROR [4/8] RUN cd /tmp && pipenv lock --requirements > requirements.txt 120.1s ------ > [4/8] RUN cd /tmp && pipenv lock --requirements > requirements.txt: #7 1.372 Creating a virtualenv for this project... #7 1.372 Pipfile: /tmp/Pipfile #7 1.389 Using /usr/local/bin/python3.8 (3.8.12) to create virtualenv... ⠏ Creating virtual environment...created virtual environment CPython3.8.12.final.0-64 in 572ms #7 2.162 creator CPython3Posix(dest=/root/.local/share/virtualenvs/tmp-XVr6zr33, clear=False, no_vcs_ignore=False, global=False) #7 2.162 seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv) #7 2.162 added seed packages: pip==21.2.4, setuptools==58.1.0, wheel==0.37.0 #7 2.162 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator #7 2.162 #7 2.201✔ Successfully created virtual environment! #7 2.511 Virtualenv location: /root/.local/share/virtualenvs/tmp-XVr6zr33 #7 2.577 Pipfile.lock (4c9b8a) out of date, updating to (8e121c)... #7 2.631 Locking [dev-packages] dependencies... Building requirements... Resolving dependencies... ⠧ Locking..✔ Success! #7 24.38 Locking [packages] dependencies... Building requirements... Resolving dependencies... ⠧ Locking..✘ Locking Failed! #7 119.9 ERROR:pip.subprocessor:Command errored out with exit status 1: #7 119.9 command: /root/.local/share/virtualenvs/tmp-XVr6zr33/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-resolver-ewhf59i9/tabletext/setup.py'"'"'; __file__='"'"'/tmp/pip-resolver-ewhf59i9/tabletext/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-resolver-ewhf59i9/tabletext/pip-egg-info #7 119.9 cwd: /tmp/pip-resolver-ewhf59i9/tabletext/ #7 119.9 Complete output (1 lines): #7 119.9 error in tabletext setup command: use_2to3 is invalid. #7 119.9 ---------------------------------------- #7 119.9 Traceback (most recent call last): #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/resolver.py", line 764, in <module> #7 119.9 main() #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/resolver.py", line 758, in main #7 119.9 _main(parsed.pre, parsed.clear, parsed.verbose, parsed.system, parsed.write, #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/resolver.py", line 741, in _main #7 119.9 resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev) #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/resolver.py", line 702, in resolve_packages #7 119.9 results, resolver = resolve( #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/resolver.py", line 684, in resolve #7 119.9 return resolve_deps( #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/utils.py", line 1397, in resolve_deps #7 119.9 results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps( #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/utils.py", line 1110, in actually_resolve_deps #7 119.9 resolver.resolve() #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/utils.py", line 825, in resolve #7 119.9 results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS) #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 180, in resolve #7 119.9 has_changed, best_matches = self._resolve_one_round() #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 268, in _resolve_one_round #7 119.9 their_constraints.extend(self._iter_dependencies(best_match)) #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/piptools/resolver.py", line 383, in _iter_dependencies #7 119.9 dependencies = self.repository.get_dependencies(ireq) #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 229, in get_dependencies #7 119.9 legacy_results = self.get_legacy_dependencies(ireq) #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 350, in get_legacy_dependencies #7 119.9 results, ireq = self.resolve_reqs( #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 306, in resolve_reqs #7 119.9 results = resolver._resolve_one(reqset, ireq) #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/legacy_resolve.py", line 339, in _resolve_one #7 119.9 abstract_dist = self._get_abstract_dist_for(req_to_install) #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/legacy_resolve.py", line 287, in _get_abstract_dist_for #7 119.9 abstract_dist = self.preparer.prepare_linked_requirement(req) #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 508, in prepare_linked_requirement #7 119.9 abstract_dist = _get_prepared_distribution( #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 95, in _get_prepared_distribution #7 119.9 abstract_dist.prepare_distribution_metadata(finder, build_isolation) #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/distributions/sdist.py", line 40, in prepare_distribution_metadata #7 119.9 self.req.prepare_metadata() #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/req/req_install.py", line 564, in prepare_metadata #7 119.9 self.metadata_directory = self._generate_metadata() #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/req/req_install.py", line 538, in _generate_metadata #7 119.9 return generate_metadata_legacy( #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/operations/build/metadata_legacy.py", line 115, in generate_metadata #7 119.9 call_subprocess( #7 119.9 File "/usr/local/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/utils/subprocess.py", line 242, in call_subprocess #7 119.9 raise InstallationError(exc_msg) #7 119.9 pipenv.patched.notpip._internal.exceptions.InstallationError: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. #7 119.9 ------ executor failed running [/bin/sh -c cd /tmp && pipenv lock --requirements > requirements.txt]: exit code: 1 ERROR: Service 'ccdh-api' failed to build : Build failed
Description
When deploying locally, even on
master
, deploy fails at 'pipenv lock' stageErr messages
Short err
Long err