Bug 10122

Summary: python3-gitdb missing zlib 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:19:30 UTC
When trying to import the python gitdb module, we get the following error:

>>> import gitdb  
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.5/site-packages/gitdb/__init__.py", line 37, in <module>
    from gitdb.base import *
  File "/usr/lib/python3.5/site-packages/gitdb/base.py", line 8, in <module>
    from gitdb.fun import (
  File "/usr/lib/python3.5/site-packages/gitdb/fun.py", line 9, in <module>
    import zlib
ImportError: No module named 'zlib'


Stating that the hashlib module is missing, the module needs to be added to the python3-gitdb recipe as a runtime dependency.
Comment 1 Alejandro Hernandez 2016-08-11 20:26:45 UTC
(In reply to comment #0)
> When trying to import the python gitdb module, we get the following error:
> 
> >>> import gitdb  
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python3.5/site-packages/gitdb/__init__.py", line 37, in
> <module>
>     from gitdb.base import *
>   File "/usr/lib/python3.5/site-packages/gitdb/base.py", line 8, in <module>
>     from gitdb.fun import (
>   File "/usr/lib/python3.5/site-packages/gitdb/fun.py", line 9, in <module>
>     import zlib
> ImportError: No module named 'zlib'
> 
> 
> Stating that the hashlib module is missing, the module needs to be added to
> the python3-gitdb recipe as a runtime dependency.

Typo there: 'zlib' instead of 'hashlib'

The module zlib is not found within the python3 manifest file, so it needs to be added, it  should probably be added to the python3-compression package.