Skip to contentSkip to conversation

python3-pysocks: add python3-logging to RDEPENDS

PATCH New Trevor Gamblin 1 participant 1 message Apr 29, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-pysocks: add python3-logging to RDEPENDS

python3-pysocks uses the logging module, but it isn't in the RDEPENDS list:

root@qemux86-64:~# python3
Python 3.8.2 (default, Feb 25 2020, 10:39:28)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Quoted 1 line
Quoted 1 line
Quoted 1 line

import socks

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/site-packages/socks.py", line 9, in <module>
import logging
ModuleNotFoundError: No module named 'logging'

Add it to RDEPENDS to fix the ModuleNotFoundError.

---
 meta-python/recipes-devtools/python/python3-pysocks_1.7.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-pysocks_1.7.1.bb +1 -0
index e311904fc..d0db8a063 100644
@@ -12,6 +12,7 @@ inherit pypi setuptools3
 RDEPENDS_${PN}_class-target += "\
     ${PYTHON_PN}-email \
     ${PYTHON_PN}-io \
+    ${PYTHON_PN}-logging \
     ${PYTHON_PN}-netclient \
     ${PYTHON_PN}-shell \
 "
Signature · 1 line
2.17.1