That’s perfect. Great 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 below:
EDK2 |
Code |
UNCO |
--- |
edk2-libc: Enhance Py3 UEFI interpreter with the ARM architecture support |
2022-01-04 |
||
EDK2 |
Code |
UNCO |
--- |
edk2-libc: Enhance Py3 UEFI interpreter with the AARCH 64 architecture support |
2022-01-04 |
||
EDK2 |
Code |
UNCO |
--- |
edk2-libc: Enhance Py3 UEFI interpreter with the RISC V 64 architecture support |
2022-02-22 |
||
EDK2 |
Code |
CONF |
--- |
2022-01-04 |
|||
Tianocor |
Code |
CONF |
--- |
2022-02-15 |
|||
EDK2 |
Code |
CONF |
--- |
edk2-libc : Enhance Py3 UEFI port to provide 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 run 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 instructions provided in https://github.com/tianocore/edk2-libc/blob/master/AppPkg/Applications/Python/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 shell 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/Applications/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 details about the platform on which you are trying to 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 <yoshinoyatoko@163.com>
Sent: 11 October 2022 15:51
To: Kinney, Michael D <michael.d.kinney@intel.com>
Cc: devel@edk2.groups.io; Jayaprakash, N <n.jayaprakash@intel.com>
Subject: Re:RE: [edk2-devel] Python368.efi failed to run in shell environment
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" <michael.d.kinney@intel.com> 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 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