LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-25-2021, 03:51 PM   #1
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Rep: Reputation: Disabled
HELP - Openshot can't find a module.


I have been trying to run Openshot (from terminal mode) and this is the output that I get:
Code:
bash-4.3# openshot-qt
Loaded modules from installed directory: /usr/lib64/python3.7/site-packages/openshot_qt
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
         app:INFO ------------------------------------------------
         app:INFO             Fri Jun 25 16:33:58 2021            
         app:INFO               Starting new session              
         app:INFO ------------------------------------------------
         app:INFO             OpenShot (version 2.5.1)            
         app:INFO ------------------------------------------------
         app:INFO openshot-qt version: 2.5.1
         app:INFO libopenshot version: 0.2.5
         app:INFO platform: Linux-4.4.240-x86_64-Intel-R-_Core-TM-_i3-3240_CPU_@_3.40GHz-with-slackware-14.2
         app:INFO processor: Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz
         app:INFO machine: x86_64
         app:INFO python version: 3.7.2
         app:INFO qt5 version: 5.12.8
         app:INFO pyqt5 version: 5.13.2
    language:INFO Qt Detected Languages: ['en-US']
    language:INFO LANG Environment Variable: en_US
    language:INFO LOCALE Environment Variable: 
    language:INFO OpenShot Preference Language: Default
project_data:INFO Setting default profile to HD 720p 30 fps
ZmqLogger::Connection - Error binding to tcp://*:5556. Switching to an available port.
         app:INFO Setting font to /usr/lib64/python3.7/site-packages/openshot_qt/images/fonts/Ubuntu-R.ttf
ZmqLogger::Connection - Error binding to tcp://*:5556. Switching to an available port.
         app:INFO Setting custom dark theme
logger_libopenshot:INFO Connecting to libopenshot with debug port: 5556
  exceptions:ERROR Unhandled Exception
Traceback (most recent call last):
  File "/usr/bin/openshot-qt", line 11, in <module>
    load_entry_point('openshot-qt==2.5.1', 'gui_scripts', 'openshot-qt')()
  File "/usr/lib64/python3.7/site-packages/openshot_qt/launch.py", line 97, in main
    app = OpenShotApp(argv)
  File "/usr/lib64/python3.7/site-packages/openshot_qt/classes/app.py", line 220, in __init__
    from windows.main_window import MainWindow
  File "/usr/lib64/python3.7/site-packages/openshot_qt/windows/main_window.py", line 45, in <module>
    from windows.views.timeline_webview import TimelineWebView
  File "/usr/lib64/python3.7/site-packages/openshot_qt/windows/views/timeline_webview.py", line 42, in <module>
    from PyQt5.QtWebKitWidgets import QWebView
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'
How do I go about resolving that situation?
 
Old 06-25-2021, 04:07 PM   #2
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,344

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Im not 100% sure , but one of this ...

https://slackbuilds.org/repository/1...es/qt5-webkit/

https://slackbuilds.org/repository/1...python3-PyQt5/


When install slackbuilds you read the requires ?

This requires ...........bla bla bla.

Last edited by USUARIONUEVO; 06-25-2021 at 04:10 PM.
 
Old 06-25-2021, 04:30 PM   #3
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Original Poster
Rep: Reputation: Disabled
As far as I can tell, I have all of the dependencies installed (it compiled with no issues).
 
Old 06-25-2021, 06:10 PM   #4
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,344

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Quote:
Originally Posted by TheNutCase View Post
As far as I can tell, I have all of the dependencies installed (it compiled with no issues).
You can compile with no issues python projects , but later get error for missing python modules


You can have webkit for python2 but not for python3 ... or webkit or whatever ... your log says openshot goes for python3 , then probably you need some python3 module like the python3-PyQt5.

One easy way to see what are you loosing ..is usage of pip3 check.

Quote:
pip3 check
 
1 members found this post helpful.
Old 06-25-2021, 06:42 PM   #5
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Original Poster
Rep: Reputation: Disabled
Quote:
You can have webkit for python2 but not for python3 ... or webkit or whatever ... your log says openshot goes for python3 , then probably you need some python3 module like the python3-PyQt5.
I already have that installed.

And I think that 'pip3 check only works that way if I have openshot actually running.

Last edited by TheNutCase; 06-25-2021 at 06:54 PM.
 
Old 06-25-2021, 07:40 PM   #6
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,344

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Quote:
Originally Posted by TheNutCase View Post
I already have that installed.

And I think that 'pip3 check only works that way if I have openshot actually running.
really ?

If you think this , you dont know what is pip2 or pip3 and what things do.

No more replays , GOOD LUCK.
 
Old 06-25-2021, 08:32 PM   #7
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 917

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by TheNutCase View Post
I have been trying to run Openshot (from terminal mode) and this is the output that I get:
Code:
bash-4.3# openshot-qt
Loaded modules from installed directory: /usr/lib64/python3.7/site-packages/openshot_qt
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
         app:INFO ------------------------------------------------
         app:INFO             Fri Jun 25 16:33:58 2021            
         app:INFO               Starting new session              
         app:INFO ------------------------------------------------
         app:INFO             OpenShot (version 2.5.1)            
         app:INFO ------------------------------------------------
         app:INFO openshot-qt version: 2.5.1
         app:INFO libopenshot version: 0.2.5
         app:INFO platform: Linux-4.4.240-x86_64-Intel-R-_Core-TM-_i3-3240_CPU_@_3.40GHz-with-slackware-14.2
         app:INFO processor: Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz
         app:INFO machine: x86_64
         app:INFO python version: 3.7.2
         app:INFO qt5 version: 5.12.8
         app:INFO pyqt5 version: 5.13.2
    language:INFO Qt Detected Languages: ['en-US']
    language:INFO LANG Environment Variable: en_US
    language:INFO LOCALE Environment Variable: 
    language:INFO OpenShot Preference Language: Default
project_data:INFO Setting default profile to HD 720p 30 fps
ZmqLogger::Connection - Error binding to tcp://*:5556. Switching to an available port.
         app:INFO Setting font to /usr/lib64/python3.7/site-packages/openshot_qt/images/fonts/Ubuntu-R.ttf
ZmqLogger::Connection - Error binding to tcp://*:5556. Switching to an available port.
         app:INFO Setting custom dark theme
logger_libopenshot:INFO Connecting to libopenshot with debug port: 5556
  exceptions:ERROR Unhandled Exception
Traceback (most recent call last):
  File "/usr/bin/openshot-qt", line 11, in <module>
    load_entry_point('openshot-qt==2.5.1', 'gui_scripts', 'openshot-qt')()
  File "/usr/lib64/python3.7/site-packages/openshot_qt/launch.py", line 97, in main
    app = OpenShotApp(argv)
  File "/usr/lib64/python3.7/site-packages/openshot_qt/classes/app.py", line 220, in __init__
    from windows.main_window import MainWindow
  File "/usr/lib64/python3.7/site-packages/openshot_qt/windows/main_window.py", line 45, in <module>
    from windows.views.timeline_webview import TimelineWebView
  File "/usr/lib64/python3.7/site-packages/openshot_qt/windows/views/timeline_webview.py", line 42, in <module>
    from PyQt5.QtWebKitWidgets import QWebView
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'
How do I go about resolving that situation?
You have python3.7. Does that mean you're on 14.2? If so, you may be trying to use the wrong openshot SlackBuild - you would need the one in SBo's 14.2 branch. The master branch currently contains updates (including for openshot) for using with upcoming Slackware 15; therefore dependencies are quite different.

chris
 
Old 06-26-2021, 12:09 AM   #8
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Original Poster
Rep: Reputation: Disabled
Where do I find it?
 
Old 06-26-2021, 01:41 AM   #9
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 917

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
If using git,
git checkout 14.2
or for master,
git checkout master

I see that the SBo website itself is still pointing to 14.2 by default and master doesn't seem accessible from there. If you're on 14.2 then the SlackBuild visible at the website is the correct on. However on rebuilding openshot on 14.2 along with all the deps, I see that something has changed recently such that qt5-webkit and one of it's deps, hyphen, aren't being pulled in any more. Therefore the direct dependencies for 14.2 are really:
qt5-webkit python3-PyQt5 python3-pyzmq libopenshot python-chardet httplib2 jack python-certifi python-requests

As a short term measure, I think you could just build & install hyphen and qt5-webkit and your existing installed openshot should run properly.

chris
 
Old 06-26-2021, 08:52 PM   #10
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 917

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by chris.willing View Post
something has changed recently such that qt5-webkit, and one of it's deps, hyphen, aren't being pulled in any more.
Looking into this more closely, qt5-webkit was sometime removed as a dependency of python3-PyQt5. Therefore it and its dependency hyphen are no longer pulled in as expected. Since the 14.2 repo is now effectively frozen I'm not sure how this can be corrected.

Anyone else finding this thread with the same problem should just add qt5-webkit to the openshot.info REQUIRES line and recalculate the dependencies (so that hyphen will be included).

chris
 
Old 06-27-2021, 06:36 PM   #11
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Original Poster
Rep: Reputation: Disabled
I installed qt5-webkit, and got the exact same result when I tried to run openshot.
 
Old 06-27-2021, 07:03 PM   #12
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 917

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Sorry the simple fix didn't work.

You installed hyphen (dep of python3-PyQt5) too, did you? If so, then looking at the last line of your error, ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets', my guess is that qt5-webkit was not installed when python3-PyQt5 was built. Can you check whether your python3-PyQt5 package contains the file /usr/lib64/python3.7/site-packages/PyQt5/QtWebKitWidgets.so? If not, then I think you should rebuild python3-PyQt5 with qt5-webkit already installed so that the PyQt5.QtWebKitWidgets module will be built. Unfortunately, since qt5-webkit has been removed as strict dependency of python3-PyQt5, this is no longer the default situation

If that works for you (enables openshot to run) then it leaves the SlackBuild for PyQt5 in a bad way. While it may be that python3-PyQt5 can be built without qt5-webkit (so removing it as a requirement is not strictly wrong) it means the resulting python3-PyQt5 package is lacking features (in particular PyQt5.QtWebKitWidgets module) than are required by other SlackBuilds (in particular openshot).

chris
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't find sip-4.19.20 (a sub dependency of OpenShot). TheNutCase Slackware 3 08-30-2020 07:53 AM
LXer: OpenShot Video Editor Basic Openshot Video Editing Skills LXer Syndicated Linux News 0 04-12-2017 10:38 PM
[SOLVED] Can't install avidemux or openshot on debian S. Chapelin Linux - Software 14 07-18-2014 03:18 AM
Can't successfully export video with OpenShot or Flowblade nine9nine Linux - Software 2 12-30-2013 01:29 AM
LXer: OpenShot! We can be all great directors, with our Linux, of course LXer Syndicated Linux News 0 03-28-2012 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration