Hi Raphael, > -----Original Message----- > From: [email protected] [mailto:meta-xilinx- > [email protected]] On Behalf Of Raphael Cotty > Sent: Sunday, January 08, 2017 7:21 AM > To: [email protected] > Subject: Re: [meta-xilinx] [meta-xilinx-tools] > > After some investigation I found that from yocto 2.2 (morty) the minimum > version > for python is 3.4.0. > > Package python_pyyaml is compiled with python2.7. > > > I am trying to update python_pyyaml to be build with python3 without success, > for > the moment. >
I am working on the same issue, I have update the python-pyyaml recipe to be built with python 3.5 (Morty version of python) but the import still fails. I changed only couple of lines DEPENDS = "libyaml python3-cython-native" and inherit distutils3 in meta-python/recipes-devtools/python/python-pyyaml_3.12.bb recipe Thanks Manju > 2016-12-17 14:05 GMT+01:00 Raphael Cotty <[email protected] > <mailto:[email protected]> >: > > > I am trying to build to build the fsbl from meta-xilinx-tools but I get > this > error: > > ERROR: fsbl-0.2+xilinx+gitAUTOINC+a931a8d447-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: '/home/raphael/src/yocto/morty/poky/meta-xilinx- > tools/classes/xsctyaml.bbclass', lineno: 24, function: do_create_yaml > 0020: > 0021:python do_create_yaml() { > 0022: import sys, os > 0023: > os.sys.path.append(os.path.join(d.getVar('STAGING_DIR_NATIVE', > True),d.getVar('PYTHON_SITEPACKAGES_DIR', True)[1::])) > *** 0024: import yaml > 0025: yaml_dict = {} > 0026: > 0027: appconfig = (d.getVar("YAML_APP_CONFIG", True) or > "").split() > 0028: if appconfig: > File: '/home/raphael/src/yocto/morty/poky/build/tmp- > glibc/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/yaml/__init__.py', > lineno: 2, function: <module> > 0001: > *** 0002:from error import * > 0003: > 0004:from tokens import * > 0005:from events import * > 0006:from nodes import * > Exception: ImportError: No module named 'error' > > > My build configuration: > BB_VERSION = "1.32.0" > BUILD_SYS = "x86_64-linux" > NATIVELSBSTRING = "Ubuntu-16.04" > TARGET_SYS = "arm-cascade-linux-gnueabi" > MACHINE = "cascade-zynq7" > DISTRO = "cascade" > DISTRO_VERSION = "3.2.0" > TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard > cortexa9" > TARGET_FPU = "hard" > meta > meta-poky > meta-yocto-bsp = "morty:73454473d7c286c41ee697f74052fed03c79f9f5" > meta-xilinx = "master:abad77439a8f0aab1157d046720df8c541d1a885" > meta-xilinx-tools = "master:5ef795d3e4cf2f57cb63cc2bbab41dd753a8463d" > meta-qt5 = "morty:9aa870eecf6dc7a87678393bd55b97e21033ab48" > meta = "morty:c8d96b10ee3bc2eae0fd269d2564286fd0bc82ed" > meta-oe > meta-python = "morty:659d9d3f52bad33d7aa1c63e25681d193416d76e" > > > Thanks > > > Raphael > > This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately. -- _______________________________________________ meta-xilinx mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-xilinx
