Openshot-qt: Can't start on ubuntu 19 when default python is python3.7

Created on 17 Feb 2020  Â·  6Comments  Â·  Source: OpenShot/openshot-qt

Describe the bug:
I double clicked the app icon , nothing (seemed) to happen.
I opened a terminal, entered "openshot-qt" , then I got an error.

Steps to reproduce the behavior:

  1. install the latest openshot via PPA (because snap and amazon is somehow too slow in our country)
  2. double click on the icon. I got nothing
  3. Open a terminal,enter "openshot-qt"
  4. I got an error. The console output is included below

Expected behavior:
I expected it to run.

System Details:
openshot-qt -V
Loaded modules from installed directory: /usr/lib/python3/dist-packages/openshot_qt
OpenShot version 2.5.0-dev1
The "openshot-qt -V" worked properly,but is is python3, that's what i believe the problem is

  • Operating System / Distro: lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 19.04
    Release: 19.04
    Codename: disco

Log Files:

sam@sam-ThinkPad-Edge-E430:~$ openshot-qt
Loaded modules from installed directory: /usr/lib/python3/dist-packages/openshot_qt
         app:INFO ------------------------------------------------
         app:INFO             Mon Feb 17 22:44:03 2020            
         app:INFO               Starting new session              
         app:INFO ------------------------------------------------
         app:INFO          OpenShot (version 2.5.0-dev1)          
         app:INFO ------------------------------------------------
         app:INFO openshot-qt version: 2.5.0-dev1
      logger:ERROR Traceback (most recent call last):
      logger:ERROR   File "/usr/bin/openshot-qt", line 11, in <module>
      logger:ERROR load_entry_point('openshot-qt==2.5.0.dev1', 'gui_scripts', 'openshot-qt')()
      logger:ERROR   File "/usr/lib/python3/dist-packages/openshot_qt/launch.py", line 97, in main
      logger:ERROR app = OpenShotApp(argv)
      logger:ERROR   File "/usr/lib/python3/dist-packages/openshot_qt/classes/app.py", line 115, in __init__
      logger:ERROR from classes import exceptions
      logger:ERROR   File "/usr/lib/python3/dist-packages/openshot_qt/classes/exceptions.py", line 30, in <module>
      logger:ERROR from classes.metrics import track_exception_stacktrace
      logger:ERROR   File "/usr/lib/python3/dist-packages/openshot_qt/classes/metrics.py", line 83, in <module>
      logger:ERROR "cd1": openshot.OPENSHOT_VERSION_FULL,  # Dimension 1: libopenshot version
      logger:ERROR AttributeError
      logger:ERROR :
      logger:ERROR module 'openshot' has no attribute 'OPENSHOT_VERSION_FULL'
         app:INFO             OpenShot's session ended            
         app:INFO             Mon Feb 17 22:44:04 2020            
         app:INFO ================================================

Exception / Stacktrace:
openshot-qt.zip

Screenshots: (Optional)

sam@sam-ThinkPad-Edge-E430:~$ openshot-qt
Loaded modules from installed directory: /usr/lib/python3/dist-packages/openshot_qt
         app:INFO ------------------------------------------------
         app:INFO             Mon Feb 17 22:44:03 2020            
         app:INFO               Starting new session              
         app:INFO ------------------------------------------------
         app:INFO          OpenShot (version 2.5.0-dev1)          
         app:INFO ------------------------------------------------
         app:INFO openshot-qt version: 2.5.0-dev1
      logger:ERROR Traceback (most recent call last):
      logger:ERROR   File "/usr/bin/openshot-qt", line 11, in <module>
      logger:ERROR load_entry_point('openshot-qt==2.5.0.dev1', 'gui_scripts', 'openshot-qt')()
      logger:ERROR   File "/usr/lib/python3/dist-packages/openshot_qt/launch.py", line 97, in main
      logger:ERROR app = OpenShotApp(argv)
      logger:ERROR   File "/usr/lib/python3/dist-packages/openshot_qt/classes/app.py", line 115, in __init__
      logger:ERROR from classes import exceptions
      logger:ERROR   File "/usr/lib/python3/dist-packages/openshot_qt/classes/exceptions.py", line 30, in <module>
      logger:ERROR from classes.metrics import track_exception_stacktrace
      logger:ERROR   File "/usr/lib/python3/dist-packages/openshot_qt/classes/metrics.py", line 83, in <module>
      logger:ERROR "cd1": openshot.OPENSHOT_VERSION_FULL,  # Dimension 1: libopenshot version
      logger:ERROR AttributeError
      logger:ERROR :
      logger:ERROR module 'openshot' has no attribute 'OPENSHOT_VERSION_FULL'
         app:INFO             OpenShot's session ended            
         app:INFO             Mon Feb 17 22:44:04 2020            
         app:INFO ================================================
sam@sam-ThinkPad-Edge-E430:~$ openshot-qt -v
Loaded modules from installed directory: /usr/lib/python3/dist-packages/openshot_qt
usage: openshot-qt [-h] [-l LANG] [--list-languages] [-V]
openshot-qt: error: unrecognized arguments: -v
sam@sam-ThinkPad-Edge-E430:~$ openshot-qt -V
Loaded modules from installed directory: /usr/lib/python3/dist-packages/openshot_qt
OpenShot version 2.5.0-dev1
sam@sam-ThinkPad-Edge-E430:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 19.04
Release:    19.04
Codename:   disco
sam@sam-ThinkPad-Edge-E430:~$ 

bug

Most helpful comment

I did this
Linux Build Instructions
and did this

sam@sam-ThinkPad-Edge-E430:~$ sudo bash
root@sam-ThinkPad-Edge-E430:~# apt update && apt upgrade

and everithing is fine.

All 6 comments

Or maybe python 2.7 isn't installed on my laptop.

sam@sam-ThinkPad-Edge-E430:~$ update-alternatives --list python
/usr/bin/python3.7

But python2 is installed,but

sam@sam-ThinkPad-Edge-E430:~$ python2
Python 2.7.16 (default, Oct  7 2019, 17:36:04) 
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

I have to start it via _python2_
when I use python:

sam@sam-ThinkPad-Edge-E430:~$ python
Python 3.7.3 (default, Oct  7 2019, 12:56:13) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

I did this
Linux Build Instructions
and did this

sam@sam-ThinkPad-Edge-E430:~$ sudo bash
root@sam-ThinkPad-Edge-E430:~# apt update && apt upgrade

and everithing is fine.

The core problem was that you still had an older version of libopenshot installed that wasn't compatible with the latest openshot-qt code — unfortunately, upgrading the openshot-qt package via PPA doesn't necessarily update all of its dependencies (a bug in the current apt packaging). When you ran the apt upgrade, the previously-installed libopenshot16 or libopenshot17 would've been replaced with the current libopenshot18 release that corresponds to OpenShot 2.5.0.

I also ran into this issue with using the PPA after having installed OpenShot from Xubuntu 18.04 default repositories.

Removing all libopenshot and keep only libopenshot19* fixed it for v2.5.1-dev2.

Thanks! :smile:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mnally8 picture mnally8  Â·  3Comments

audioclown picture audioclown  Â·  3Comments

Obed9 picture Obed9  Â·  3Comments

Geoff0627 picture Geoff0627  Â·  3Comments

Emma3993 picture Emma3993  Â·  3Comments