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

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

Open
bingwang-ms opened this issue Oct 8, 2024 · 0 comments

Comments

@bingwang-ms
Copy link
Contributor

bingwang-ms commented Oct 8, 2024

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
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