Bug 10122 - python3-gitdb missing zlib dependency
Summary: python3-gitdb missing zlib 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:19 UTC by Alejandro Hernandez
Modified: 2016-08-22 16:17 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: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.