Bug 10124 - python3-subprocess missing signal dependency
Summary: python3-subprocess missing signal dependency
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.4.5
Assignee: Alejandro Hernandez
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 9757
  Show dependency tree
 
Reported: 2016-08-11 20:45 UTC by Alejandro Hernandez
Modified: 2016-08-22 16:19 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Hernandez 2016-08-11 20:45:29 UTC
When trying to import the python3-git module, we get the following error:

Python 3.5.2 (default, Aug 11 2016, 19:05:07)   
[GCC 6.1.1 20160511] on linux  
Type "help", "copyright", "credits" or "license" for more information.  
>>> import git  
Traceback (most recent call last):  
  File "<stdin>", line 1, in <module>  
  File "/usr/lib/python3.5/site-packages/git/__init__.py", line 35, in <module>  
    from git.config import GitConfigParser  
  File "/usr/lib/python3.5/site-packages/git/config.py", line 21, in <module>  
    from git.util import LockFile  
  File "/usr/lib/python3.5/site-packages/git/util.py", line 13, in <module>  
    import platform  
  File "/usr/lib/python3.5/platform.py", line 117, in <module>  
    import sys, os, re, subprocess  
  File "/usr/lib/python3.5/subprocess.py", line 364, in <module>  
    import signal  
ImportError: No module named 'signal'  
>>>   

The signal module should be added as a runtime dependency to python3-git
Comment 1 Alejandro Hernandez 2016-08-11 20:50:35 UTC
(In reply to comment #0)
> When trying to import the python3-git module, we get the following error:
> 
> Python 3.5.2 (default, Aug 11 2016, 19:05:07)   
> [GCC 6.1.1 20160511] on linux  
> Type "help", "copyright", "credits" or "license" for more information.  
> >>> import git  
> Traceback (most recent call last):  
>   File "<stdin>", line 1, in <module>  
>   File "/usr/lib/python3.5/site-packages/git/__init__.py", line 35, in
> <module>  
>     from git.config import GitConfigParser  
>   File "/usr/lib/python3.5/site-packages/git/config.py", line 21, in
> <module>  
>     from git.util import LockFile  
>   File "/usr/lib/python3.5/site-packages/git/util.py", line 13, in <module>  
>     import platform  
>   File "/usr/lib/python3.5/platform.py", line 117, in <module>  
>     import sys, os, re, subprocess  
>   File "/usr/lib/python3.5/subprocess.py", line 364, in <module>  
>     import signal  
> ImportError: No module named 'signal'  
> >>>   
> 
> The signal module should be added as a runtime dependency to python3-git

The signal module is not found within the python3 manifest file, so it needs ot be added as a new package.
Comment 2 Alejandro Hernandez 2016-08-11 21:00:31 UTC
As a matter of fact the dependency should be added to python3-subprocess and not to python3-git
Comment 3 Alejandro Hernandez 2016-08-11 21:07:04 UTC
This module is also missing _posixsubprocess
Comment 4 Alejandro Hernandez 2016-08-11 21:07:17 UTC
This module is also missing selectors