Skip to content

[Bookworm] switch_sai_thrift python library is not installed in the right place #2086

@bingwang-ms

Description

@bingwang-ms

The issue is seen in SONiC 202405 branch.

Steps to repro the issue.

  1. Install python-saithrift_0.9.4_amd64.deb package with command sudo dpkg -i python-saithrift_0.9.4_amd64.deb
  2. Check the directory structure. The switch_sai_thrift folder is under saithrift-0.9-py3.11.egg, which is not expected. It should be in path /usr/lib/python3/dist-packages, without the addition folder saithrift-0.9-py3.11.egg
➜  dist-packages pwd
/usr/lib/python3/dist-packages
➜  dist-packages tree saithrift-0.9-py3.11.egg
saithrift-0.9-py3.11.egg
├── EGG-INFO
│   ├── PKG-INFO
│   ├── SOURCES.txt
│   ├── dependency_links.txt
│   ├── not-zip-safe
│   └── top_level.txt
└── switch_sai_thrift
    ├── __init__.py
    ├── __pycache__
    │   ├── __init__.cpython-311.pyc
    │   ├── constants.cpython-311.pyc
    │   ├── sai_headers.cpython-311.pyc
    │   ├── switch_sai_rpc.cpython-311.pyc
    │   └── ttypes.cpython-311.pyc
    ├── constants.py
    ├── sai_headers.py
    ├── switch_sai_rpc.py
    └── ttypes.py

3 directories, 15 files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions