python3-paramiko: fixing runtime dependencies
PATCH 1/1 python3-paramiko: fixing runtime dependencies
From: Siming Yuan <[email protected]>
added rdepends to bcrypt, cryptography, pynacl as required by the actual python package
--- .../recipes-devtools/python/python3-paramiko_2.7.2.bb | 5 +++++ 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python3-paramiko_2.7.2.bb +5 -0
@@ -12,3 +12,8 @@ inherit pypi setuptools3 CLEANBROKEN = "1" +RDEPENDS_${PN} += "\ + ${PYTHON_PN}-bcrypt \ + ${PYTHON_PN}-cryptography \ + ${PYTHON_PN}-pynacl \ +"
Signature · 1 line
2.28.0
Quoted 7 lines · Khem Raj
From: Siming Yuan <[email protected]>
added rdepends to bcrypt, cryptography, pynacl as required by the actual python package
Signed-off-by Siming Yuan <[email protected]>Signed-off-by Khem Raj <[email protected]>
Overlooked this one until now, sorry. Looks like it's still missing something. Installing python3-paramiko on core-image-minimal, I see:
root@qemux86-64:~# python3 Python 3.8.5 (default, Jul 20 2020, 13:26:22) [GCC 10.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.
Quoted 1 line
Quoted 1 line
Quoted 1 line
import paramiko
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/site-packages/paramiko/__init__.py", line 22, in <module> from paramiko.transport import SecurityOptions, Transport
File "/usr/lib/python3.8/site-packages/paramiko/transport.py", line 37, in <module> from paramiko import util
File "/usr/lib/python3.8/site-packages/paramiko/util.py", line 34, in <module> from paramiko.config import SSHConfig
File "/usr/lib/python3.8/site-packages/paramiko/config.py", line 25, in <module> import getpass
ModuleNotFoundError: No module named 'getpass'
Quoted 22 lines
Quoted 1 line
Quoted 1 line
--- .../recipes-devtools/python/python3-paramiko_2.7.2.bb | 5 +++++ 1 file changed, 5 insertions(+)meta-python/recipes-devtools/python/python3-paramiko_2.7.2.bb +5
-0@@ -12,3 +12,8 @@ inherit pypi setuptools3 CLEANBROKEN = "1" +RDEPENDS_${PN} += "\ + ${PYTHON_PN}-bcrypt \ + ${PYTHON_PN}-cryptography \ + ${PYTHON_PN}-pynacl \ +"
Quoted 19 lines · Trevor Gamblin
On 10/7/20 1:25 AM, Khem Raj wrote:
From: Siming Yuan <[email protected]>
added rdepends to bcrypt, cryptography, pynacl as required by the actual python package
Signed-off-by Siming Yuan <[email protected]>Signed-off-by Khem Raj <[email protected]>Overlooked this one until now, sorry. Looks like it's still missing something. Installing python3-paramiko on core-image-minimal, I see:
root@qemux86-64:~# python3 Python 3.8.5 (default, Jul 20 2020, 13:26:22) [GCC 10.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.Quoted 1 line
Quoted 1 line
Quoted 1 line
import paramiko
Quoted 11 lines
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/site-packages/paramiko/__init__.py", line 22, in <module>
from paramiko.transport import SecurityOptions, Transport
File "/usr/lib/python3.8/site-packages/paramiko/transport.py", line 37, in <module>
from paramiko import util
File "/usr/lib/python3.8/site-packages/paramiko/util.py", line 34, in <module>
from paramiko.config import SSHConfig
File "/usr/lib/python3.8/site-packages/paramiko/config.py", line 25, in <module>
import getpass
ModuleNotFoundError: No module named 'getpass'
right, I think it should rdepend on python3-unixadmin which provides getpass module.
Quoted 23 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
--- .../recipes-devtools/python/python3-paramiko_2.7.2.bb | 5 +++++ 1 file changed, 5 insertions(+)meta-python/recipes-devtools/python/python3-paramiko_2.7.2.bb +5
-0@@ -12,3 +12,8 @@ inherit pypi setuptools3 CLEANBROKEN = "1" +RDEPENDS_${PN} += "\ + ${PYTHON_PN}-bcrypt \ + ${PYTHON_PN}-cryptography \ + ${PYTHON_PN}-pynacl \ +"
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Siming Yuan (siyuan)
Hi
getpass is a built-in python module though
OE has more granular packaging, so as suggested in last reply please send a new revision which has the needed dependency added
Quoted 96 lines
Siming Yuan
pyATS Development: cs.co/pyatsCisco DevX Engineering: devx.cisco.com
From: Trevor Gamblin <[email protected]>
Date: Tuesday, October 13, 2020 at 9:00 PM
To: Khem Raj <[email protected]>, "[email protected]" <[email protected]>
Cc: Siming Yuan <[email protected]>
Subject: Re: [oe] [meta-python][PATCH] python3-paramiko: fixing runtime dependenciesOn 10/7/20 1:25 AM, Khem Raj wrote:
From: Siming Yuan <[email protected]>
added rdepends to bcrypt, cryptography, pynacl as required by the
actual python package
Signed-off-by Siming Yuan <[email protected]>Signed-off-by Khem Raj <[email protected]>Overlooked this one until now, sorry. Looks like it's still missing something. Installing python3-paramiko on core-image-minimal, I see:
root@qemux86-64:~# python3 Python 3.8.5 (default, Jul 20 2020, 13:26:22) [GCC 10.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.Quoted 1 line
Quoted 1 line
Quoted 1 line
import paramiko
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/site-packages/paramiko/__init__.py", line 22, in <module>
from paramiko.transport import SecurityOptions, Transport
File "/usr/lib/python3.8/site-packages/paramiko/transport.py", line 37, in <module>
from paramiko import util
File "/usr/lib/python3.8/site-packages/paramiko/util.py", line 34, in <module>
from paramiko.config import SSHConfig
File "/usr/lib/python3.8/site-packages/paramiko/config.py", line 25, in <module>
import getpass
ModuleNotFoundError: No module named 'getpass'Quoted 1 line
Quoted 1 line
Quoted 1 line
---
.../recipes-devtools/python/python3-paramiko_2.7.2.bb | 5 +++++1 file changed, 5 insertions(+)meta-python/recipes-devtools/python/python3-paramiko_2.7.2.bb +0
-0index
324847c31b..1b81171f68100644--- a/meta-python/recipes-devtools/python/python3-paramiko_2.7.2.bb
+++ b/meta-python/recipes-devtools/python/python3-paramiko_2.7.2.bb
meta-python/recipes-devtools/python/python3-paramiko_2.7.2.bb +5
-0@@ -12,3 +12,8 @@ inherit pypi setuptools3 CLEANBROKEN = "1" +RDEPENDS_${PN} += "\ + ${PYTHON_PN}-bcrypt \ + ${PYTHON_PN}-cryptography \ + ${PYTHON_PN}-pynacl \ +"
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Siming Yuan (siyuan)
Hi
I'm not sure - where I can find that module. Grepp'ed through the sources and couldn’t find a reference to it in any recipes.
First time to OE sources, my apologies. Any hints?
No worries. In OE, the python standard library is split into multiple recipes. It may not be immediately obvious how it's done if you look at the python3 recipe itself, but if you look in the tmp directory for the python3 build artifacts (e.g. in tmp/work/core2-64-poky-linux/python3/3.8.5-r0/packages-split) you will see the results.
Trevor
Quoted 117 lines
Siming Yuan
pyATS Development: cs.co/pyats <https://cs.co/pyats>
Cisco DevX Engineering: devx.cisco.com <http://devx.cisco.com>On 2020-10-14, 1:27 AM, "Khem Raj" <[email protected]> wrote:
On Tue, Oct 13, 2020 at 6:43 PM Siming Yuan (siyuan) <[email protected]> wrote: > > Hi > > > > getpass is a built-in python module though > OE has more granular packaging, so as suggested in last reply please send a new revision which has the needed dependency added > > > Siming Yuan > pyATS Development: cs.co/pyats > > Cisco DevX Engineering: devx.cisco.com > > > > > > From: Trevor Gamblin <[email protected]> > Date: Tuesday, October 13, 2020 at 9:00 PM > To: Khem Raj <[email protected]>, "[email protected]" <[email protected]> > Cc: Siming Yuan <[email protected]> > Subject: Re: [oe] [meta-python][PATCH] python3-paramiko: fixing runtime dependencies > > > > > > On 10/7/20 1:25 AM, Khem Raj wrote: > > From: Siming Yuan <[email protected]> > > > > added rdepends to bcrypt, cryptography, pynacl as required by the > > actual python package > > > > Signed-off-by: Siming Yuan <[email protected]> > > Signed-off-by: Khem Raj <[email protected]> > > Overlooked this one until now, sorry. Looks like it's still missing something. Installing python3-paramiko on core-image-minimal, I see: > > root@qemux86-64:~# python3 > Python 3.8.5 (default, Jul 20 2020, 13:26:22) > [GCC 10.2.0] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import paramiko > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python3.8/site-packages/paramiko/__init__.py", line 22, in <module> > from paramiko.transport import SecurityOptions, Transport > File "/usr/lib/python3.8/site-packages/paramiko/transport.py", line 37, in <module> > from paramiko import util > File "/usr/lib/python3.8/site-packages/paramiko/util.py", line 34, in <module> > from paramiko.config import SSHConfig > File "/usr/lib/python3.8/site-packages/paramiko/config.py", line 25, in <module> > import getpass > ModuleNotFoundError: No module named 'getpass' > >>> > > --- > > .../recipes-devtools/python/python3-paramiko_2.7.2.bb | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/meta-python/recipes-devtools/python/python3-paramiko_2.7.2.bb b/meta-python/recipes-devtools/python/python3-paramiko_2.7.2.bb > > index 324847c31b..1b81171f68 100644 > > --- a/meta-python/recipes-devtools/python/python3-paramiko_2.7.2.bb > > +++ b/meta-python/recipes-devtools/python/python3-paramiko_2.7.2.bb > > @@ -12,3 +12,8 @@ inherit pypi setuptools3 > > > > CLEANBROKEN = "1" > > > > +RDEPENDS_${PN} += "\ > > + ${PYTHON_PN}-bcrypt \ > > + ${PYTHON_PN}-cryptography \ > > + ${PYTHON_PN}-pynacl \ > > +" > > > > > >