https://svn.code.sf.net/p/edk2/code/branches/UDK2015 rev: 20289
It means it get something wrong in Python package if following happen in standard output
File "/Efi/StdLib/lib/python.27/ site.py", line 69, in <module>
ImportError: No module named os
Hi,
ReplyDeleteAs I understood your post, if I see error of type "ImportError: No module named XXX", in my case XXX is "site", I should rebuild project.
If so, is it producible to provide detailed instructions to build EfiPy.
What kind of compiler I should use, and per-requisits.
Thanx in advance.
Maxim
Hi,
ReplyDeleteI am failed to find any readme for building of EfiPy.
If such file exists, could you please point to it.
Thanx in advance.
Maxim
Hi Maxim,
DeleteWhy this blog provides rebuild project svn revision?
It needs EDKII official Python code to rebuild EfiPy.
Some people feedback that they have this error in their environment after rebuild project, on both virtual machine and real machine.
After understanding, they get Python code from https://svn.code.sf.net/p/edk2/code/trunk/edk2
Python code which is get from this folder makes this error with some revision.
This blog provides workable svn folder and its revision for your reference (https://svn.code.sf.net/p/edk2/code/branches/UDK2015).
README file, it is good question. It will be published ASAP.
EfiPy is developed with Visual Studio 2012.
Trying to build EfiPy...
Shortly, merge EfiPy_r0.1.0(20289)\Src\AppPkg with EDKII AppPkg, and try to build EfiPy.inf and PythonCore.inf in AppPkg\Applications\Python.
Here is workable EfiPy and its package, EfiPy_r0.1.0(20289)\Disk
Thanks
Hi,
ReplyDeleteWill try your suggestion
>>Here is workable EfiPy and its package, EfiPy_r0.1.0(20289)\Disk
Do you mean this one?
"C:\EfiPy_r0.1.1(20289)\Disk\EFI\Tools\Python.efi".
Once I ran on my machine i have error:ImportError: No module named site.
Thanx
Maxim
Hi Maxim,
DeleteYou could try these procedure for run EfiPy, quickly.
On host
1. plug boot device in host and assume its device letter is "X" on your PC.
1. Copy "EfiPy_r0.1.0(20289)\Disk" into "X:\".
2. Copy BootX64.efi into X:\EFI\Boot (it your target machine does not have internal shell)
Move boot device to Target machine
1. plug boot device from host into target machine
1. power on target machine
2. Changing working device to "fsX:" (assume fsX is boot device)
3. Changing working folder to "fsX:\EFI\Tools"
4. Run this command "Python.efi EfiPyShell.py"
result:
EfiPyShell prompt will show on screen.
Thanks
This comment has been removed by the author.
ReplyDeleteHi,
DeletePlease look into screenshot
https://drive.google.com/file/d/0B6oc_QFugkTkZUUwZTd2T2lhWjQ/view?usp=sharing
The error message is: ImportError: No module named site
Hi,
ReplyDeleteThanx for support, issue was in path to site-packages
After moving EFI\... to \, all OK.
Thanx again
Maxim
Hi Maxim,
DeleteYes, It does. And enjoy UEFI Application without compiling source code.
Thanks.