All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-python][PATCH] python3-asn1crypto: add python3-numbers to RDEPENDS
@ 2020-04-27 20:53 Trevor Gamblin
  0 siblings, 0 replies; only message in thread
From: Trevor Gamblin @ 2020-04-27 20:53 UTC (permalink / raw)
  To: openembedded-devel

The asn1crypto module relies on the fractions module from the
standard library, which is contained in the python3-numbers package,
but it is not in asn1crypto's RDEPENDS:

|>>> import asn1crypto.pdf
|Traceback (most recent call last):
|  File "<stdin>", line 1, in <module>
|  File "/usr/lib64/python3.8/site-packages/asn1crypto/pdf.py", line 10, in <module>
|    from .cms import CMSAttributeType, CMSAttribute
|  File "/usr/lib64/python3.8/site-packages/asn1crypto/cms.py", line 29, in <module>
|    from .algos import (
|  File "/usr/lib64/python3.8/site-packages/asn1crypto/algos.py", line 26, in <module>
|    from .core import (
|  File "/usr/lib64/python3.8/site-packages/asn1crypto/core.py", line 52, in <module>
|    from fractions import Fraction
|ModuleNotFoundError: No module named 'fractions'

Add it to fix the error.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
---
 meta-python/recipes-devtools/python/python3-asn1crypto_1.3.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-python/recipes-devtools/python/python3-asn1crypto_1.3.0.bb b/meta-python/recipes-devtools/python/python3-asn1crypto_1.3.0.bb
index 1b03c666a..0d38da989 100644
--- a/meta-python/recipes-devtools/python/python3-asn1crypto_1.3.0.bb
+++ b/meta-python/recipes-devtools/python/python3-asn1crypto_1.3.0.bb
@@ -18,6 +18,7 @@ RDEPENDS_${PN}_class-target += " \
     ${PYTHON_PN}-datetime \
     ${PYTHON_PN}-io \
     ${PYTHON_PN}-netclient \
+    ${PYTHON_PN}-numbers \
     ${PYTHON_PN}-shell \
 "
 
-- 
2.24.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-27 20:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-27 20:53 [meta-python][PATCH] python3-asn1crypto: add python3-numbers to RDEPENDS Trevor Gamblin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.