Support Requests - CLICK TO READ BEFORE POSTING


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[HELPFUL TIP] Running OpenShot issue after upgrade/ update
#1

Running OpenShot issue after upgrade/ update


The problem

Today (September, first), there was an update for some packages. Among those, there was also OpenShot Video Editor.
After running the upgrade/update, I wanted to test the App so I clicked the button. Nothing happened. Since it is a huge program, it takes longer to load. At least, that was what I thought in the beginning. Tried the Menu shortcut, but still nothing.
I went on the other way, and this is what I got:

Code:
openshot-qt Traceback (most recent call last):   File "/usr/bin/openshot-qt", line 33, in <module>     sys.exit(load_entry_point('openshot-qt==4.0.0', 'gui_scripts', 'openshot-qt')())             ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/bin/openshot-qt", line 25, in importlib_load_entry_point     return next(matches).load()           ~~~~~~~~~~~~~~~~~~^^   File "/usr/lib/python3.14/importlib/metadata/__init__.py", line 179, in load     module = import_module(match.group('module'))   File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module     return _bootstrap._gcd_import(name[level:], package, level)           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "<frozen importlib._bootstrap>", line 1406, in _gcd_import   File "<frozen importlib._bootstrap>", line 1371, in _find_and_load   File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked   File "<frozen importlib._bootstrap>", line 938, in _load_unlocked   File "<frozen importlib._bootstrap_external>", line 759, in exec_module   File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed   File "/usr/lib/python3/dist-packages/openshot_qt/launch.py", line 86, in <module>     from qt_api import QtCore, QtWidgets ModuleNotFoundError: No module named 'qt_api'

I can't figure out how obvious is this for everybody, but for me, this is what happens (see the line ModuleNotFoundError: No module named 'qt_api'):

The cause

Now, if you use the CLI (like I do) for updating the system, you are probably familiar with the following:

Code:
sudo apt upgrade Not upgrading yet due to phasing:   python3-software-properties  software-properties-common  software-properties-gtk

I can't explain why this happens for at least two months. Maybe the Python team is overwhelmed for some reason, maybe the Ubuntu team. It matters less from my perspective. It's a fact.
So, if you connect the two codes listed above, the situation gets clear: The postponed updates to Python trigger a chain of events. Among those, is also the OpenShot error (No module named 'qt_api).

The solution

From my perspective, pushing the Python packages update, might be very risky. I avoid this kind of adventures, unless I want to test what happens. This is not the case, so:

I went on the download site of OpenShot and I downloaded the AppImage version. This works for years in such cases like this (various errors in the latest version):

Code:
OpenShot-v4.0.0-x86_64.AppImage


To make it run, if you are less familiar with this approach, you need to prefix it with the path where it resides. Let's say:

/home/OpenShot/

This makes the command look like this:

Code:
/home/OpenShot/OpenShot-v4.0.0-x86_64.AppImage

You need to remember to change the file's attribute and make it executable, in order to make it work.

I hope that helps. The solution fits any program that you need to run, as long as it has an .AppImage version.

Best regards and good luck!

"It's easy to die for an idea. It's way harder TO LIVE for your idea!"
Current Machine:
Dell Precision T1700, 16 GB RAM, SSD Kingston A400, 480 GB.
Laptop:
ASUS X200MA , Intel® Celeron® N2830, 2 GB RAM, SSD Kingston A400, 480 GB.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)