Bug#884372: openshot-qt hangs at start: No module named 'PyQt5.QtWebKitWidgets'

2019-10-05 Thread Jordan Christiansen
I have a workaround for this. I noticed that I had PyQt5 installed in my 
~/.local/lib directory. This version had most of the PyQt5 submodules, 
but not QtWebKit or QtWebKitWidgets. When I removed my local libraries with


pip3 uninstall PyQt5

then openshot searched for all the PyQt5 modules in the system 
directories and was able to find QtWebKit.




Bug#884372: openshot-qt hangs at start: No module named 'PyQt5.QtWebKitWidgets'

2017-12-14 Thread Jean-Luc Coulon (f5ibh)
Package: openshot-qt
Version: 2.4.0-1
Severity: important
Tags: upstream

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

When I start openshot-qt, I get the log you can see below. Then the application 
stays in this state, nothing else happening.

I've tested with upstream package, I get the same problem.
If I use the upstream AppImage package, it works.

I've seen on upstream discussions the same kind of problem reported, and the 
answer is "use the AppImage".

You will see in the log it complains about missing PyQt5.QtWebKitWidgets module.
But the module is on the system from python-pyqt5 package.

ls /usr/lib/python2.7/dist-packages/PyQt5 | grep WebKitWidgets
QtWebKitWidgets.x86_64-linux-gnu_d.so
QtWebKitWidgets.x86_64-linux-gnu.so

and the related py/pyc files are there also:
ls /usr/lib/python2.7/dist-packages/PyQt5/uic/widget-plugins | grep -i webkit
qtwebkit.py
qtwebkit.pyc

Regards

Jean-Luc


openshot-qt
Loaded modules from installed directory: 
/usr/lib/python3/dist-packages/openshot_qt
  launch:INFO 
  launch:INFOOpenShot (version 2.4.0)
  launch:INFO 
 app:INFO openshot-qt version: 2.4.0
 app:INFO libopenshot version: 0.1.9
 app:INFO platform: 
Linux-4.15.0-rc3-i7-0.1-x86_64-with-debian-buster-sid
 app:INFO processor: 
 app:INFO machine: x86_64
 app:INFO python version: 3.6.4rc1
 app:INFO qt5 version: 5.9.1
 app:INFO pyqt5 version: 5.9
language:INFO Attempting to load qt_fr_FR.UTF-8 in 
'/home/jean-luc/.local/lib/python3.6/site-packages/PyQt5/Qt/translations'
language:INFO Attempting to load qt_fr in 
'/home/jean-luc/.local/lib/python3.6/site-packages/PyQt5/Qt/translations'
language:INFO Attempting to load fr_FR.UTF-8/LC_MESSAGES/OpenShot in 
'/usr/lib/python3/dist-packages/openshot_qt/locale'
language:INFO Attempting to load fr/LC_MESSAGES/OpenShot in 
'/usr/lib/python3/dist-packages/openshot_qt/locale'
language:INFO Successfully loaded fr/LC_MESSAGES/OpenShot in 
'/usr/lib/python3/dist-packages/openshot_qt/locale'
language:INFO Qt Detected Languages: ['fr-FR']
language:INFO LANG Environment Variable: fr_FR.UTF-8
language:INFO LOCALE Environment Variable: fr_FR
language:INFO Attempting to load qt_fr_FR.UTF-8 in 
'/home/jean-luc/.local/lib/python3.6/site-packages/PyQt5/Qt/translations'
language:INFO Attempting to load qt_fr in 
'/home/jean-luc/.local/lib/python3.6/site-packages/PyQt5/Qt/translations'
language:INFO Attempting to load qtbase_fr_FR.UTF-8 in 
'/home/jean-luc/.local/lib/python3.6/site-packages/PyQt5/Qt/translations'
language:INFO Successfully loaded qtbase_fr_FR.UTF-8 in 
'/home/jean-luc/.local/lib/python3.6/site-packages/PyQt5/Qt/translations'
language:INFO Attempting to load qt_fr_FR.UTF-8 in 
'/usr/lib/python3/dist-packages/openshot_qt/locale/QT'
language:INFO Attempting to load qt_fr in 
'/usr/lib/python3/dist-packages/openshot_qt/locale/QT'
language:INFO Attempting to load qtbase_fr_FR.UTF-8 in 
'/usr/lib/python3/dist-packages/openshot_qt/locale/QT'
language:INFO Attempting to load qtbase_fr in 
'/usr/lib/python3/dist-packages/openshot_qt/locale/QT'
language:INFO Attempting to load fr_FR.UTF-8/LC_MESSAGES/OpenShot in 
'/usr/lib/python3/dist-packages/openshot_qt/locale'
language:INFO Attempting to load fr/LC_MESSAGES/OpenShot in 
'/usr/lib/python3/dist-packages/openshot_qt/locale'
language:INFO Successfully loaded fr/LC_MESSAGES/OpenShot in 
'/usr/lib/python3/dist-packages/openshot_qt/locale'
language:INFO Exiting translation system (since we successfully loaded: 
fr_FR.UTF-8)
project_data:INFO Setting default profile to HDV 720 24p
 app:INFO Setting font to 
/usr/lib/python3/dist-packages/openshot_qt/images/fonts/Ubuntu-R.ttf
logger_libopenshot:INFO Connecting to libopenshot with debug port: 5556
 app:INFO Setting custom dark theme
  exceptions:ERROR Unhandled Exception
Traceback (most recent call last):
  File "/usr/bin/openshot-qt", line 11, in 
load_entry_point('openshot-qt==2.4.0', 'gui_scripts', 'openshot-qt')()
  File "/usr/lib/python3/dist-packages/openshot_qt/launch.py", line 70, in main
app = OpenShotApp(sys.argv)
  File "/usr/lib/python3/dist-packages/openshot_qt/classes/app.py", line 163, 
in __init__
from windows.main_window import MainWindow
  File "/usr/lib/python3/dist-packages/openshot_qt/windows/main_window.py", 
line 43, in 
from windows.views.timeline_webview import TimelineWebView
  File 
"/usr/lib/python3/dist-packages/openshot_qt/windows/views/timeline_webview.py", 
line 40, in 
from PyQt5.QtWebKitWidgets import QWebView
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'
 metrics:INFO Track exception: [200] 
http://www.openshot.org/exception/json/ | *old-exception-ignored*



- -- System Information:
Debian Release: buster/sid
  APT prefers unstable