Build failure in sonic-buildimage: python-wheels/sonic_utilities

751 views
Skip to first unread message

Meyer, Kerry

unread,
May 20, 2021, 2:04:58 AM5/20/21
to sonicproject

I’m seeing a build failure in the current Azure/sonic-buildimage repository. Is someone currently working on a fix for this?

 

Summary of the build failure:

  • Build target: sonic-broadcom.bin
  • Terminating error messages:

 

!!!!!!!!!!!!!!!!!!! Interrupted: 47 errors during collection !!!!!!!!!!!!!!!!!!!

========================== 47 error in 18.89 seconds ===========================

[  FAIL LOG END  ] [ target/python-wheels/sonic_utilities-1.2-py3-none-any.whl ]

make: *** [slave.mk:603: target/python-wheels/sonic_utilities-1.2-py3-none-any.whl] Error 1

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

make[1]: *** [Makefile.work:291: target/sonic-broadcom.bin] Error 2

make[1]: Leaving directory '/home/kerry/base_bld/sonic-buildimage'

make: *** [Makefile:9: target/sonic-broadcom.bin] Error 2

 

 

Additional details are provided below.

 

                                                               Kerry

 

 

***************************************************************************************************

 

 

  • Additional details:
    • The first indication of a problem in the build is:

 

[ 01 ] [ target/python-wheels/sonic_platform_common-1.0-py3-none-any.whl-install[ FAIL LOG START ] [ target/python-wheels/sonic_utilities-1.2-py3-none-any.whl ]

[ REASON ] :      target/python-wheels/sonic_utilities-1.2-py3-none-any.whl does not exist   NON-EXISTENT PREREQUISITES: target/python-wheels/sonic_py_common-1.0-py3-none-any.whl-install target/python-wheels/swsssdk-2.0.1-py3-none-any.whl-install target/python-wheels/sonic_config_engine-1.0-py3-none-any.whl-install target/python-wheels/sonic_platform_common-1.0-py3-none-any.whl-install target/python-wheels/sonic_yang_mgmt-1.0-py3-none-any.whl-install target/python-wheels/sonic_yang_models-1.0-py3-none-any.whl-install target/debs/buster/libyang_1.0.73_amd64.deb-install target/debs/buster/libyang-cpp_1.0.73_amd64.deb-install target/debs/buster/python3-yang_1.0.73_amd64.deb-install target/debs/buster/libswsscommon_1.0.0_amd64.deb-install target/debs/buster/python3-swsscommon_1.0.0_amd64.deb-install

[ FLAGS  FILE    ] : []

[ FLAGS  DEPENDS ] : []

[ FLAGS  DIFF    ] : []

/sonic/src/sonic-utilities /sonic

running pytest

 

    • This is followed by execution of a “test” with multiple instances like the following:

============================= test session starts ==============================

platform linux -- Python 3.7.3, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 -- /usr/bin/python3

cachedir: .pytest_cache

rootdir: /sonic/src/sonic-utilities, inifile: pytest.ini

plugins: pyfakefs-4.4.0, cov-2.6.0

collecting ... collected 293 items / 47 errors

 

==================================== ERRORS ====================================

______________________ ERROR collecting tests/aaa_test.py ______________________

ImportError while importing test module '/sonic/src/sonic-utilities/tests/aaa_test.py'.

Hint: make sure your test modules/packages have valid Python names.

Traceback:

/sonic/src/sonic-utilities/.eggs/pyroute2-0.6.1-py3.7.egg/pyroute2/__init__.py:44: in <module>

    from importlib import metadata

E   ImportError: cannot import name 'metadata' from 'importlib' (/usr/lib/python3.7/importlib/__init__.py)

 

During handling of the above exception, another exception occurred:

/usr/lib/python3/dist-packages/_pytest/python.py:450: in _importtestmodule

    mod = self.fspath.pyimport(ensuresyspath=importmode)

/usr/lib/python3/dist-packages/py/_path/local.py:668: in pyimport

    __import__(modname)

/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:294: in load_module

    six.exec_(co, mod.__dict__)

tests/aaa_test.py:6: in <module>

    from utilities_common.db import Db

utilities_common/db.py:4: in <module>

    from utilities_common.multi_asic import multi_asic_ns_choices

utilities_common/multi_asic.py:6: in <module>

    import pyroute2

/sonic/src/sonic-utilities/.eggs/pyroute2-0.6.1-py3.7.egg/pyroute2/__init__.py:46: in <module>

    ???

E   ModuleNotFoundError: No module named 'importlib_metadata'

__________________ ERROR collecting tests/acl_config_test.py ___________________

ImportError while importing test module '/sonic/src/sonic-utilities/tests/acl_config_test.py'.

Hint: make sure your test modules/packages have valid Python names.

Traceback:

/sonic/src/sonic-utilities/.eggs/pyroute2-0.6.1-py3.7.egg/pyroute2/__init__.py:44: in <module>

    from importlib import metadata

E   ImportError: cannot import name 'metadata' from 'importlib' (/usr/lib/python3.7/importlib/__init__.py)

 

During handling of the above exception, another exception occurred:

/usr/lib/python3/dist-packages/_pytest/python.py:450: in _importtestmodule

    mod = self.fspath.pyimport(ensuresyspath=importmode)

/usr/lib/python3/dist-packages/py/_path/local.py:668: in pyimport

    __import__(modname)

/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:294: in load_module

    six.exec_(co, mod.__dict__)

tests/acl_config_test.py:3: in <module>

    import config.main as config

config/main.py:24: in <module>

    from utilities_common.db import Db

utilities_common/db.py:4: in <module>

    from utilities_common.multi_asic import multi_asic_ns_choices

utilities_common/multi_asic.py:6: in <module>

    import pyroute2

/sonic/src/sonic-utilities/.eggs/pyroute2-0.6.1-py3.7.egg/pyroute2/__init__.py:46: in <module>

    import importlib_metadata as metadata

E   ModuleNotFoundError: No module named 'importlib_metadata'

 

    • Just before the final error messages (shown at the top of this email), a test summary result table is printed:

------- generated xml file: /sonic/src/sonic-utilities/test-results.xml --------

 

----------- coverage: platform linux, python 3.7.3-final-0 -----------

Name                                          Stmts   Miss Branch BrPart  Cover

-------------------------------------------------------------------------------

acl_loader/__init__.py                            0      0      0      0   100%

acl_loader/main.py                              586    462    270      1    15%

clear/__init__.py                                 0      0      0      0   100%

clear/bgp_frr_v6.py                              44     44     12      0     0%

clear/bgp_quagga_v4.py                           44     44     12      0     0%

clear/bgp_quagga_v6.py                           44     44     12      0     0%

 

                                                 *

                                                 *

                                                 *

!!!!!!!!!!!!!!!!!!! Interrupted: 47 errors during collection !!!!!!!!!!!!!!!!!!!

========================== 47 error in 18.89 seconds ===========================

 

 

Gen-Hwa Chiang

unread,
May 20, 2021, 2:29:15 AM5/20/21
to Meyer, Kerry, sonicproject

Known issue.

There was a missing update on the sonic-utilities submodule update.

 

[sonic-utilities] submodule update by qiluo-msft · Pull Request #7653 · Azure/sonic-buildimage (github.com)

 

If you rebase your code to pick up the above you should be fine.

--
You received this message because you are subscribed to the Google Groups "sonicproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonicproject...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonicproject/SA0PR19MB42541C9343815CEED3D0DA05FA2A9%40SA0PR19MB4254.namprd19.prod.outlook.com.

Heidi net

unread,
Jun 7, 2021, 8:35:08 AM6/7/21
to 'Gen-Hwa Chiang' via sonicproject
Hello, I'm currently on leave with limited access to my email. I will reply to your email as soon as possible. Thank you.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sonicproject/BYAPR21MB1685CD3D2339320644EA14F5F72A9%40BYAPR21MB1685.namprd21.prod.outlook.com.
Reply all
Reply to author
Forward
0 new messages