From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web08.5537.1666235942844360729 for ; Wed, 19 Oct 2022 20:19:02 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=ap766lEs; spf=pass (domain: intel.com, ip: 192.55.52.93, 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=1666235942; x=1697771942; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=z55zu2QMQqX9ZXcsEl9KSlbxlHvsgQPvMxiDybnLCac=; b=ap766lEs9+Z9DYZE8w0CI3hbVx5yjCQyBpHicanxJ5SS8LWhj2aCDwnE zCFQs4RZgV2IP3W1f4qaKevtpb4WirHE8E8hOoHV8/loz3MFm99Q17Zs4 UNG/w7m1kZ3ik2eB3s7ZG64t67j/b538lrMMBsZLAGph4nuN6X1Mr/61n JbNnf4X4My/J2kDvb1igc88nksX+A/wOAez3l+mEbom8yCPyQo8MlCNlT RZd0MbUEK11JiKRQtDXBsez8qz8YJWVT4iVS50Py0qkTl/nQGiFml/Paz igrFeIaekvjaS3KokpckhXqrq2gCA1kScKukLxyszUvlXpHcAbm54WqMF w==; X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="304205626" X-IronPort-AV: E=Sophos;i="5.95,196,1661842800"; d="scan'208,217";a="304205626" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 20:19:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="772099120" X-IronPort-AV: E=Sophos;i="5.95,196,1661842800"; d="scan'208,217";a="772099120" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga001.fm.intel.com with ESMTP; 19 Oct 2022 20:19:01 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) 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 20:19:01 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX611.amr.corp.intel.com (10.22.229.24) 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 20:19:01 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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 via Frontend Transport; Wed, 19 Oct 2022 20:19:01 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.176) by edgegateway.intel.com (134.134.137.103) 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 20:19:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V7EFdCTO+z9YCd0+oQI+pYNeUXiUKP97Oro3yiid7q1oCdQIXOxF0N/1o++rIiiLgl3BngaAP2UHM9PquF/PT4bygx7vBljlcGwO8hhs8LGc7toR6Uwi7Gx9Cy+HZo4w704Zd9P5trRdaNHI0DANLvF+6sqkK9oqsaO6B0fXJHeal8erP+XeG+5Lj1gpde3Ya82fiQ0RtKK9IPwpv89CQGp4iky74kRQikAtIIKAk8Xu5iXn7lgc58gWQlmbbSKxsF2he0DrTVs0QAcGqMMmG/Hi6D9Jf49wKlyiunIGzr6EIJjWwgULon+XVC/Eh8vyWOIEaIZ6ihG/ACuTv6aJHQ== 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=JVX9JNX/CM6p6HSE9Mpz6OyYxgJEJCMaI7Kl0EmuOs8=; b=TTmcuHFWdwvh2yprHbNDwjBweHV1jeuuC7d9jxzJV/MXFtyAzs7BWt9GgtnSm3+nXBqZrWpJiyx+CAmZwC3XaxGcuFFGrvNJ9kOEj1sdFdtJzXtjDkUfKRCH4oYIs97b/hrRUJa0lLy+vhwcXygugM37I6VqvTnDNZZXqy2AmAH4nXk9OScIdVVgC7RyEyg9OeZRclFmeqpEN6Q0w6wMcBp7qG9GcYyaGBnry2M4bchbDciRck1IKKwFFly8TOTyJs0NOUBQuYxUMikuDDBbbOTr/J8OhnqSpV7N3d8tJtIfPsfIdFtSlbILx2Rnpxgu96wSEemj4Xu3Ak/7xrWxuw== 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 PH0PR11MB5674.namprd11.prod.outlook.com (2603:10b6:510:ec::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.34; Thu, 20 Oct 2022 03:18:59 +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; Thu, 20 Oct 2022 03:18:59 +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: Re:RE: [edk2-devel] Python368.efi failed to run in shell environment Thread-Index: AQHY2Mf3G3sT9hdFNkayQEFVJRnO763//YQAgAkHKICACupJYIABiayAgABPsOCAAOgDAIAAAy6g Date: Thu, 20 Oct 2022 03:18:59 +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> <2f88bedd.2614.183f35b44f4.Coremail.yoshinoyatoko@163.com> In-Reply-To: <2f88bedd.2614.183f35b44f4.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_|PH0PR11MB5674:EE_ x-ms-office365-filtering-correlation-id: f2b52fad-baa9-4968-ecf6-08dab249d455 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CrERjmqWVszaTPwbbo++Xs4sfDAxO7+9H+EeWAjirPNHJVI8dJyVZ/FuQflzNEWSlPKA2M9sLnncPkKcE4yQxacu+8gNCM4GSPTKjUU+FOuFsPq6Is5Q+1yczC/PRRAbRW9Q7C6G7G0muLwdjiXGtiY2TOfGyEYnaIoDzZ29iVXLUTMwZGfd2W49+dBdg6sPz0DIS0Wu8faQ3LJTJvfM7nwZnORUV02Mv1VOu31Uf2pRnGsVxlODgNyKjUQUa5S8dmDLfvZIomt5a5zInJ0QII+t0jcUt8QLcacJqoZsXeyEZ7XTSlaxKi7E9BfZyRILgLHBzVu5whuwbtKrjM8YtjJ98QYkS6tdv9Vi+KyVThE/5pZzEdK4IIbbAZ5KLCJOTVQvR07de+22R+kVPYdCwxRawvQ3TOVDNy2EpqI48leHvAGhH3PPqWAQMrdOkS9tRq8WTJ0gpVCn77SLtkuvZGGz6fO9/6oVLrfwuEw4S5plXL6goielOAY0eXFRZnQRt+ZjdWuoo868BfCbGz75D3ooYvFHnqZHJrwfH+Gr1JSLfqDGuBt5uL9z0V22OIb6KxkLBirgidxfav/4r5jDPs2MmwY24vnMa2yokTwjBH4t7a9HnSZ5pacV+ajgYHFlAY6ez5fej1hKU6Bj6RawrK4K4hJ0voWkjiMJRzqeSkyqvnDLCNyZ0gdIsV4sYrqt2azR6YX5Esd7P1I4ofFMRF7YxBpu+n9UqryT27EVoSJ6atJOKpg+wE50tm3xRSulBkM14jxkuj6MO25DHmBAhlUtNkZlJNQjk7Quwu2m4KDag8VxYz/h7VD0k1obhgYhYgy2aiI4joZhzoK7j204jQ== 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)(346002)(136003)(39860400002)(396003)(366004)(451199015)(26005)(7696005)(9686003)(6506007)(86362001)(41300700001)(83380400001)(54906003)(53546011)(6916009)(66556008)(66476007)(8676002)(66446008)(64756008)(4326008)(76116006)(66946007)(8936002)(5660300002)(55016003)(52536014)(316002)(966005)(33656002)(82960400001)(4001150100001)(38100700002)(71200400001)(2906002)(66899015)(186003)(76236004)(122000001)(166002)(478600001)(38070700005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?coavwWmrW4maaT7kuLuGL8vfCb/KVzlfHRzcHneTUm+iPW5h7Ycc9uqfCUM3?= =?us-ascii?Q?HUIkQE3Xt9G2yt0b4cmXfkInZa5a/ph5u0pnj+7nAQVOUGhvXusK8BONf2Ro?= =?us-ascii?Q?zgRdkb8IglOkDc8HfEtWiQV756He32CGWnN9vfYXC2kdAUxFhpc8jWzl0b8G?= =?us-ascii?Q?TwXR9mgzJfgCdGxU5HDaFRXe53jWhPHxUb6HzbFMJ1qJIhtwMxyPpDgYJj6g?= =?us-ascii?Q?eLpbDPRgoypDnknMmCteLnd/mNpzRjDAXnw126rMNk9ncIZky039VNJBkliq?= =?us-ascii?Q?NGVsC5fgrd6Q9iGPgPfx3ZVaScyPavdhCaksFdBsdTfGL1olUC467GBv2LL7?= =?us-ascii?Q?C8Eb2RC5IR0PAm8OwEydMynD1rjaRD8gDuCRF3U9z5VQWHrv39dm3g8D4auz?= =?us-ascii?Q?xjNhWEr/n3EJ7eDxanYGzQh9s1N5r9ixmFXsSiW05hXK94ksoHFkhUNl471W?= =?us-ascii?Q?TrBYtjMAuUSCfB/4LiQeD4SA91GMUBzvnGDq8ZKvnJnLcHmKSCSicMJvCtHx?= =?us-ascii?Q?i0zqlWQn46LauFJgOevB9fMg1hYyt+fyl9VyajvrVT7y9lLmOml12VDgj3zq?= =?us-ascii?Q?T9I4WP3wlCt1sFLiY4gJIh6OCfYtbRJX3qHdqcr5dq0Wqenok9lVirJKqbrP?= =?us-ascii?Q?zs3kclo6b2/jBVXjO3LzSsS0o9aY6j+MUr4NDi5UtQjFJ86NyXcuDZJlN1vm?= =?us-ascii?Q?Y4vEVyJEBVveEisvqif9aOwpGbcI+0afmfp7xRkSarSCRHxjLDPjMvUft76h?= =?us-ascii?Q?vYpd8H3fgdtjdcV3E3HFukpiMIWX4kyPRVJF5XsCImGSeGWFUsGaYh5fWOtq?= =?us-ascii?Q?Wmc6fxY/454K+fqNoJp655+4nUpFs0DvQX9RQ1pvKymL3HDcggClLcfuNd3q?= =?us-ascii?Q?xQYOdROwXn/Ch9t8PEJw295TBfCL6i42/z36WropD1k97cpFqGU6P/hI7Rml?= =?us-ascii?Q?2wNuX/DFRXmlMH5p1oJvzrHIlLBAiE3yv8TnpkDme8p1wvOO54rTsNwAFEqd?= =?us-ascii?Q?7vqtZn5fm/jkL2PBrheKnuCp8stQjj980WQq8uXhmq/h+MlssjKXiba4RySy?= =?us-ascii?Q?+U2qeSwUeFwteFw0S6JqxgMsM+H3MpqehNP4VDgelEDshCQ2ltxmLeWZdCHK?= =?us-ascii?Q?gEuPFZK8o7XzshB2BVBeGpR+ZKSCjjVO2bpSq/rG5dCBUu3AMM5QMJ9seNMg?= =?us-ascii?Q?TQgPivmeoZR6zzW1zQ7/kDw7NUReggd3gcHZxo2VEczlPJiqRqgn8IyLMZ+X?= =?us-ascii?Q?4ZUmT5Heq6j3JWEMPpdMk3feBsO+4VHb/k+1A75zGrmzZJXaXI55KyAWtOSU?= =?us-ascii?Q?NAwoBCW6xbs5cOaueXcY8kUxeCP2auPL0a/VyMOUcqazmtozY2n4/o+woU2L?= =?us-ascii?Q?QZQJ2/Aj7yDRdULgYzz5cD7PFMUkeA1bMlM+odcarfPmb7Mn7Jnjc+J7zVW4?= =?us-ascii?Q?WpAXAJMXE3PwsgTkoiJ9Labrwad5Ux1yDIwbLh9ezEtryfQ1KSJ069rukYPE?= =?us-ascii?Q?kN6LLDnWY7Tql79kKH7RfYaU1DtOI6g7Zs7rVtH1s2ErTsRoOFMYXNDa6jdm?= =?us-ascii?Q?ebOFLQwnVUGOiAzDaA+4LUryCU0uNzZOwqTt2Fv+?= 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: f2b52fad-baa9-4968-ecf6-08dab249d455 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Oct 2022 03:18:59.0635 (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: HfSH5HqpqlhLSfFTBjV9KUFJYgKw6Zkq3VGnE6SyWSPW3DctD8JSc2NwFoByYjfYq6cJsc2256AaLOfRozEPxA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5674 Return-Path: n.jayaprakash@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_PH7PR11MB594382B320F7CCBE83222D69EE2A9PH7PR11MB5943namp_" --_000_PH7PR11MB594382B320F7CCBE83222D69EE2A9PH7PR11MB5943namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable That's perfect. Great to know that you were able to build and run it succes= sfully. Please let's know if you are interested in contributing to any of the open = bugs as given below: 3781 EDK2 Code unassigned@tianocore.org UNCO --- edk2-libc: Enhance Py3 UEFI interpreter with the ARM architecture support 2022-01-04 3782 EDK2 Code unassigned@tianocore.org UNCO --- edk2-libc: Enhance Py3 UEFI interpreter with the AARCH 64 architecture supp= ort 2022-01-04 3783 EDK2 Code unassigned@tianocore.org UNCO --- edk2-libc: Enhance Py3 UEFI interpreter with the RISC V 64 architecture sup= port 2022-02-22 3784 EDK2 Code n.jayaprakash@intel.com CONF --- edk2-libc : Upstreaming UEFI changes to Python project 2022-01-04 3785 Tianocor Code n.jayaprakash@intel.com CONF --- edk2-libc : Py3 UEFI port add pip install support 2022-02-15 3786 EDK2 Code n.jayaprakash@intel.com CONF --- edk2-libc : Enhance Py3 UEFI port to provide access to System Firmware Tabl= es from Python scripts Regards, JP From: Yoshinoya Sent: 20 October 2022 08:36 To: Jayaprakash, N Cc: Kinney, Michael D ; devel@edk2.groups.io Subject: Re:RE: Re:RE: Re:RE: [edk2-devel] Python368.efi failed to run in s= hell environment Hi, JP: Thanks a lot! It works. And using create_python368_pkg.sh to create U disk image, and it runs ok in= shell. best wishes, At 2022-10-19 21:16:47, "Jayaprakash, N" > wrote: 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_PH7PR11MB594382B320F7CCBE83222D69EE2A9PH7PR11MB5943namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

That’s perfect. Gr= eat to know that you were able to build and run it successfully.=

 =

Please let’s know = if you are interested in contributing to any of the open bugs as given belo= w:

 =

3781

EDK2

Code

unassigned@tianocore.org

UNCO

---

edk2-libc: Enhance Py3 UEFI interprete= r with the ARM architecture support

2022-01-04<= /p>

3782

EDK2

Code

unassigned@tianocore.org

UNCO

---

edk2-libc: Enhance Py3 UEFI interprete= r with the AARCH 64 architecture support

2022-01-04<= /p>

3783

EDK2

Code

unassigned@tianocore.org

UNCO

---

edk2-libc: Enhance Py3 UEFI interprete= r with the RISC V 64 architecture support

2022-02-22<= /p>

3784

EDK2

Code

n.jayaprakash@intel.com

CONF

---

edk2-libc : Upstreaming UEFI changes t= o Python project

2022-01-04<= /p>

3785

Tianocor Code

n.jayaprakash@intel.com

CONF

---

edk2-libc : Py3 UEFI port add pip inst= all support

2022-02-15<= /p>

3786

EDK2

Code

n.jayaprakash@intel.com

CONF

---

edk2-libc : Enhance Py3 UEFI port to p= rovide access to System Firmware Tables from Python scripts

 =

 =

Regards,

JP

 =

From: = Yoshinoya <yoshinoyatoko@163.com>
Sent: 20 October 2022 08:36
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: Re:RE: [edk2-devel] Python368.efi failed to r= un in shell environment

 

Hi, JP:

Thanks a lot!

It works.

 

And using create_python368_pkg.sh to= create U disk image, and it runs ok in shell.

 

 

 

best wishes,

 

 

 

At 2022-10-19 21:16:47, "Jayaprakash, N" <n.jayaprakash@intel.com> wrote:=

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

 =

Regards,=

JP<= /o:p>

 =

From: Yoshinoya <yoshinoyatoko@163.c= om>
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 Python368 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\AppPkg.dsc"= ;

 

but it failed, the tips is:

In file included from /home/yoshi/edk2/AppPkg/Applicati= ons/Python/Python-3.6.8/Modules/_bisectmodule.c:7:

/home/yoshi/edk2/AppPkg/Applications/Python/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_PH7PR11MB594382B320F7CCBE83222D69EE2A9PH7PR11MB5943namp_--