Skip to content

[action] [PR:13847] Add PYTHON3_SWSSCOMMON as build time dependency to Mellanox platform API#13905

Merged
mssonicbld merged 1 commit intosonic-net:202205from
mssonicbld:cherry/202205/13847
Feb 21, 2023
Merged

[action] [PR:13847] Add PYTHON3_SWSSCOMMON as build time dependency to Mellanox platform API#13905
mssonicbld merged 1 commit intosonic-net:202205from
mssonicbld:cherry/202205/13847

Conversation

@mssonicbld
Copy link
Collaborator

No description provided.

…API (sonic-net#13847)

- Why I did it
Add PYTHON3_SWSSCOMMON as build time dependency to Mellanox platform API to avoid issue like:

19:34:11  ImportError while loading conftest '/sonic/platform/mellanox/mlnx-platform-api/tests/conftest.py'.
19:34:11  tests/conftest.py:28: in <module>
19:34:11      from sonic_platform import utils
19:34:11  sonic_platform/__init__.py:18: in <module>
19:34:11      from sonic_platform import *
19:34:11  sonic_platform/platform.py:28: in <module>
19:34:11      raise ImportError(str(e) + "- required module not found")
19:34:11  E   ImportError: No module named 'swsscommon'- required module not found- required module not found
19:34:11  [  FAIL LOG END  ] [ target/python-wheels/bullseye/mlnx_platform_api-1.0-py3-none-any.whl ]
The issue only happens when calling below command:

make target/python-wheels/bullseye/mlnx_platform_api-1.0-py3-none-any.whl 

- How I did it
Add PYTHON3_SWSSCOMMON as build time dependency to Mellanox platform API

- How to verify it
Run build
@mssonicbld
Copy link
Collaborator Author

Original PR: #13847

@mssonicbld mssonicbld merged commit e86f8fa into sonic-net:202205 Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants