Skip to content

Install vanilla 'thrift' Python 2 and 3 packages for Barefoot in host and PMon#6080

Merged
lguohan merged 3 commits intosonic-net:masterfrom
jleveque:vanilla_thrift_pmon
Dec 4, 2020
Merged

Install vanilla 'thrift' Python 2 and 3 packages for Barefoot in host and PMon#6080
lguohan merged 3 commits intosonic-net:masterfrom
jleveque:vanilla_thrift_pmon

Conversation

@jleveque
Copy link
Copy Markdown
Contributor

@jleveque jleveque commented Dec 1, 2020

- Why I did it

Barefoot platform vendors' sonic_platform packages import the Python 'thrift' library. Previously, our custom-built package was being installed in the PMon container and host OS. However, we are only building a Python 2 version of that package, which was only intended for use with saithrift.

Fixes #6077

- How I did it

No longer install custom-built Python 2 thrift package in the PMon container and host OS. Instead install vanilla Python 2 and Python 3 wheels unconditionally in PMon and install in host OS if image is being built for Barefoot platforms.

- How to verify it

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@jleveque jleveque self-assigned this Dec 1, 2020
@jleveque jleveque changed the title [docker-platform-monitor] Install vanilla 'thrift' Python 2 and 3 packages for Barefoot Install vanilla 'thrift' Python 2 and 3 packages for Barefoot in host and PMon Dec 1, 2020
@lguohan
Copy link
Copy Markdown
Collaborator

lguohan commented Dec 2, 2020

retest vsimage please

@jleveque
Copy link
Copy Markdown
Contributor Author

jleveque commented Dec 3, 2020

Wait to merge until @msosyak confirms this resolves #6077

@msosyak
Copy link
Copy Markdown
Contributor

msosyak commented Dec 4, 2020

@jleveque Thank you, this PR fixes #6077. Please marge it.
But I faced a new error related to py2 -> py3 migration TypeError: can't concat str to bytearray. I have opened the PR to fix it sonic-net/sonic-platform-common#152

@lguohan lguohan merged commit 83f0d82 into sonic-net:master Dec 4, 2020
@jleveque jleveque deleted the vanilla_thrift_pmon branch December 4, 2020 17:22
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
… in host and PMon (sonic-net#6080)

Barefoot platform vendors' sonic_platform packages import the Python 'thrift' library. Previously, our custom-built package was being installed in the PMon container and host OS. However, we are only building a Python 2 version of that package, which was only intended for use with saithrift.

Fixes sonic-net#6077
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.

python-thrift is not installed for python3

3 participants