| Summary: | createrepo fails if lzma is not installed on Fedora 16 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jay Dobies <jason.dobies> |
| Component: | createrepo | Assignee: | Luke Macken <lmacken> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | james.antill, lmacken, pfrields, pkilambi |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-13 16:09:02 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Jay Dobies
2011-12-13 13:46:10 UTC
This looks like a missing dependency in createrepo. Looking at the createrepo code this happens when createrepo is not able to import lzma module.
If i do,
$ yum install pyliblzma
this error will go away. reassigning to createrepo component.
more info on traceback,
ModifyRepoError: Traceback (most recent call last):
File "/usr/share/createrepo/modifyrepo.py", line 217, in <module>
ret = main(sys.argv[1:])
File "/usr/share/createrepo/modifyrepo.py", line 210, in main
repomd.add(metadata, mdtype=opts.mdtype)
File "/usr/share/createrepo/modifyrepo.py", line 123, in add
newmd = compressOpen(destmd, mode='wb', compress_type=self.compress_type)
File "/usr/lib/python2.7/site-packages/createrepo/utils.py", line 129, in compressOpen
return lzma.LZMAFile(fn, mode)
AttributeError: 'NoneType' object has no attribute 'LZMAFile'
looking at createrepo/utils.py
try:
import lzma
_available_compression.append('xz')
except ImportError:
lzma = None
if lzma is not able to import, it defaults to None, but the compressOpen method tryies to do a return lzma.LZMAFile(fn, mode) even if lzma is None.
createrepo in updates-testing has this requirement. |