More info. This script is being called /var/mentor/sfarooq/MEL/181206_1816/install_uno/mel/11/workspace/build/tmp/work/corei7-64-mel-linux/ovmf/git-r0/recipe-sysroot-native/usr/bin/edk2_basetools/BaseTools/BinWrappers/PosixLike/build
Which is calling python directly. We get it executed from tmp/hosttools/python which is symbolic link to /usr/local/bin/python. Noor From: [email protected] [mailto:[email protected]] On Behalf Of Ahsan, Noor Sent: Friday, December 28, 2018 5:49 PM To: Ricardo Neri <[email protected]> Cc: [email protected] Subject: [OE-core] ovmf fails when python sqlite module is not installed on host Hello, While building ovmf recipe I faced one issue regarding sqlite python module. The recipe is trying to access host python packages in order to build it. On my system I had multiple puthon version installed and the one which Ovmf was picking did not had sqlite module installed so I got this error Copying $EDK_TOOLS_PATH/Conf/target.template to /var/mentor/sfarooq/MEL/181206_1816/myproject_uno/workspace/build/tmp/work/corei7-64-mel-linux/ovmf/git-r0/git/Conf/target.txt using prebuilt tools Running edk2 build for OvmfPkgX64 Traceback (most recent call last): File "/var/mentor/sfarooq/MEL/181206_1816/myproject_uno/workspace/build/tmp/work/corei7-64-mel-linux/ovmf/git-r0/recipe-sysroot-native/usr/bin/edk2_basetools/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 42, in <module> from AutoGen.AutoGen import * File "/var/mentor/sfarooq/MEL/181206_1816/myproject_uno/workspace/build/tmp/work/corei7-64-mel-linux/ovmf/git-r0/recipe-sysroot-native/usr/bin/edk2_basetools/BaseTools/Source/Python/AutoGen/AutoGen.py", line 36, in <module> from GenFds.FdfParser import * File "/var/mentor/sfarooq/MEL/181206_1816/myproject_uno/workspace/build/tmp/work/corei7-64-mel-linux/ovmf/git-r0/recipe-sysroot-native/usr/bin/edk2_basetools/BaseTools/Source/Python/GenFds/FdfParser.py", line 21, in <module> import Fd File "/var/mentor/sfarooq/MEL/181206_1816/myproject_uno/workspace/build/tmp/work/corei7-64-mel-linux/ovmf/git-r0/recipe-sysroot-native/usr/bin/edk2_basetools/BaseTools/Source/Python/GenFds/Fd.py", line 19, in <module> import Fv File "/var/mentor/sfarooq/MEL/181206_1816/myproject_uno/workspace/build/tmp/work/corei7-64-mel-linux/ovmf/git-r0/recipe-sysroot-native/usr/bin/edk2_basetools/BaseTools/Source/Python/GenFds/Fv.py", line 24, in <module> import AprioriSection File "/var/mentor/sfarooq/MEL/181206_1816/myproject_uno/workspace/build/tmp/work/corei7-64-mel-linux/ovmf/git-r0/recipe-sysroot-native/usr/bin/edk2_basetools/BaseTools/Source/Python/GenFds/AprioriSection.py", line 21, in <module> import FfsFileStatement File "/var/mentor/sfarooq/MEL/181206_1816/myproject_uno/workspace/build/tmp/work/corei7-64-mel-linux/ovmf/git-r0/recipe-sysroot-native/usr/bin/edk2_basetools/BaseTools/Source/Python/GenFds/FfsFileStatement.py", line 29, in <module> from GuidSection import GuidSection File "/var/mentor/sfarooq/MEL/181206_1816/myproject_uno/workspace/build/tmp/work/corei7-64-mel-linux/ovmf/git-r0/recipe-sysroot-native/usr/bin/edk2_basetools/BaseTools/Source/Python/GenFds/GuidSection.py", line 30, in <module> from GenFds import FindExtendTool File "/var/mentor/sfarooq/MEL/181206_1816/myproject_uno/workspace/build/tmp/work/corei7-64-mel-linux/ovmf/git-r0/recipe-sysroot-native/usr/bin/edk2_basetools/BaseTools/Source/Python/GenFds/GenFds.py", line 25, in <module> from Workspace.WorkspaceDatabase import WorkspaceDatabase File "/var/mentor/sfarooq/MEL/181206_1816/myproject_uno/workspace/build/tmp/work/corei7-64-mel-linux/ovmf/git-r0/recipe-sysroot-native/usr/bin/edk2_basetools/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 18, in <module> import sqlite3 File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module> from dbapi2 import * File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module> from _sqlite3 import * ImportError: No module named _sqlite3 WARNING: exit code 1 from a shell command. I also inherited the recipe with python3native but it is still accessing host python. Can you guide me how we can modify this recipe so that it start using build system python3 packages. Noor
-- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
