Date
1 - 1 of 1
EDK2 build issues
wlll alll
Hi,
I'm trying to build EDK2 follow this wiki: https://github.com/tianocore/tianocore.github.io/wiki/How-to-Build-With-Stuart . But when I run stuart_setup -c .pytool/CISettings.py , it shows: (.venv) F:\edk2>stuart_setup --c .pytool/CISettings.py Unable to use .pytool/CISettings.py as a SetupSettingsManager Did you mean to use a different kind of invocable? Traceback (most recent call last): File "f:\edk2\.venv\lib\site-packages\edk2toolext\edk2_invocable.py", line 332, in ParseCommandLineOptions self.PlatformModule = import_module_by_file_name(os.path.abspath(settingsArg.platform_module)) File "f:\edk2\.venv\lib\site-packages\edk2toollib\utility_functions.py", line 406, in import_module_by_file_name spec.loader.exec_module(ImportedModule) File "<frozen importlib._bootstrap_external>", line 783, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "F:\edk2\.pytool\CISettings.py", line 11, in <module> from edk2toolext.invocables.edk2_ci_build import CiBuildSettingsManager File "f:\edk2\.venv\lib\site-packages\edk2toolext\invocables\edk2_ci_build.py", line 22, in <module> from edk2toollib.uefi.edk2.path_utilities import Edk2Path File "f:\edk2\.venv\lib\site-packages\edk2toollib\uefi\edk2\path_utilities.py", line 17, in <module> class Edk2Path(object): File "f:\edk2\.venv\lib\site-packages\edk2toollib\uefi\edk2\path_utilities.py", line 277, in Edk2Path def GetContainingModules(self, input_path: str) -> list[str]: TypeError: 'type' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "F:\edk2\.venv\Scripts\stuart_setup.exe\__main__.py", line 7, in <module> File "f:\edk2\.venv\lib\site-packages\edk2toolext\invocables\edk2_setup.py", line 229, in main Edk2PlatformSetup().Invoke() File "f:\edk2\.venv\lib\site-packages\edk2toolext\base_abstract_invocable.py", line 200, in Invoke self.ParseCommandLineOptions() File "f:\edk2\.venv\lib\site-packages\edk2toolext\edk2_invocable.py", line 344, in ParseCommandLineOptions Module = self.PlatformModule AttributeError: 'Edk2PlatformSetup' object has no attribute 'PlatformModule' Anybody can help? Thanks! |
|