Bug 10124

Summary: python3-subprocess missing signal dependency
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Alejandro Hernandez <alejandro.hernandez>
Component: coreAssignee: Alejandro Hernandez <alejandro.hernandez>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: benjamin.esquivel, meta.mr.watcher, meta.watcher
Version: 2.1   
Target Milestone: 1.4.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 9757    

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