Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue building the container image when installing poetry.lock #293

Open
chadell opened this issue Jan 27, 2023 · 0 comments
Open

Issue building the container image when installing poetry.lock #293

chadell opened this issue Jan 27, 2023 · 0 comments

Comments

@chadell
Copy link
Contributor

chadell commented Jan 27, 2023

Environment

  • Python version:
  • Network Importer version: develop branch

Steps to Reproduce

Expected Behavior

CI passes

Observed Behavior

Pytest fails:

Building image network-importer-py3.9:3.1.0
Sending build context to Docker daemon  1.026MB

Step 1/8 : ARG PYTHON_VER="3.8"
Step 2/8 : FROM python:${PYTHON_VER}
3.[9](https://github.com/networktocode/network-importer/actions/runs/4025818691/jobs/6919778403#step:4:10): Pulling from library/python
bbeef03cda1f: Already exists
f049f75f014e: Already exists
56261d0e6b05: Already exists
9bd150679dbd: Already exists
5b282ee9da04: Already exists
03f027d5e312: Pulling fs layer
79903339cfdb: Pulling fs layer
efbad12427dd: Pulling fs layer
8628947080[10](https://github.com/networktocode/network-importer/actions/runs/4025818691/jobs/6919778403#step:4:11): Pulling fs layer
862894708010: Waiting
efbad[12](https://github.com/networktocode/network-importer/actions/runs/4025818691/jobs/6919778403#step:4:13)427dd: Verifying Checksum
efbad12427dd: Download complete
03f027d5e312: Verifying Checksum
03f027d5e312: Download complete
79903339cfdb: Verifying Checksum
79903339cfdb: Download complete
862894708010: Verifying Checksum
862894708010: Download complete
03f027d5e312: Pull complete
79903339cfdb: Pull complete
efbad12427dd: Pull complete
862894708010: Pull complete
Digest: sha256:7af616b934168e2[13](https://github.com/networktocode/network-importer/actions/runs/4025818691/jobs/6919778403#step:4:14)d469bff23bd8e4f07d09ccbe87e82c464cacd8e2fb244bf
Status: Downloaded newer image for python:3.9
 ---> 0a3ee4bd701a
Step 3/8 : RUN pip install --upgrade pip   && pip install poetry
 ---> Running in 9ff170a17c19
Requirement already satisfied: pip in /usr/local/lib/python3.9/site-packages (22.0.4)
Collecting pip
  Downloading pip-22.3.1-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 61.9 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.0.4
    Uninstalling pip-22.0.4:
      Successfully uninstalled pip-22.0.4
  • Installing bidict (0.22.0)
  • Installing ciscoconfparse (1.6.40)
  • Installing configargparse (0.15.2)
  • Installing gitpython (3.1.18)
  • Updating importlib-metadata (4.13.0 -> 4.12.0)
  • Installing junos-eznc (2.6.5)

  CalledProcessError

  Command '['/usr/local/bin/python', '-m', 'pip', 'install', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/usr/local', '--no-deps', '/root/.cache/pypoetry/artifacts/2b/98/21/db12fd1f61603bd47af294e988a62b9b455f1bd25281f0ab884ea73067/bidict-0.22.0-py3-none-any.whl']' returned non-zero exit status 1.

  at /usrlib/python3.9/subprocess.py:528 in run
       524│             # We don't call process.wait() as .__exit__ does that for us.
       525│             raise
       526│         retcode = process.poll()
       527│         if check and retcode:
    →  528│             raise CalledProcessError(retcode, process.args,
       529│                                      output=stdout, stderr=stderr)
       530│     return CompletedProcess(process.args, retcode, stdout, stderr)
       531│ 
       532│ 

The following error occurred when trying to handle this error:


  EnvCommandError

  Command ['/usr/local/bin/python', '-m', 'pip', 'install', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/usr/local', '--no-deps', '/root/.cache/pypoetry/artifacts/2b/98/21/db12fd1f61603bd47af294e988a62b9b455f1bd25281f0ab884ea73067/bidict-0.22.0-py3-none-any.whl'] errored with the following return code 1, and output: 
  Processing /root/.cache/pypoetry/artifacts/2b/98/21/db12fd1f61603bd47af294e988a62b9b455f1bd25281f0ab884ea73067/bidict-0.22.0-py3-none-any.whl
  Installing collected packages: bidict
  ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/~mportlib_metadata-4.13.0.dist-info'
  
  

  at /usrlib/python3.9/site-packages/poetry/utils/env.py:1540 in _run
      1536│                 output = subprocess.check_output(
      1537│                     command, stderr=subprocess.STDOUT, env=env, **kwargs
      1538│                 )
      1539│         except CalledProcessError as e:
    → 1540│             raise EnvCommandError(e, input=input_)
      1541│ 
      1542│         return decode(output)
      1543│ 
      1544│     def execute(self, bin: str, *args: str, **kwargs: Any) -> int:

The following error occurred when trying to handle this error:


  PoetryException

  Failed to install /root/.cache/pypoetry/artifacts/2b/98/21/db12fd1f61603bd47af294e988a62b9b455f1bd25281f0ab884ea73067/bidict-0.22.0-py3-none-any.whl

  at /usrlib/python3.9/site-packages/poetry/utils/pip.py:58 in pip_install
       54│ 
       55│     try:
       56│         return environment.run_pip(*args)
       57│     except EnvCommandError as e:
    →  58│         raise PoetryException(f"Failed to install {path.as_posix()}") from e
       59│ 

  • Installing lazy-object-proxy (1.7.1)
  • Installing mypy-extensions (0.4.3)
  • Installing numpy (1.23.2)
  • Installing netmiko (3.4.0)
  • Installing ordered-set (4.1.0)
  • Installing pbr (5.10.0)
  • Installing pyats-kleenex (22.7)
  • Installing pyeapi (0.8.4)
  • Installing pyftpdlib (1.5.6)
  • Installing pyrepl (0.9.0)
  • Installing python-dateutil (2.8.2)
  • Installing pytz (2022.2.1)
  • Installing ruamel-yaml (0.17.21)
  • Installing tftpy (0.8.0)
  • Installing typing-extensions (3.10.0.2)
  • Installing wrapt (1.[14](https://github.com/networktocode/network-importer/actions/runs/4025818691/jobs/6919778403#step:4:15).1)
  • Installing xmltodict (0.13.0)
  • Installing yang-connector (22.7)
Warning: The file chosen for install of grpcio 1.48.0 (grpcio-1.48.0-cp39-cp39-manylinux_2_[17](https://github.com/networktocode/network-importer/actions/runs/4025818691/jobs/6919778403#step:4:18)_x86_64.manylinux[20](https://github.com/networktocode/network-importer/actions/runs/4025818691/jobs/6919778403#step:4:21)14_x86_64.whl) is yanked. Reason for being yanked: Deadlock observed in Apache Beam.
The command '/bin/sh -c poetry config virtualenvs.create false   && poetry install --no-interaction --no-ansi --no-root' returned a non-zero code: 1

https://github.com/networktocode/network-importer/actions/runs/4025818691/jobs/6919778403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant