Switch to a different Python3 version


Lijun Chen
 

Hi,


Currently we are building a Yocto image based on Hardknott release, which includes python 3.9.4. Due to a App constraint, we have to downgrade Python3 to 3.8. I tried copying over 3.8.5 bb file and associated poky/meta/recipes-devtools/python/python3/ folder, but the building failed. What is the best way to switch/downgrade python3 version?


Thanks,

Lijun


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.


Alexander Kanavin
 

The best way is to fix the app. Such major downgrades are firmly uncharted territory, and aren't supported. If you have errors, you need to figure out yourself how to fix them - but if you provide the logs, we can try to help.

Alex


On Tue, 21 Sept 2021 at 22:00, Lijun Chen <lijchen@...> wrote:

Hi,


Currently we are building a Yocto image based on Hardknott release, which includes python 3.9.4. Due to a App constraint, we have to downgrade Python3 to 3.8. I tried copying over 3.8.5 bb file and associated poky/meta/recipes-devtools/python/python3/ folder, but the building failed. What is the best way to switch/downgrade python3 version?


Thanks,

Lijun


This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.




Richard Purdie
 

On Tue, 2021-09-21 at 20:00 +0000, Lijun Chen wrote:
Hi,

Currently we are building a Yocto image based on Hardknott release, which
includes python 3.9.4. Due to a App constraint, we have to downgrade Python3
to 3.8. I tried copying over 3.8.5 bb file andassociated poky/meta/recipes-
devtools/python/python3/ folder, but the building failed. What is the best way
to switch/downgrade python3 version?
Hard to say without understanding how it failed. What was the error?

You probably need to match python3 and python3-native versions but I don't know
if you did.

Cheers,

Richard