Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python2 build failing at Ubuntu 18.04 with WSL2 #1

Open
andrecurvello opened this issue Jan 13, 2021 · 0 comments
Open

Python2 build failing at Ubuntu 18.04 with WSL2 #1

andrecurvello opened this issue Jan 13, 2021 · 0 comments

Comments

@andrecurvello
Copy link

andrecurvello commented Jan 13, 2021

Hello,

I'm trying to configure the build of the Multimedia Reference Image of Toradex with TotalCross, using their BSP 5.0, which is based on Yocto Dunfell.

After setting all the required layer dependencies for meta-totalcross (with the observation that I had to add meta-clang layer as well), I'm having this issue with meta-python2:

Loading cache: 100% |##########################################################################################################################################################################################################################| Time: 0:00:00Loaded 219 entries from dependency cache.
ERROR: /home/andrecurvello/BSP/oe-core-bsp-5.0-totalcross/build/../layers/meta-python2/recipes-devtools/python/python_2.7.18.bb: Error executing a python function in <code>:                                                                 | ETA:  --:--:--
The stack trace of python calls that resulted in this exception/failure was:
File: '<code>', lineno: 16, function: <module>
     0012:__anon_147__home_andrecurvello_BSP_oe_core_bsp_5_0_totalcross_build____layers_openembedded_core_meta_classes_sstate_bbclass(d)
     0013:__anon_20__home_andrecurvello_BSP_oe_core_bsp_5_0_totalcross_build____layers_openembedded_core_meta_classes_blacklist_bbclass(d)
     0014:__anon_177__home_andrecurvello_BSP_oe_core_bsp_5_0_totalcross_build____layers_openembedded_core_meta_classes_siteinfo_bbclass(d)
     0015:__anon_119__home_andrecurvello_BSP_oe_core_bsp_5_0_totalcross_build____layers_openembedded_core_meta_classes_ptest_bbclass(d)
 *** 0016:__anon_235__home_andrecurvello_BSP_oe_core_bsp_5_0_totalcross_build____layers_meta_python2_recipes_devtools_python_python_2_7_18_bb(d)
File: '/home/andrecurvello/BSP/oe-core-bsp-5.0-totalcross/build/../layers/meta-python2/recipes-devtools/python/python_2.7.18.bb', lineno: 199, function: __anon_235__home_andrecurvello_BSP_oe_core_bsp_5_0_totalcross_build____layers_meta_python2_recipes_devtools_python_python_2_7_18_bb
     0195:        manifest_str =  manifest_file.read()
     0196:        json_start = manifest_str.find('# EOC') + 6
     0197:        manifest_file.seek(json_start)
     0198:        manifest_str = manifest_file.read()
 *** 0199:        python_manifest = json.loads(manifest_str, object_pairs_hook=collections.OrderedDict)
     0200:
     0201:    include_pycs = d.getVar('INCLUDE_PYCS')
     0202:
     0203:    packages = d.getVar('PACKAGES').split()
File: '/usr/lib/python3.6/json/__init__.py', lineno: 367, function: loads
     0363:    if parse_int is not None:
     0364:        kw['parse_int'] = parse_int
     0365:    if parse_constant is not None:
     0366:        kw['parse_constant'] = parse_constant
 *** 0367:    return cls(**kw).decode(s)
File: '/usr/lib/python3.6/json/decoder.py', lineno: 339, function: decode
     0335:        """Return the Python representation of ``s`` (a ``str`` instance
     0336:        containing a JSON document).
     0337:
     0338:        """
 *** 0339:        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
     0340:        end = _w(s, end).end()
     0341:        if end != len(s):
     0342:            raise JSONDecodeError("Extra data", s, end)
     0343:        return obj
File: '/usr/lib/python3.6/json/decoder.py', lineno: 357, function: raw_decode
     0353:        """
     0354:        try:
     0355:            obj, end = self.scan_once(s, idx)
     0356:        except StopIteration as err:
 *** 0357:            raise JSONDecodeError("Expecting value", s, err.value) from None
     0358:        return obj, end
Exception: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

ERROR: Failed to parse recipe: /home/andrecurvello/BSP/oe-core-bsp-5.0-totalcross/build/../layers/meta-python2/recipes-devtools/python/python_2.7.18.bb

Would you be able to assist me in solving this issue, please?

My environment is Ubuntu 18.04 through WSL2 in a Windows 10 machine.

So far, I haven't faced any issues with other Yocto builds until now.

Best regards,
André Curvello

@andrecurvello andrecurvello changed the title Python2 failing at Ubuntu 18.04 with WSL2 Python2 build failing at Ubuntu 18.04 with WSL2 Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant