From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web11.7595.1666185412212255741 for ; Wed, 19 Oct 2022 06:16:52 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=KPBp3p4v; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: n.jayaprakash@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666185412; x=1697721412; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=Z3oGipkOxhdEGhLiRX01137iwmZCu8z/cRHk0EEC3sI=; b=KPBp3p4vGzBeKoO5o67Txupkpa6jQj1nFyLcxaYAHGW0eXgK9VbXkw/S Y3zH1vlLmjp/fE3/pDfwkZa0wtg+8L4xsGAePhnjJ5IGIJowji20/bzTU gnsCnJillEeMGiOFCWdMkK5sS+D/wGIkj+/vOeAVWw4IT9mdejuJnjLkI zXMVOJfKVPP7fV+BbVCvUpfbmosBR8pmXla3mud3szPP1eOOgHjpo0OL5 JvPUwR4WO0uEHXUy+Dad0+vo4lfKR3t5I+XZ0ZyTyFUXj5pJxAc1SjcTy 6aXZ3MyQkb9PCkscAIfSnxvjC2AKpOAAPWY6IRL3hFczUks5L5aA/1s7S A==; X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="289722667" X-IronPort-AV: E=Sophos;i="5.95,196,1661842800"; d="scan'208,217";a="289722667" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 06:16:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="580334593" X-IronPort-AV: E=Sophos;i="5.95,196,1661842800"; d="scan'208,217";a="580334593" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga003.jf.intel.com with ESMTP; 19 Oct 2022 06:16:50 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 19 Oct 2022 06:16:50 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 19 Oct 2022 06:16:50 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 19 Oct 2022 06:16:50 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.174) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 19 Oct 2022 06:16:49 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qf8Q4vZulA8ef1qPQNTaEx3NZuzpMBpvs4GXpjxaSTSOA0qzcH+UuQVXmzGSfxDDv2kosanRFb4pQQ0twg7VNtrf3KSMhptr2WZWti7qmVoCiVvPAgngsnJAkicOPzMZjAmXW5II4kEFbn6/rxb0J8sTsQUdszjMWc2EHMjq5Pw/44tGXKRHQchUPU+ClExfR8k5sLDTehMSEfsyHgqHlB2+JCRyOLNHMHu8mOdke/HkYpc6meQ9oEqUAWuyfFukwPWFPHyQ8zF1E4NNRuILldt+xgIryxoQcnTORu11siqPhI9jzr1O+Nog892H4B+SM+l5lpLfSo3kc3BnDmxisg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Fa6LmjOrwWd84LIMlygvdDSZiqIKCu7qnlDZxtb90TM=; b=TQp0up9VQF3Q/mLsvmVL9xG9cfvuV6VHTFZeJeC6ZrgoDkG0t87vRBM71UiMfWIM4EJlOD1PedkoidGRaoUQCchUwDzbNfhLhV+pMr8mTRiF9X3RHMZy2GMNW/h7VyeoZQWlH9A827fVMRduEX16OXI57eRnSM17O3SJAM7KrXf+WB9uCqsnEbjWdK5ijmvg7n0LCrKaQdzThIO29Ohaqo+e14scF7TNP6TMetjswFiJU7QVzBtC5KaFIuwPznwpJi99ZVmYdr5WH0Ngowpb2HgMxrNZBHPngIJoOTx4IxjYQLHU3lRMw0feziyUd+jBoeV5TCVlzRxD0uwCttWJnw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH7PR11MB5943.namprd11.prod.outlook.com (2603:10b6:510:13f::19) by LV2PR11MB5998.namprd11.prod.outlook.com (2603:10b6:408:17e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.33; Wed, 19 Oct 2022 13:16:47 +0000 Received: from PH7PR11MB5943.namprd11.prod.outlook.com ([fe80::e969:3f4a:5b3c:ca9d]) by PH7PR11MB5943.namprd11.prod.outlook.com ([fe80::e969:3f4a:5b3c:ca9d%2]) with mapi id 15.20.5723.032; Wed, 19 Oct 2022 13:16:47 +0000 From: "Jayaprakash, N" To: Yoshinoya CC: "Kinney, Michael D" , "devel@edk2.groups.io" Subject: Re: [edk2-devel] Python368.efi failed to run in shell environment Thread-Topic: Re:RE: Re:RE: [edk2-devel] Python368.efi failed to run in shell environment Thread-Index: AQHY2Mf3G3sT9hdFNkayQEFVJRnO763//YQAgAkHKICACupJYIABiayAgABPsOA= Date: Wed, 19 Oct 2022 13:16:47 +0000 Message-ID: References: <153cddfb.10e9.183a7eb0792.Coremail.yoshinoyatoko@163.com> <791474c2.3a49.183c68f991b.Coremail.yoshinoyatoko@163.com> <2bb20ac1.3078.183ef5de55c.Coremail.yoshinoyatoko@163.com> In-Reply-To: <2bb20ac1.3078.183ef5de55c.Coremail.yoshinoyatoko@163.com> Accept-Language: en-IN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.500.17 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB5943:EE_|LV2PR11MB5998:EE_ x-ms-office365-filtering-correlation-id: 4224a52c-4d68-409c-e1a5-08dab1d42d28 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kpVbm8Fer9Nnjg+y2C6t8SsJgkb9SNA9hJ1dWGCj/bC8M4HhYgVGppi1ak1NnhFQ1QLRKwV6xyYYf0N//PeCgBqxkvbrtSTWGboATM0ntmsj76x8bXdne/gneGIuXxp9K81Skw7gQI+c+e8si9SUXbmYyErFa+a8NJAjVJvYX7LUuMOLT8xKgXH2pPE04PSOjxrEchmlLKPodGRDpBq0221JUDzw/T9xG2Qtw1VSpZiCuMMvOAMsolYbntL8d08bZvFJCsYhcOFPSRisWpcJKfZYDw+cL8GcjP2PHxNnSCvV8hZpky7P2aIzSDl6DTMq8RpMdbhg0ZEQSGdlWG2y8TJjrrktWigLVSi8RNhOO4tIYEx+WZpAlpAtim0vjdtS66ZqSsJ10JXgWcnk5V3Wdg+A/RSNZmOIBisTWYlLH7RrFKq+uPEwNcQAOYWf6+qPiHmki8Mn+mSdF/s/o1McMWeg0jxJATDPwdZn2ddKJKYUIaeJh2dx62WqCFfa14f7Ep1Hiu1e6OL9HeVAr8OesAymKKjbCVZAxm1hvpLQcuU1n8vzyxhHj787GxzGvhA7K9YzXhb39CfV6x0yztzSfPtBgnCT08uSCmO70sxqxB+v98HvvKLVXtJALfNsWsjmx7j9BgZrqyPDr9EDEiBUMQqfXMYtTwTgh2q2199l0BykErYxnm1Pyujjse7gPb99BPwtGdKcQ8QAWZA6h3/ROKXBKqbNVoZH2WNFGQ6gyLm3NCpjLi+98NaFvMQuWBo2wWHOtFlwK1ooIcfTOwuUOZi00ZhN8WveifjKCLsm0PvV5RnW4degfP9LcFNHmhEP20CQUwQQN05b0+MESxRqJQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR11MB5943.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(376002)(366004)(396003)(136003)(346002)(39860400002)(451199015)(316002)(6916009)(66446008)(66899015)(966005)(8676002)(66946007)(76116006)(4326008)(66476007)(7696005)(64756008)(71200400001)(66556008)(54906003)(8936002)(5660300002)(52536014)(186003)(166002)(41300700001)(2906002)(9686003)(53546011)(6506007)(478600001)(26005)(83380400001)(82960400001)(38070700005)(122000001)(38100700002)(86362001)(76236004)(4001150100001)(55016003)(33656002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ACNB7XF4QJpv94AiVFtr+i1FqcsYKGQuAgK2PNk0+f8Zwj7ws/HEZBVkUyEX?= =?us-ascii?Q?B8DE6/+JwRNr2az00oGOC07zXEQAPRE6nlHX2bRCTJ6M1Ruzujf9ybdNkknF?= =?us-ascii?Q?lNzhmVfiAnM6vmERwUEwaDdFXeareF1ZwjQvzmzJ0xDDsPyohd9+OAGQyMV8?= =?us-ascii?Q?c6yLk9IJr2NiOMm3J1rONsHoqBEXTgPO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QZQ1F1vjQ/w+18LCBKnC8vedm7e7L9IsYm9TNLeHMvfz7FOI?= =?us-ascii?Q?V2qPXnhSoG29SyWST7iIoJUMSc+MsSSEdxnnBNGrD37QieiG9ry2byRQTn24?= =?us-ascii?Q?gYyucN6OWreuG2gAjvdBBwPiRuGddOtHTSZ4mL0I/5gXcIWPwDc3AthY5XJN?= =?us-ascii?Q?MG+QZM0CyK7/dmqlxW7ax9YHZocN+CGZZuIuBZyguIpw66q9Qk+uEIeGU4JQ?= =?us-ascii?Q?L6RhJkt78pZfmAcs1QaZPqfrpncGgrmoZwHSb6Alv5vBpSnbKpjV4WWBm+rl?= =?us-ascii?Q?EMgK+2Y6Fi7VaEA6o2ap8/GPa1GeQACKAZzlVpikK/h6+o4mJCHvgIoJa7sV?= =?us-ascii?Q?sRfzeI3Lz7dl8s1J4xX54XEcOqsbqwV/ALvfra+ilbCWMxKMPqyeE5J9z6jb?= =?us-ascii?Q?ByB8vmBRrcHhdR+HcmD9buAHX7wd1+UERx6CckYL1MOt1YbyEu9Ud6g0oXyO?= =?us-ascii?Q?vL73slk4zL11ZFvSzuA+KNFK/9qR4ermQtvo1VNe?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB5943.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4224a52c-4d68-409c-e1a5-08dab1d42d28 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Oct 2022 13:16:47.4871 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LuT6X8yGdwp6N6HtCMvF0GFIGMZc2lZOkiCxkGti3BzHaw09zHSTPzyYOPPamz/Q4VOjQkEKMGtY4kipcumrUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR11MB5998 Return-Path: n.jayaprakash@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_PH7PR11MB59437E3E3A4B4860FF599897EE2B9PH7PR11MB5943namp_" --_000_PH7PR11MB59437E3E3A4B4860FF599897EE2B9PH7PR11MB5943namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable You may follow instructions provided in https://github.com/tianocore/edk2-l= ibc/blob/master/AppPkg/Applications/Python/Python-3.6.8/GCCCompilationBKMs.= rst Regards, JP From: Yoshinoya Sent: 19 October 2022 14:01 To: Jayaprakash, N Cc: Kinney, Michael D ; devel@edk2.groups.io Subject: Re:RE: Re:RE: [edk2-devel] Python368.efi failed to run in shell en= vironment Hi, JP: I followed Py368ReadMe.txt to compile Python368 app in Ubuntu 22.04 environ= ment. The steps is: 1. execute srcprep.py 2. add this module to AppPkg/AppPkg.dsc 3. execute "build -a X64 -p AppPkg\AppPkg.dsc" but it failed, the tips is: In file included from /home/yoshi/edk2/AppPkg/Applications/Python/Python-3.= 6.8/Modules/_bisectmodule.c:7: /home/yoshi/edk2/AppPkg/Applications/Python/Python-3.6.8/Include/Python.h:4= 4:10: fatal error: crypt.h: No such file or directory 44 | #include | ^~~~~~~~~ compilation terminated. Thanks At 2022-10-18 17:04:42, "Jayaprakash, N" > wrote: Hi Yoshinoya, Could you provide some details about the platform on which you are trying t= o run? What tools you used for building the Python interpreter? If you could raise a bug with relevant details, we can take a look at this = issue. Regards, JP From: Yoshinoya > Sent: 11 October 2022 15:51 To: Kinney, Michael D > Cc: devel@edk2.groups.io; Jayaprakash, N > Subject: Re:RE: [edk2-devel] Python368.efi failed to run in shell environme= nt Hi, JP: It seems PyImport_ImportModule("encoding.utf_8") failed. Do you have any suggestions? THank you very much! best wishes, At 2022-10-06 00:28:46, "Kinney, Michael D" > wrote: +JP Mike From: devel@edk2.groups.io > On Behalf Of Yoshinoya Sent: Wednesday, October 5, 2022 4:32 AM To: devel@edk2.groups.io Subject: [edk2-devel] Python368.efi failed to run in shell environment Hi I tried to run Python368.efi in shell environment. but failed, the tips was; Fatal Python error: Py_Initialize: can't initialize sys standard streams Does anybody have ever met this error? Python368.efi is a sample python app in AppPkg\Applications\Python\Python-3= .6.8 Thanks --_000_PH7PR11MB59437E3E3A4B4860FF599897EE2B9PH7PR11MB5943namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

You may follow instructi= ons provided in https://github.com/tianocore/edk2-libc/blob/master/AppPkg/Applications/Pyth= on/Python-3.6.8/GCCCompilationBKMs.rst

 =

Regards,

JP

 =

From: = Yoshinoya <yoshinoyatoko@163.com>
Sent: 19 October 2022 14:01
To: Jayaprakash, N <n.jayaprakash@intel.com>
Cc: Kinney, Michael D <michael.d.kinney@intel.com>; devel@edk2= .groups.io
Subject: Re:RE: Re:RE: [edk2-devel] Python368.efi failed to run in s= hell environment

 

Hi, JP:

I followed Py368ReadMe.txt to compile Pyt= hon368 app in Ubuntu 22.04 environment.

The steps is:

1. execute srcprep.py

2. add this module to AppPkg/AppPkg.= dsc

3. execute "build -a X64 -p AppPkg\A= ppPkg.dsc"

 

but it failed, the tips is:

In file included from /home/yoshi/edk2/Ap= pPkg/Applications/Python/Python-3.6.8/Modules/_bisectmodule.c:7:=

/home/yoshi/edk2/AppPkg/Applications/Pyth= on/Python-3.6.8/Include/Python.h:44:10: fatal error: crypt.h: No such file = or directory

   44 | #include <crypt.h>= ;

      |     = ;     ^~~~~~~~~

compilation terminated.=

 

 

Thanks

 

 

 

At 2022-10-18 17:04:42, "Jayaprakash, N" <n.jayaprakash@intel.com> wrote:=

Hi Yoshinoya,

 =

Could you provide some det= ails about the platform on which you are trying to run?

What tools you used for bu= ilding the Python interpreter?

 =

If you could raise a bug w= ith relevant details, we can take a look at this issue.

 =

Regards,=

JP<= /o:p>

 =

From: Yoshinoya <yoshinoyatoko@163.c= om>
Sent: 11 October 2022 15:51
To: Kinney, Michael D <michael.d.kinney@intel.com>
Cc: devel@edk2.groups.io= ; Jayaprakash, N <n.jayapraka= sh@intel.com>
Subject: Re:RE: [edk2-devel] Python368.efi failed to run in shell en= vironment

 

Hi, JP:

It seems PyImport_ImportModule("encoding.utf_8&quo= t;) failed.

Do you have any suggestions?

 

THank you very much!

 

best wishes,

 

 

 

At 2022-10-06 00:28:46, "Kinney, Michael D" <michael.d.kinney@intel.com&g= t; wrote:

+JP=

 =

Mike

 =

From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Yoshinoya
Sent: Wednesday, October 5, 2022 4:32 AM
To: devel@edk2.groups.io=
Subject: [edk2-devel] Python368.efi failed to run in shell environme= nt

 

Hi

I tried to run Python368.efi in shell environment.=

but failed, the tips was;

Fatal Python error: Py_Initialize: can't initialize sys= standard streams

 

Does anybody have ever met this error?

 

Python368.efi is a sample python app in AppPkg\Applicat= ions\Python\Python-3.6.8

 

Thanks

--_000_PH7PR11MB59437E3E3A4B4860FF599897EE2B9PH7PR11MB5943namp_--