On 7/21/20 12:21 PM, Trevor Gamblin wrote:
pint needs setuptools and packaging to be imported correctly:

import pint
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python3.8/site-packages/pint/__init__.py", line 28, in 
<module>
     from .registry import LazyRegistry, UnitRegistry
   File "/usr/lib/python3.8/site-packages/pint/registry.py", line 49, in 
<module>
     import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Add them to RDEPENDS to fix this.
This is a mistake - already acked Ryan's patch to add python3-packaging. Will resend.

Signed-off-by: Trevor Gamblin <[email protected]>
---
  meta-python/recipes-devtools/python/python3-pint_0.14.bb | 5 +++++
  1 file changed, 5 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python3-pint_0.14.bb 
b/meta-python/recipes-devtools/python/python3-pint_0.14.bb
index 8e1630476..333b015a9 100644
--- a/meta-python/recipes-devtools/python/python3-pint_0.14.bb
+++ b/meta-python/recipes-devtools/python/python3-pint_0.14.bb
@@ -21,6 +21,11 @@ SRC_URI += " \
        file://run-ptest \
  "
+RDEPENDS_${PN} += " \
+    ${PYTHON_PN}-setuptools \
+    ${PYTHON_PN}-packaging \
+"
+
  RDEPENDS_${PN}-ptest += " \
        ${PYTHON_PN}-pytest \
  "


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#85845): 
https://lists.openembedded.org/g/openembedded-devel/message/85845
Mute This Topic: https://lists.openembedded.org/mt/75707088/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to