Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685102 - media-video/vidcutter::jorgicio - ModuleNotFoundError: No module named 'PyQt5.QtDBus'
Summary: media-video/vidcutter::jorgicio - ModuleNotFoundError: No module named 'PyQt5...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: jorgicio
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-05 13:19 UTC by Scall
Modified: 2019-05-06 16:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scall 2019-05-05 13:19:45 UTC
All the vidcutter versions (5.5.0, 6.0.0 and 9999) available in the overlay crash if "dev-python/PyQt5" has not been compiled with the "dbus" USE flag:

> vidcutter # 5.5.0
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/vidcutter", line 11, in <module>
    load_entry_point('vidcutter==5.5.0', 'gui_scripts', 'vidcutter')()
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 487, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 2728, in load_entry_point
    return ep.load()
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 2346, in load
    return self.resolve()
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 2352, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib64/python3.6/site-packages/vidcutter/__main__.py", line 40, in <module>
    from vidcutter.videocutter import VideoCutter
  File "/usr/lib64/python3.6/site-packages/vidcutter/videocutter.py", line 47, in <module>
    from vidcutter.libs.taskbarprogress import TaskbarProgress
  File "/usr/lib64/python3.6/site-packages/vidcutter/libs/taskbarprogress.py", line 28, in <module>
    from PyQt5.QtDBus import QDBusConnection, QDBusMessage
ModuleNotFoundError: No module named 'PyQt5.QtDBus'

> vidcutter # 6.0.0 and 9999
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/vidcutter", line 11, in <module>
    load_entry_point('vidcutter==6.0.0', 'gui_scripts', 'vidcutter')()
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 487, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 2728, in load_entry_point
    return ep.load()
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 2346, in load
    return self.resolve()
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 2352, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib64/python3.6/site-packages/vidcutter/__main__.py", line 41, in <module>
    from vidcutter.videocutter import VideoCutter
  File "/usr/lib64/python3.6/site-packages/vidcutter/videocutter.py", line 60, in <module>
    from vidcutter.libs.taskbarprogress import TaskbarProgress
  File "/usr/lib64/python3.6/site-packages/vidcutter/libs/taskbarprogress.py", line 31, in <module>
    from PyQt5.QtDBus import QDBusConnection, QDBusMessage
ModuleNotFoundError: No module named 'PyQt5.QtDBus'


Recompiling "dev-python/PyQt5" with the "dbus" USE flag solves the issue, so the line related to the dependency in the ebuilds should be changed from:

    >=dev-python/PyQt5-5.7[multimedia,${PYTHON_USEDEP}]

into:

    >=dev-python/PyQt5-5.7[dbus,multimedia,${PYTHON_USEDEP}]
Comment 1 Scall 2019-05-06 13:18:16 UTC
Also, I think that "dev-python/PyQt5" should be specified in RDEPEND, instead of DEPEND, since PyQt5 is not required at build time and can be installed later (the same is true for "media-video/mediainfo").
Comment 2 jorgicio 2019-05-06 16:09:55 UTC
Thanks for the report! I just watched there and now the ebuild is fixed.

Also, I removed the 5.5.0 version because I didn't find it necessary, as the most "recent" version is from August, 2018.