-
Notifications
You must be signed in to change notification settings - Fork 714
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
ModuleNotFoundError: No module named 'pykwalify' #211
Comments
check https://layers.openembedded.org/ and if this is not there then perhaps you need to write one |
@kraj, I have added below recipe for 'pykwalify':
This recipe works fine. i.e. 'pykwalify' compile goes thorugh. However, I see below issue during runtime as
This issue is not seen when I add below:
|
this seems ok. if you add it to |
Following are the final working recipe and dependency patch from Abhishek: A)diff --git a/meta-python/recipes-devtools/python/python-dateutil.inc b/meta-python/recipes-devtools/python/python-dateutil.inc DEPENDS += "${PYTHON_PN}-setuptools-scm-native" +RDEPENDS_${PN} = "\
RDEPENDS_${PN}_class-target = "
meta-openembedded/meta-python/recipes-devtools/python/python3-pykwalify_1.7.0.bb: SUMMARY = "YAML/JSON validation library" SRC_URI[md5sum] = "58357f1d0f77de976e73dbd3660af75b" PYPI_PACKAGE = "pykwalify" DEPENDS = " RDEPENDS_${PN} = " BBCLASSEXTEND = "native" |
Hi Abhishek, Regards, |
@RajeshRavi-brcm , want to keep this issue open until these patches are merged. |
Prepare a proper patch and send either pull request or mail it to oe mailing list. |
@kraj I have send in proper patches via "openembedded-devel@lists.openembedded.org". |
thanks |
@kraj Are these patches merged? |
No they are in master-next please send V2 |
Submitted v2.
Does that mean you will need to revert the patch from master-next? |
yes thats normal, master-next is meant for integrating patches, so please fix and resend. |
Following error is seen by yocto autobuild with v2 patches:
Log: http://errors.yoctoproject.org/Errors/Details/403673/ @kraj , I have created patches by referring to other recipes in the meta-python directory. I have very limited knowledge on python and yocto. Additionally, I am not able to reproduce this issue locally. In my build setup, 'pykwalify' build goes through and I am able to use it in zephyr python scripts as well. It would be great if yocto/python expert can help us on this issue to resolve it properly and quickly.. |
@kraj , can you please help with this issue? |
perhaps you need something like
in do_compile maybe |
@kraj I don't see any of the other python3 recipe using this. Also as I mentioned in earlier comment, I am not able to reproduce this issue in my local build machine(Ubuntu 18.04). |
@kraj I have pushed v3 with suggested fix (I did |
@kraj Any updates? |
merged with 1f2c4c2 |
@kraj , Thanks. |
0.18.0, 2021-06-28 * Fix openembedded#209 Update freeze recurse into pyrsistent data structures and thaw to recurse into lists and dicts, Thanks @phil-arh for this! NB! This is a backwards incompatible change! To keep the old behaviour pass `strict=False` to freeze and thaw. * Fix openembedded#226, stop using deprecated exception.message. Thanks @hexagonrecursion for this! * Fix openembedded#211, add union operator to persistent maps. Thanks @bowbahdoe for this! * Fix openembedded#194, declare build dependencies through pyproject.toml. Thanks @jaraco for this! * Officially drop Python 3.5 support. * Fix openembedded#223, release wheels for all major platforms. Thanks @johnthagen for helping out with this! * Fix openembedded#221, KeyError obscured by TypeError if key is a tuple. Thanks @ganwell for this! * Fix LICENSE file name spelling. Thanks @ndowens and @barentsen for this! * Fix openembedded#216, add abstractmethod decorator for CheckedType and ABCMeta for _CheckedTypeMeta. Thanks @ss18 for this! * Fix openembedded#228, rename example classes in tests to avoid name clashes with pytest. -License-Update: Copyright year updated to 2021. Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
0.18.0, 2021-06-28 * Fix #209 Update freeze recurse into pyrsistent data structures and thaw to recurse into lists and dicts, Thanks @phil-arh for this! NB! This is a backwards incompatible change! To keep the old behaviour pass `strict=False` to freeze and thaw. * Fix #226, stop using deprecated exception.message. Thanks @hexagonrecursion for this! * Fix #211, add union operator to persistent maps. Thanks @bowbahdoe for this! * Fix #194, declare build dependencies through pyproject.toml. Thanks @jaraco for this! * Officially drop Python 3.5 support. * Fix #223, release wheels for all major platforms. Thanks @johnthagen for helping out with this! * Fix #221, KeyError obscured by TypeError if key is a tuple. Thanks @ganwell for this! * Fix LICENSE file name spelling. Thanks @ndowens and @barentsen for this! * Fix #216, add abstractmethod decorator for CheckedType and ABCMeta for _CheckedTypeMeta. Thanks @ss18 for this! * Fix #228, rename example classes in tests to avoid name clashes with pytest. -License-Update: Copyright year updated to 2021. Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
License-Update: Copyright year updated to 2022. Changelog: ========== Dropped support for legacy Pythons (2.7, 3.6 or older). Switched CI to GitHub Actions. Removed dependency on the py library (that was not properly specified as a dependency anyway). Fix skipping test in test_utils.py if appropriate VCS not available. Also fix typo. Contributed by Sam James in openembedded#211. Added support for pytest 7.2.0 by using pytest.hookimpl and pytest.hookspec to configure hooks. Contributed by Florian Bruhin in openembedded#224. Now no save is attempted if --benchmark-disable is used. Fixes openembedded#205. Contributed by Friedrich Delgado in openembedded#207. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
License-Update: Copyright year updated to 2022. Changelog: ========== Dropped support for legacy Pythons (2.7, 3.6 or older). Switched CI to GitHub Actions. Removed dependency on the py library (that was not properly specified as a dependency anyway). Fix skipping test in test_utils.py if appropriate VCS not available. Also fix typo. Contributed by Sam James in openembedded#211. Added support for pytest 7.2.0 by using pytest.hookimpl and pytest.hookspec to configure hooks. Contributed by Florian Bruhin in openembedded#224. Now no save is attempted if --benchmark-disable is used. Fixes openembedded#205. Contributed by Friedrich Delgado in openembedded#207. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
License-Update: Copyright year updated to 2022. Changelog: ========== Dropped support for legacy Pythons (2.7, 3.6 or older). Switched CI to GitHub Actions. Removed dependency on the py library (that was not properly specified as a dependency anyway). Fix skipping test in test_utils.py if appropriate VCS not available. Also fix typo. Contributed by Sam James in openembedded#211. Added support for pytest 7.2.0 by using pytest.hookimpl and pytest.hookspec to configure hooks. Contributed by Florian Bruhin in openembedded#224. Now no save is attempted if --benchmark-disable is used. Fixes openembedded#205. Contributed by Friedrich Delgado in openembedded#207. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
License-Update: Remove unnecessary and incorrect copyright notice. Changelog: ============ Set stacklevel=2 in deprecation warning for .text. (openembedded#210) Added .permissions attribute. (openembedded#211) Require Python 3.8 or later. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
We are building Zephyr RTOS using yocto. The latest version has dependency
on the python package known as "pykwalify".
When compiled, I get following error from zephyr:
| ModuleNotFoundError: No module named 'pykwalify'
I think the pykwalify package recipe needs to be added for successful compilation.
I don't find pykwalify Yocoto recipe anywhere.
Please correct me if I'm wrong.Or please point me to pykwalify recipe, if it already exists.
Thanks & Regards,
Rajesh
The text was updated successfully, but these errors were encountered: