Hi Noor, > -----Original Message----- > From: meta-xilinx-boun...@yoctoproject.org [mailto:meta-xilinx- > boun...@yoctoproject.org] On Behalf Of Ahsan, Noor > Sent: Thursday, June 28, 2018 2:32 AM > To: meta-xil...@lists.yoctoproject.org > Subject: [meta-xilinx] [meta-xilinx-tools] error while building pmu-firmware > > Hello, > > > > I was trying to build pmu-firmware and faced following error > > > > ERROR: pmu-firmware-2018.2+gitAUTOINC+6e82c0183b-r0 do_create_yaml: > Error executing a python function in exec_python_func() autogenerated: > > > > The stack trace of python calls that resulted in this exception/failure was: > > File: 'exec_python_func() autogenerated', lineno: 2, function: <module> > > 0001: > > *** 0002:do_create_yaml(d) > > 0003: > > File: '/data/noor/mel/releases/elm/main/meta-xilinx- > tools/classes/xsctyaml.bbclass', lineno: 64, function: do_create_yaml > > 0060: > > 0061:python do_create_yaml() { > > 0062: import sys, os > > 0063: > os.sys.path.append(os.path.join(d.getVar('RECIPE_SYSROOT_NATIVE'),d.getVar('PY > THON_SITEPACKAGES_DIR')[1::])) > > *** 0064: import yaml > > 0065: yaml_dict = {} > > 0066: > > 0067: appconfig = (d.getVar("YAML_APP_CONFIG", True) or "").split() > > 0068: if appconfig: > > Exception: ImportError: No module named 'yaml' > > > > ERROR: pmu-firmware-2018.2+gitAUTOINC+6e82c0183b-r0 do_create_yaml: > Function failed: do_create_yaml > > ERROR: Logfile of failure stored in: > /data/noor/mel/releases/builds/elm/main/build_ultrazed/tmp/work/ultrazed_eg_ > iocc_mel-mel-linux/pmu-firmware/2018.2+gitAUTOINC+6e82c0183b- > r0/temp/log.do_create_yaml.20553 > > ERROR: Task (/data/noor/mel/releases/elm/main/meta-xilinx-tools/recipes- > bsp/pmu-firmware/pmu-firmware_git.bb:do_create_yaml) failed with exit code '1' > > > > Although we this line in class just before importing yaml > > > > os.sys.path.append(os.path.join(d.getVar('RECIPE_SYSROOT_NATIVE'),d.getVar('PY > THON_SITEPACKAGES_DIR')[1::])) > > https://github.com/Xilinx/meta-xilinx-tools/blob/rel- > v2018.2/classes/xsctyaml.bbclass#L63 > > > > but I think this is not correct as for 64bit architecture the > PYTHON_SITEPACKAGES_DIR is set to /usr/lib64/python3.5/site-packages but > python native will be location in /usr/lib/.... not in /usr/lib64. This will > cause the > above error that I am getting. Have anybody seen this issue? >
Can you try installing it on the host using pip3 install pyyaml Thanks, Manju -- _______________________________________________ meta-xilinx mailing list meta-xilinx@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-xilinx