Bug 1367034 - diffoscope: ImportError: No module named 'libarchive'
Summary: diffoscope: ImportError: No module named 'libarchive'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: diffoscope
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-15 10:55 UTC by biltong
Modified: 2016-12-07 07:54 UTC (History)
2 users (show)

Fixed In Version: diffoscope-62-1.fc23 diffoscope-62-1.fc25 diffoscope-62-1.fc24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-29 23:52:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description biltong 2016-08-15 10:55:49 UTC
Description of problem:
dnf install diffoscope fails.


Installed:
  diffoscope.noarch 54-1.fc24            python3-magic.noarch 5.25-6.fc24      
  python3-tlsh.x86_64 3.4.5-1.fc24

$ diffoscope
Traceback (most recent call last):
  File "/usr/bin/diffoscope", line 9, in <module>
    load_entry_point('diffoscope==54', 'console_scripts', 'diffoscope')()
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 547, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2720, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2380, in load
    return self.resolve()
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2386, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.5/site-packages/diffoscope/__main__.py", line 33, in <module>
    import diffoscope.comparators
  File "/usr/lib/python3.5/site-packages/diffoscope/comparators/__init__.py", line 38, in <module>
    from diffoscope.comparators.cpio import CpioFile
  File "/usr/lib/python3.5/site-packages/diffoscope/comparators/cpio.py", line 24, in <module>
    from diffoscope.comparators.libarchive import LibarchiveContainer, list_libarchive
  File "/usr/lib/python3.5/site-packages/diffoscope/comparators/libarchive.py", line 25, in <module>
    import libarchive
ImportError: No module named 'libarchive'



Version-Release number of selected component (if applicable):
diffoscope-54-1.fc24.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Fedora Update System 2016-11-15 19:03:47 UTC
diffoscope-62-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-30135ccb80

Comment 2 Fedora Update System 2016-11-15 19:03:55 UTC
diffoscope-62-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f137b0532a

Comment 3 Fedora Update System 2016-11-15 19:04:00 UTC
diffoscope-62-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-25032de555

Comment 4 Fedora Update System 2016-11-16 20:24:59 UTC
diffoscope-62-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-25032de555

Comment 5 Fedora Update System 2016-11-17 03:57:04 UTC
diffoscope-62-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f137b0532a

Comment 6 Fedora Update System 2016-11-20 21:53:39 UTC
diffoscope-62-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-30135ccb80

Comment 7 biltong 2016-11-22 20:51:22 UTC
Still broken in Fedora 25.

Comment 8 Zbigniew Jędrzejewski-Szmek 2016-11-22 23:05:33 UTC
(In reply to biltong from comment #7)
> Still broken in Fedora 25.

What does rpm -q diffoscope python3-libarchive-c output?

Comment 9 biltong 2016-11-23 12:19:47 UTC
$ rpm -q diffoscope python3-libarchive-c
diffoscope-54-1.fc25.noarch
package python3-libarchive-c is not installed

Comment 10 biltong 2016-11-23 12:29:58 UTC
If I install python3-libarchive-c the error goes away.

Repoquery doesn't list that as a dependency of diffoscope:

# repoquery --requires diffoscope
/usr/bin/python3
python(abi) = 3.5
python3-magic
python3-tlsh

Comment 11 Zbigniew Jędrzejewski-Szmek 2016-11-23 14:02:13 UTC
Well, yes, the version you have is buggy. The fix was made in diffoscope-62-1, which you'll get if you update.

Comment 12 Fedora Update System 2016-11-29 23:52:25 UTC
diffoscope-62-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2016-11-30 05:27:17 UTC
diffoscope-62-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2016-12-07 07:54:25 UTC
diffoscope-62-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.