* Python2.7 is not working with the EDK2 build system @ 2021-09-03 18:08 Sunny Wang 2021-09-06 1:09 ` 回复: [edk2-devel] " gaoliming 0 siblings, 1 reply; 9+ messages in thread From: Sunny Wang @ 2021-09-03 18:08 UTC (permalink / raw) To: Feng, Bob C, Liming Gao, Yuwei Chen, Cole Robinson, devel@edk2.groups.io Cc: Sunny Wang, Sami Mujawar, Samer El-Haj-Mahmoud [-- Attachment #1: Type: text/plain, Size: 1348 bytes --] Hi all, I just ran into this build issue. After checking the edk2 emails, I saw some of you already ran into this build issue as well. At least, I saw two email threads below talking about this issue. https://edk2.groups.io/g/devel/message/80068?p=,,,20,0,0,0::recentpostdate%252Fsticky,,python,20,2,0,85296733 https://edk2.groups.io/g/devel/message/79022?p=,,,20,0,0,0::recentpostdate%2525252Fsticky,,DeprecationWarnings,20,2,0,84409128 The main purpose of this email is to have obvious email subject to get people's attention, so that people won't spend time to check this when running into this issue. The solution at this moment is to use Python 3 instead (Use "export PYTHON_COMMAND=/usr/bin/python3" instead of "export PYTHON_COMMAND=/usr/bin/python"). Hi Robinson, Are you working on this now? If you're busy with other things, how about we revert your patch first? Hi Bob, Liming, and Yuwei, What do you prefer to do at this moment? Wait for Robinson? or revert the change? Best Regards, Sunny IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. [-- Attachment #2: Type: text/html, Size: 5367 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* 回复: [edk2-devel] Python2.7 is not working with the EDK2 build system 2021-09-03 18:08 Python2.7 is not working with the EDK2 build system Sunny Wang @ 2021-09-06 1:09 ` gaoliming 2021-09-06 9:30 ` Bob Feng 0 siblings, 1 reply; 9+ messages in thread From: gaoliming @ 2021-09-06 1:09 UTC (permalink / raw) To: devel, Sunny.Wang, 'Feng, Bob C', 'Yuwei Chen', 'Cole Robinson' Cc: 'Sami Mujawar', 'Samer El-Haj-Mahmoud', 'Gerd Hoffmann' [-- Attachment #1: Type: text/plain, Size: 2100 bytes --] Sunny: If Robinson has no response, I suggest to revert this change first. Robinson: Can you give your fix plan for this regression issue? Thanks Liming 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Sunny Wang 发送时间: 2021年9月4日 2:09 收件人: Feng, Bob C <bob.c.feng@intel.com>; Liming Gao <gaoliming@byosoft.com.cn>; Yuwei Chen <yuwei.chen@intel.com>; Cole Robinson <crobinso@redhat.com>; devel@edk2.groups.io 抄送: Sunny Wang <Sunny.Wang@arm.com>; Sami Mujawar <Sami.Mujawar@arm.com>; Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com> 主题: [edk2-devel] Python2.7 is not working with the EDK2 build system Hi all, I just ran into this build issue. After checking the edk2 emails, I saw some of you already ran into this build issue as well. At least, I saw two email threads below talking about this issue. https://edk2.groups.io/g/devel/message/80068?p=,,,20,0,0,0::recentpostdate%2 52Fsticky,,python,20,2,0,85296733 https://edk2.groups.io/g/devel/message/79022?p=,,,20,0,0,0::recentpostdate%2 525252Fsticky,,DeprecationWarnings,20,2,0,84409128 The main purpose of this email is to have obvious email subject to get people’s attention, so that people won’t spend time to check this when running into this issue. The solution at this moment is to use Python 3 instead (Use “export PYTHON_COMMAND=/usr/bin/python3” instead of “export PYTHON_COMMAND=/usr/bin/python”). Hi Robinson, Are you working on this now? If you’re busy with other things, how about we revert your patch first? Hi Bob, Liming, and Yuwei, What do you prefer to do at this moment? Wait for Robinson? or revert the change? Best Regards, Sunny IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. [-- Attachment #2: Type: text/html, Size: 6885 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [edk2-devel] Python2.7 is not working with the EDK2 build system 2021-09-06 1:09 ` 回复: [edk2-devel] " gaoliming @ 2021-09-06 9:30 ` Bob Feng 2021-09-06 13:15 ` Sunny Wang 0 siblings, 1 reply; 9+ messages in thread From: Bob Feng @ 2021-09-06 9:30 UTC (permalink / raw) To: gaoliming, devel@edk2.groups.io, Sunny.Wang@arm.com, Chen, Christine, 'Cole Robinson' Cc: 'Sami Mujawar', 'Samer El-Haj-Mahmoud', 'Gerd Hoffmann' [-- Attachment #1: Type: text/plain, Size: 2968 bytes --] Hi Sunny, EDK II only formally supports Python 3 now because Python 2 is EOL with no support. So I’d suggest BaseTools users switch Python2 to Python3. Thanks, Bob From: gaoliming <gaoliming@byosoft.com.cn> Sent: Monday, September 6, 2021 9:10 AM To: devel@edk2.groups.io; Sunny.Wang@arm.com; Feng, Bob C <bob.c.feng@intel.com>; Chen, Christine <yuwei.chen@intel.com>; 'Cole Robinson' <crobinso@redhat.com> Cc: 'Sami Mujawar' <Sami.Mujawar@arm.com>; 'Samer El-Haj-Mahmoud' <Samer.El-Haj-Mahmoud@arm.com>; 'Gerd Hoffmann' <kraxel@redhat.com> Subject: 回复: [edk2-devel] Python2.7 is not working with the EDK2 build system Sunny: If Robinson has no response, I suggest to revert this change first. Robinson: Can you give your fix plan for this regression issue? Thanks Liming 发件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> 代表 Sunny Wang 发送时间: 2021年9月4日 2:09 收件人: Feng, Bob C <bob.c.feng@intel.com<mailto:bob.c.feng@intel.com>>; Liming Gao <gaoliming@byosoft.com.cn<mailto:gaoliming@byosoft.com.cn>>; Yuwei Chen <yuwei.chen@intel.com<mailto:yuwei.chen@intel.com>>; Cole Robinson <crobinso@redhat.com<mailto:crobinso@redhat.com>>; devel@edk2.groups.io<mailto:devel@edk2.groups.io> 抄送: Sunny Wang <Sunny.Wang@arm.com<mailto:Sunny.Wang@arm.com>>; Sami Mujawar <Sami.Mujawar@arm.com<mailto:Sami.Mujawar@arm.com>>; Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com<mailto:Samer.El-Haj-Mahmoud@arm.com>> 主题: [edk2-devel] Python2.7 is not working with the EDK2 build system Hi all, I just ran into this build issue. After checking the edk2 emails, I saw some of you already ran into this build issue as well. At least, I saw two email threads below talking about this issue. https://edk2.groups.io/g/devel/message/80068?p=,,,20,0,0,0::recentpostdate%252Fsticky,,python,20,2,0,85296733 https://edk2.groups.io/g/devel/message/79022?p=,,,20,0,0,0::recentpostdate%2525252Fsticky,,DeprecationWarnings,20,2,0,84409128 The main purpose of this email is to have obvious email subject to get people’s attention, so that people won’t spend time to check this when running into this issue. The solution at this moment is to use Python 3 instead (Use “export PYTHON_COMMAND=/usr/bin/python3” instead of “export PYTHON_COMMAND=/usr/bin/python”). Hi Robinson, Are you working on this now? If you’re busy with other things, how about we revert your patch first? Hi Bob, Liming, and Yuwei, What do you prefer to do at this moment? Wait for Robinson? or revert the change? Best Regards, Sunny IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. [-- Attachment #2: Type: text/html, Size: 8183 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [edk2-devel] Python2.7 is not working with the EDK2 build system 2021-09-06 9:30 ` Bob Feng @ 2021-09-06 13:15 ` Sunny Wang 2021-09-07 1:18 ` 回复: " gaoliming 0 siblings, 1 reply; 9+ messages in thread From: Sunny Wang @ 2021-09-06 13:15 UTC (permalink / raw) To: Feng, Bob C, gaoliming, devel@edk2.groups.io, Chen, Christine, 'Cole Robinson' Cc: Sami Mujawar, Samer El-Haj-Mahmoud, 'Gerd Hoffmann', Sunny Wang [-- Attachment #1: Type: text/plain, Size: 4859 bytes --] Thanks for checking this, Bob and Liming. Hi Bob, Yeah, I was aware of that as well. It makes sense to switch Python2 to Python3. However, Python 2 was discontinued for a while, but there seems no announcement in the mailing list or code change for cleaning up Python 2 stuff in edk2 BaseTools, which may make users feel Python 2 is still useable and cause confusion. Of course, I may miss some activities about deprecating Python 2 in edk2. If so, could you point me out? I just want to have an obvious way to inform edk2 users that Python 2 doesn’t work. If you think this email is good enough as a notification to the edk2 users, I’m fine with this. Moreover, for a quick improvement, how about we add a python version check in the build script to prevent code building and remind users to use Python 3? Thanks, Sunny From: Feng, Bob C <bob.c.feng@intel.com> Sent: 06 September 2021 10:31 To: gaoliming <gaoliming@byosoft.com.cn>; devel@edk2.groups.io; Sunny Wang <Sunny.Wang@arm.com>; Chen, Christine <yuwei.chen@intel.com>; 'Cole Robinson' <crobinso@redhat.com> Cc: Sami Mujawar <Sami.Mujawar@arm.com>; Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>; 'Gerd Hoffmann' <kraxel@redhat.com> Subject: RE: [edk2-devel] Python2.7 is not working with the EDK2 build system Hi Sunny, EDK II only formally supports Python 3 now because Python 2 is EOL with no support. So I’d suggest BaseTools users switch Python2 to Python3. Thanks, Bob From: gaoliming <gaoliming@byosoft.com.cn<mailto:gaoliming@byosoft.com.cn>> Sent: Monday, September 6, 2021 9:10 AM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Sunny.Wang@arm.com<mailto:Sunny.Wang@arm.com>; Feng, Bob C <bob.c.feng@intel.com<mailto:bob.c.feng@intel.com>>; Chen, Christine <yuwei.chen@intel.com<mailto:yuwei.chen@intel.com>>; 'Cole Robinson' <crobinso@redhat.com<mailto:crobinso@redhat.com>> Cc: 'Sami Mujawar' <Sami.Mujawar@arm.com<mailto:Sami.Mujawar@arm.com>>; 'Samer El-Haj-Mahmoud' <Samer.El-Haj-Mahmoud@arm.com<mailto:Samer.El-Haj-Mahmoud@arm.com>>; 'Gerd Hoffmann' <kraxel@redhat.com<mailto:kraxel@redhat.com>> Subject: 回复: [edk2-devel] Python2.7 is not working with the EDK2 build system Sunny: If Robinson has no response, I suggest to revert this change first. Robinson: Can you give your fix plan for this regression issue? Thanks Liming 发件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> 代表 Sunny Wang 发送时间: 2021年9月4日 2:09 收件人: Feng, Bob C <bob.c.feng@intel.com<mailto:bob.c.feng@intel.com>>; Liming Gao <gaoliming@byosoft.com.cn<mailto:gaoliming@byosoft.com.cn>>; Yuwei Chen <yuwei.chen@intel.com<mailto:yuwei.chen@intel.com>>; Cole Robinson <crobinso@redhat.com<mailto:crobinso@redhat.com>>; devel@edk2.groups.io<mailto:devel@edk2.groups.io> 抄送: Sunny Wang <Sunny.Wang@arm.com<mailto:Sunny.Wang@arm.com>>; Sami Mujawar <Sami.Mujawar@arm.com<mailto:Sami.Mujawar@arm.com>>; Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com<mailto:Samer.El-Haj-Mahmoud@arm.com>> 主题: [edk2-devel] Python2.7 is not working with the EDK2 build system Hi all, I just ran into this build issue. After checking the edk2 emails, I saw some of you already ran into this build issue as well. At least, I saw two email threads below talking about this issue. https://edk2.groups.io/g/devel/message/80068?p=,,,20,0,0,0::recentpostdate%252Fsticky,,python,20,2,0,85296733 https://edk2.groups.io/g/devel/message/79022?p=,,,20,0,0,0::recentpostdate%2525252Fsticky,,DeprecationWarnings,20,2,0,84409128 The main purpose of this email is to have obvious email subject to get people’s attention, so that people won’t spend time to check this when running into this issue. The solution at this moment is to use Python 3 instead (Use “export PYTHON_COMMAND=/usr/bin/python3” instead of “export PYTHON_COMMAND=/usr/bin/python”). Hi Robinson, Are you working on this now? If you’re busy with other things, how about we revert your patch first? Hi Bob, Liming, and Yuwei, What do you prefer to do at this moment? Wait for Robinson? or revert the change? Best Regards, Sunny IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. [-- Attachment #2: Type: text/html, Size: 12031 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* 回复: [edk2-devel] Python2.7 is not working with the EDK2 build system 2021-09-06 13:15 ` Sunny Wang @ 2021-09-07 1:18 ` gaoliming 2021-10-05 16:48 ` Cole 0 siblings, 1 reply; 9+ messages in thread From: gaoliming @ 2021-09-07 1:18 UTC (permalink / raw) To: devel, Sunny.Wang, 'Feng, Bob C', 'Chen, Christine', 'Cole Robinson' Cc: 'Sami Mujawar', 'Samer El-Haj-Mahmoud', 'Gerd Hoffmann' [-- Attachment #1: Type: text/plain, Size: 6268 bytes --] Bob: Yes. Python3 is the formal support. We recommend user to use Python3. But, if user meets the issue in Python2, user can still report the issue in BaseTools. Its priority may be low. For this case, it is the regression issue caused by the recent change. The patch owner is also identified. So, I suggest the patch owner to follow up and enhance his patch. Thanks Liming 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Sunny Wang 发送时间: 2021年9月6日 21:16 收件人: Feng, Bob C <bob.c.feng@intel.com>; gaoliming <gaoliming@byosoft.com.cn>; devel@edk2.groups.io; Chen, Christine <yuwei.chen@intel.com>; 'Cole Robinson' <crobinso@redhat.com> 抄送: Sami Mujawar <Sami.Mujawar@arm.com>; Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>; 'Gerd Hoffmann' <kraxel@redhat.com>; Sunny Wang <Sunny.Wang@arm.com> 主题: Re: [edk2-devel] Python2.7 is not working with the EDK2 build system Thanks for checking this, Bob and Liming. Hi Bob, Yeah, I was aware of that as well. It makes sense to switch Python2 to Python3. However, Python 2 was discontinued for a while, but there seems no announcement in the mailing list or code change for cleaning up Python 2 stuff in edk2 BaseTools, which may make users feel Python 2 is still useable and cause confusion. Of course, I may miss some activities about deprecating Python 2 in edk2. If so, could you point me out? I just want to have an obvious way to inform edk2 users that Python 2 doesn’t work. If you think this email is good enough as a notification to the edk2 users, I’m fine with this. Moreover, for a quick improvement, how about we add a python version check in the build script to prevent code building and remind users to use Python 3? Thanks, Sunny From: Feng, Bob C <bob.c.feng@intel.com <mailto:bob.c.feng@intel.com> > Sent: 06 September 2021 10:31 To: gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn> >; devel@edk2.groups.io <mailto:devel@edk2.groups.io> ; Sunny Wang <Sunny.Wang@arm.com <mailto:Sunny.Wang@arm.com> >; Chen, Christine <yuwei.chen@intel.com <mailto:yuwei.chen@intel.com> >; 'Cole Robinson' <crobinso@redhat.com <mailto:crobinso@redhat.com> > Cc: Sami Mujawar <Sami.Mujawar@arm.com <mailto:Sami.Mujawar@arm.com> >; Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com <mailto:Samer.El-Haj-Mahmoud@arm.com> >; 'Gerd Hoffmann' <kraxel@redhat.com <mailto:kraxel@redhat.com> > Subject: RE: [edk2-devel] Python2.7 is not working with the EDK2 build system Hi Sunny, EDK II only formally supports Python 3 now because Python 2 is EOL with no support. So I’d suggest BaseTools users switch Python2 to Python3. Thanks, Bob From: gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn> > Sent: Monday, September 6, 2021 9:10 AM To: devel@edk2.groups.io <mailto:devel@edk2.groups.io> ; Sunny.Wang@arm.com <mailto:Sunny.Wang@arm.com> ; Feng, Bob C <bob.c.feng@intel.com <mailto:bob.c.feng@intel.com> >; Chen, Christine <yuwei.chen@intel.com <mailto:yuwei.chen@intel.com> >; 'Cole Robinson' <crobinso@redhat.com <mailto:crobinso@redhat.com> > Cc: 'Sami Mujawar' <Sami.Mujawar@arm.com <mailto:Sami.Mujawar@arm.com> >; 'Samer El-Haj-Mahmoud' <Samer.El-Haj-Mahmoud@arm.com <mailto:Samer.El-Haj-Mahmoud@arm.com> >; 'Gerd Hoffmann' <kraxel@redhat.com <mailto:kraxel@redhat.com> > Subject: 回复: [edk2-devel] Python2.7 is not working with the EDK2 build system Sunny: If Robinson has no response, I suggest to revert this change first. Robinson: Can you give your fix plan for this regression issue? Thanks Liming 发件人: devel@edk2.groups.io <mailto:devel@edk2.groups.io> <devel@edk2.groups.io <mailto:devel@edk2.groups.io> > 代表 Sunny Wang 发送时间: 2021年9月4日 2:09 收件人: Feng, Bob C <bob.c.feng@intel.com <mailto:bob.c.feng@intel.com> >; Liming Gao <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn> >; Yuwei Chen <yuwei.chen@intel.com <mailto:yuwei.chen@intel.com> >; Cole Robinson <crobinso@redhat.com <mailto:crobinso@redhat.com> >; devel@edk2.groups.io <mailto:devel@edk2.groups.io> 抄送: Sunny Wang <Sunny.Wang@arm.com <mailto:Sunny.Wang@arm.com> >; Sami Mujawar <Sami.Mujawar@arm.com <mailto:Sami.Mujawar@arm.com> >; Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com <mailto:Samer.El-Haj-Mahmoud@arm.com> > 主题: [edk2-devel] Python2.7 is not working with the EDK2 build system Hi all, I just ran into this build issue. After checking the edk2 emails, I saw some of you already ran into this build issue as well. At least, I saw two email threads below talking about this issue. https://edk2.groups.io/g/devel/message/80068?p=,,,20,0,0,0::recentpostdate%252Fsticky,,python,20,2,0,85296733 https://edk2.groups.io/g/devel/message/79022?p=,,,20,0,0,0::recentpostdate%2525252Fsticky,,DeprecationWarnings,20,2,0,84409128 The main purpose of this email is to have obvious email subject to get people’s attention, so that people won’t spend time to check this when running into this issue. The solution at this moment is to use Python 3 instead (Use “export PYTHON_COMMAND=/usr/bin/python3” instead of “export PYTHON_COMMAND=/usr/bin/python”). Hi Robinson, Are you working on this now? If you’re busy with other things, how about we revert your patch first? Hi Bob, Liming, and Yuwei, What do you prefer to do at this moment? Wait for Robinson? or revert the change? Best Regards, Sunny IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. [-- Attachment #2: Type: text/html, Size: 14635 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 回复: [edk2-devel] Python2.7 is not working with the EDK2 build system 2021-09-07 1:18 ` 回复: " gaoliming @ 2021-10-05 16:48 ` Cole 2021-10-05 17:33 ` Andrew Fish 2021-10-08 2:24 ` 回复: 回复: " gaoliming 0 siblings, 2 replies; 9+ messages in thread From: Cole @ 2021-10-05 16:48 UTC (permalink / raw) To: gaoliming, devel, Sunny.Wang, 'Feng, Bob C', 'Chen, Christine' Cc: 'Sami Mujawar', 'Samer El-Haj-Mahmoud', 'Gerd Hoffmann' On 9/6/21 9:18 PM, gaoliming wrote: > Bob: > > Yes. Python3 is the formal support. We recommend user to use Python3. > But, if user meets the issue in Python2, user can still report the issue > in BaseTools. Its priority may be low. For this case, it is the > regression issue caused by the recent change. The patch owner is also > identified. So, I suggest the patch owner to follow up and enhance his > patch. > Sorry for the delayed response, I was on paternity leave since August. I haven't seen the actual error in this thread. Is there a clear python error being thrown? Maybe the fix is simple but I can't But as mentioned elsewhere, python2 has been End of Life since Jan 1 2020, over 1.5 years ago. It's going to become increasingly difficult to keep code working on python2 and latest python3. - Cole ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [edk2-devel] Python2.7 is not working with the EDK2 build system 2021-10-05 16:48 ` Cole @ 2021-10-05 17:33 ` Andrew Fish 2021-10-08 2:24 ` 回复: 回复: " gaoliming 1 sibling, 0 replies; 9+ messages in thread From: Andrew Fish @ 2021-10-05 17:33 UTC (permalink / raw) To: devel, crobinso Cc: gaoliming, sunny.Wang, Feng, Bob C, Chen, Christine, Sami Mujawar, Samer El-Haj-Mahmoud, Gerd Hoffmann Should we move to require a min Python version at some point? > On Oct 5, 2021, at 9:48 AM, Cole <crobinso@redhat.com> wrote: > > On 9/6/21 9:18 PM, gaoliming wrote: >> Bob: >> >> Yes. Python3 is the formal support. We recommend user to use Python3. >> But, if user meets the issue in Python2, user can still report the issue >> in BaseTools. Its priority may be low. For this case, it is the >> regression issue caused by the recent change. The patch owner is also >> identified. So, I suggest the patch owner to follow up and enhance his >> patch. >> > > Sorry for the delayed response, I was on paternity leave since August. > > I haven't seen the actual error in this thread. Is there a clear python > error being thrown? Maybe the fix is simple but I can't > > But as mentioned elsewhere, python2 has been End of Life since Jan 1 > 2020, over 1.5 years ago. It's going to become increasingly difficult to > keep code working on python2 and latest python3. > > - Cole > > > > > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* 回复: 回复: [edk2-devel] Python2.7 is not working with the EDK2 build system 2021-10-05 16:48 ` Cole 2021-10-05 17:33 ` Andrew Fish @ 2021-10-08 2:24 ` gaoliming 2021-10-15 1:30 ` Steven Shi 1 sibling, 1 reply; 9+ messages in thread From: gaoliming @ 2021-10-08 2:24 UTC (permalink / raw) To: 'Cole Robinson', devel, Sunny.Wang, 'Feng, Bob C', 'Chen, Christine' Cc: 'Sami Mujawar', 'Samer El-Haj-Mahmoud', 'Gerd Hoffmann' Cole: Here is the error message https://edk2.groups.io/g/devel/message/80068?p=,,,20,0,0,0::recentpostdate%252Fsticky,,python,20,2,0,85296733 Yes, Python27 has been end of life. But, Edk2 has not announced to drop Python27 support. So, if someone meets with python27 issue, we need to response them. Now, I think we can give the proposal to drop Python27 support in Edk2 project. Thanks Liming > -----邮件原件----- > 发件人: Cole Robinson <crobinso@redhat.com> > 发送时间: 2021年10月6日 0:48 > 收件人: gaoliming <gaoliming@byosoft.com.cn>; devel@edk2.groups.io; > Sunny.Wang@arm.com; 'Feng, Bob C' <bob.c.feng@intel.com>; 'Chen, > Christine' <yuwei.chen@intel.com> > 抄送: 'Sami Mujawar' <Sami.Mujawar@arm.com>; 'Samer El-Haj-Mahmoud' > <Samer.El-Haj-Mahmoud@arm.com>; 'Gerd Hoffmann' <kraxel@redhat.com> > 主题: Re: 回复: [edk2-devel] Python2.7 is not working with the EDK2 build > system > > On 9/6/21 9:18 PM, gaoliming wrote: > > Bob: > > > > Yes. Python3 is the formal support. We recommend user to use Python3. > > But, if user meets the issue in Python2, user can still report the issue > > in BaseTools. Its priority may be low. For this case, it is the > > regression issue caused by the recent change. The patch owner is also > > identified. So, I suggest the patch owner to follow up and enhance his > > patch. > > > > Sorry for the delayed response, I was on paternity leave since August. > > I haven't seen the actual error in this thread. Is there a clear python > error being thrown? Maybe the fix is simple but I can't > > But as mentioned elsewhere, python2 has been End of Life since Jan 1 > 2020, over 1.5 years ago. It's going to become increasingly difficult to > keep code working on python2 and latest python3. > > - Cole ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 回复: [edk2-devel] Python2.7 is not working with the EDK2 build system 2021-10-08 2:24 ` 回复: 回复: " gaoliming @ 2021-10-15 1:30 ` Steven Shi 0 siblings, 0 replies; 9+ messages in thread From: Steven Shi @ 2021-10-15 1:30 UTC (permalink / raw) To: devel@edk2.groups.io, gaoliming@byosoft.com.cn, 'Cole Robinson', Sunny.Wang@arm.com, Feng, Bob C, Chen, Christine Cc: 'Sami Mujawar', 'Samer El-Haj-Mahmoud', 'Gerd Hoffmann' I and other people around me met the python2 build failures (crash without clear error message) repeatedly. If we already decided not to support python2, we'd better enforce not to auto set the PYTHON_COMMAND as python2 any longer and give a notice message in the build command against python2 usage. Thanks Steven Shi > -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of > gaoliming > Sent: Friday, October 8, 2021 10:25 AM > To: 'Cole Robinson' <crobinso@redhat.com>; devel@edk2.groups.io; > Sunny.Wang@arm.com; Feng, Bob C <bob.c.feng@intel.com>; Chen, > Christine <yuwei.chen@intel.com> > Cc: 'Sami Mujawar' <Sami.Mujawar@arm.com>; 'Samer El-Haj-Mahmoud' > <Samer.El-Haj-Mahmoud@arm.com>; 'Gerd Hoffmann' > <kraxel@redhat.com> > Subject: 回复: 回复: [edk2-devel] Python2.7 is not working with the EDK2 > build system > > Cole: > Here is the error message > https://edk2.groups.io/g/devel/message/80068?p=,,,20,0,0,0::recentpostdat > e%252Fsticky,,python,20,2,0,85296733 > > Yes, Python27 has been end of life. But, Edk2 has not announced to drop > Python27 support. So, if someone meets with python27 issue, we need to > response them. > > Now, I think we can give the proposal to drop Python27 support in Edk2 > project. > > Thanks > Liming > > -----邮件原件----- > > 发件人: Cole Robinson <crobinso@redhat.com> > > 发送时间: 2021年10月6日 0:48 > > 收件人: gaoliming <gaoliming@byosoft.com.cn>; devel@edk2.groups.io; > > Sunny.Wang@arm.com; 'Feng, Bob C' <bob.c.feng@intel.com>; 'Chen, > > Christine' <yuwei.chen@intel.com> > > 抄送: 'Sami Mujawar' <Sami.Mujawar@arm.com>; 'Samer El-Haj- > Mahmoud' > > <Samer.El-Haj-Mahmoud@arm.com>; 'Gerd Hoffmann' > <kraxel@redhat.com> > > 主题: Re: 回复: [edk2-devel] Python2.7 is not working with the EDK2 build > > system > > > > On 9/6/21 9:18 PM, gaoliming wrote: > > > Bob: > > > > > > Yes. Python3 is the formal support. We recommend user to use Python3. > > > But, if user meets the issue in Python2, user can still report the issue > > > in BaseTools. Its priority may be low. For this case, it is the > > > regression issue caused by the recent change. The patch owner is also > > > identified. So, I suggest the patch owner to follow up and enhance his > > > patch. > > > > > > > Sorry for the delayed response, I was on paternity leave since August. > > > > I haven't seen the actual error in this thread. Is there a clear python > > error being thrown? Maybe the fix is simple but I can't > > > > But as mentioned elsewhere, python2 has been End of Life since Jan 1 > > 2020, over 1.5 years ago. It's going to become increasingly difficult to > > keep code working on python2 and latest python3. > > > > - Cole > > > > > > > ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2021-10-15 1:30 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-09-03 18:08 Python2.7 is not working with the EDK2 build system Sunny Wang 2021-09-06 1:09 ` 回复: [edk2-devel] " gaoliming 2021-09-06 9:30 ` Bob Feng 2021-09-06 13:15 ` Sunny Wang 2021-09-07 1:18 ` 回复: " gaoliming 2021-10-05 16:48 ` Cole 2021-10-05 17:33 ` Andrew Fish 2021-10-08 2:24 ` 回复: 回复: " gaoliming 2021-10-15 1:30 ` Steven Shi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox