sonic-buildimage/dockers
xumia d0648f81c7
[Build] Fix the PyYang python package installation issue (#15890) (#15907)
Why I did it
Fix the armhf build failure.
How to reproduce the issue:

docker run -it debain:bullseye bash
apt-get update && apt-get install -y python3-pip
pip3 install PyYAML==5.4.1
Error message:

Collecting PyYAML==5.4.1
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /tmp/tmp6xabslgb_in_process.py get_requires_for_build_wheel /tmp/tmp_er01ztl
....
      raise AttributeError(attr)
  AttributeError: cython_sources
  ----------------------------------------
WARNING: Discarding d63f2d7597/PyYAML-5.4.1.tar.gz (sha256)=607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e (from https://pypi.org/simple/pyyaml/) (requires-python:>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*). Command errored out with exit status 1: /usr/bin/python3 /tmp/tmp6xabslgb_in_process.py get_requires_for_build_wheel /tmp/tmp_er01ztl Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement PyYAML==5.4.1
ERROR: No matching distribution found for PyYAML==5.4.1
root@fa2fa92edcfd:/#
But if adding the option --no-build-isolation, then it is good, see fix.

install "PyYAML==5.4.1" --no-build-isolation
The same error can be found in the multiple builds.

Work item tracking
Microsoft ADO (number only): 24567457

How I did it
Add a build option --no-build-isolation.
2023-07-19 08:08:35 -07:00
..
docker-base Add a config variable to override default container registry instead of dockerhub. (#10166) 2022-03-14 18:09:20 +08:00
docker-base-bullseye [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
docker-base-buster [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
docker-base-stretch [Build] Support j2 template for debian sources (#12557) (#13185) 2022-12-30 09:47:33 +08:00
docker-basic_router [supervisord]: use abspath as supervisord entrypoint (#5995) 2020-11-22 21:18:44 -08:00
docker-config-engine Parallel building of sonic dockers using native dockerd(dood). (#10352) 2022-04-28 08:39:37 +08:00
docker-config-engine-bullseye [Build] Fix the PyYang python package installation issue (#15890) (#15907) 2023-07-19 08:08:35 -07:00
docker-config-engine-buster [Build] Fix the PyYang python package installation issue (#15890) (#15907) 2023-07-19 08:08:35 -07:00
docker-config-engine-stretch Parallel building of sonic dockers using native dockerd(dood). (#10352) 2022-04-28 08:39:37 +08:00
docker-database [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
docker-dhcp-relay [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
docker-fpm-frr updated internal route policy for chassis-packet (#15349) (#15378) 2023-06-08 03:40:23 +08:00
docker-fpm-gobgp Parallel building of sonic dockers using native dockerd(dood). (#10352) 2022-04-28 08:39:37 +08:00
docker-iccpd iccpd bullseye migration (#12097) 2022-10-27 22:12:23 +00:00
docker-lldp [chassis][lldp] Fix the lldp error log in host instance which doesn't contain front panel ports (#14814) (#15669) 2023-06-30 13:24:26 -07:00
docker-macsec [macsec]: show macsec: add --profile option, include profile name in show command output (#13940) 2023-05-18 09:46:53 +08:00
docker-mux [mux] Integrate linkmgrd with swss logger (#15392) (#15539) 2023-06-20 09:08:51 +08:00
docker-nat [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
docker-orchagent [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
docker-pde PDE migration to bullseye (#10836) 2022-08-11 23:14:10 +00:00
docker-platform-monitor [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
docker-ptf [Build] Fix the mirror gpg key expired issue (#14206) 2023-03-16 04:32:36 +08:00
docker-ptf-sai [sai-ptf]Fix sai ptf issue (#12723) 2022-11-16 20:28:30 -08:00
docker-router-advertiser [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
docker-sflow [sflow] Exception handling for if_nametoindex (#11437) (#14456) 2023-04-18 11:57:44 -07:00
docker-snmp [SNMP][IPv6]: Fix SNMP IPv6 reachability issue in certain scenarios (#15487) (#15826) 2023-07-14 10:16:50 -07:00
docker-sonic-mgmt Add scapy support for python3 virtual environment in the sonic-mgmt docker container (#10234) 2022-03-16 12:00:51 +08:00
docker-sonic-mgmt-framework [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
docker-sonic-p4rt [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
docker-sonic-restapi [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
docker-sonic-sdk Parallel building of sonic dockers using native dockerd(dood). (#10352) 2022-04-28 08:39:37 +08:00
docker-sonic-sdk-buildenv Parallel building of sonic dockers using native dockerd(dood). (#10352) 2022-04-28 08:39:37 +08:00
docker-sonic-telemetry Fix telemetry.sh passing in null as log level value (#14303) (#14410) 2023-03-25 05:24:23 +08:00
docker-swss-layer-bullseye [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
docker-swss-layer-buster [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
docker-teamd [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00
dockerfile-macros.j2 [202205] Remove apt package lists and make macro to clean up apt and python cache (#14377) 2023-03-22 14:51:25 -07:00