LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-20-2022, 12:59 PM   #1
kaffee
LQ Newbie
 
Registered: Mar 2022
Posts: 8

Rep: Reputation: 0
Openshot 2.6.1 not working in Slackware 15.0


On a fresh and complete install of 32-bit Slackware 15.0 with all patches, openshot 2.6.1 doesn't work. Everything required was downloaded from SlackBuilds.org, hashes and signatures were confirmed, and all compiled OK. My build list:

zeromq
Catch
cppzmq
libopenshot-audio
unittest-cpp
protobuf3
libopenshot
python3-pyzmq
httplib2
celt (optional)
jack
openshot


Here is the result of trying to run it:

Quote:
someuser@hp2:~$ openshot-qt
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/openshot_qt/launch.py", line 76, in <module>
from classes import info
ImportError: cannot import name 'info' from 'classes' (unknown location)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/openshot-qt", line 33, in <module>
sys.exit(load_entry_point('openshot-qt==2.6.1', 'gui_scripts', 'openshot-qt')())
File "/usr/bin/openshot-qt", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.9/importlib/metadata.py", line 86, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/usr/lib/python3.9/site-packages/openshot_qt/launch.py", line 80, in <module>
from classes import info
ImportError: cannot import name 'info' from 'classes' (unknown location)
someuser@hp2:~$
I know nothing about Python, but it seems to me that it is not looking in the right place for "info." I find it at "/usr/lib/python3.9/site-packages/openshot_qt/classes/info.py."
 
Old 05-24-2022, 06:41 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Hello, kaffee and welcome to LQ.

How did you get openshot? Compile or Appimage? Are you 32 or 64 bit? You don't say, and we need that sort of info.

Many of these graphical packages are heavy on dependencies, using Qt & python. Then nobody can compile them, so they make an AppImage. Sadly the devs often aren't very interested or good at making the appimage, which is an art in itself.

In your honour, I fired up the last appimage of openshot that I had (version 2.4.4) and ran it; and needless to say it puked also, looking for libselinux which I never had anyhow.

It seems strictly a python error. I'd google and check their site/github. If you have 64bit, I'd try the Appimage.

EDIT: You say that you grabbed from Slackbuilds. Slackbuilds are often behind, and Openshot is keen on the latest, so I'd check versions.

Last edited by business_kid; 05-24-2022 at 06:44 AM.
 
Old 05-24-2022, 08:47 AM   #3
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
I don't have a physical 32bit machine but just now built all deps & openshot from SBo in a 15.0 VM and it works fine in that environment.

chris
 
Old 05-24-2022, 09:31 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
That's good to know. I remember searching for super recent versions of things like libPyQtNotWrittenYet when I tried to compile it.

Last edited by business_kid; 05-24-2022 at 10:07 AM.
 
Old 05-24-2022, 05:30 PM   #5
kaffee
LQ Newbie
 
Registered: Mar 2022
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chris.willing View Post
I don't have a physical 32bit machine but just now built all deps & openshot from SBo in a 15.0 VM and it works fine in that environment.

chris
Interesting. I installed 64-bit Slackware 15.0 on a spare machine, then downloaded openshot and all the dependencies from SBo and it did work there. I then removed all of the openshot packages from the 32-bit Slackware machine, transferred the downloaded SBo openshot sources from the working 64-bit machine, compiled and installed them on the 32-bit machine, and get the same error when trying to run it. I wonder what the difference is that allows it to work on 64-bit but not 32-bit?
 
Old 05-24-2022, 08:21 PM   #6
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
What are the contents of /usr/lib/python3.9/site-packages/openshot_qt/classes/ directory? That is where my info.py exists. In my installation, /usr/lib/python3.9/site-packages/openshot_qt/ directory has:
Code:
bash-5.1# ls -l /usr/lib/python3.9/site-packages/openshot_qt/
total 76
-rw-r--r-- 1 root root 1209 Sep  5  2021 __init__.py
drwxr-xr-x 2 root root 4096 May 25 10:55 __pycache__
drwxr-xr-x 6 root root 4096 May 25 10:55 blender
drwxr-xr-x 6 root root 4096 May 25 10:55 classes
drwxr-xr-x 3 root root 4096 May 25 10:55 effects
drwxr-xr-x 5 root root 4096 May 25 10:55 emojis
drwxr-xr-x 4 root root 4096 May 25 10:55 images
drwxr-xr-x 4 root root 4096 May 25 10:55 language
-rw-r--r-- 1 root root 7264 Sep  5  2021 launch.py
drwxr-xr-x 2 root root 4096 May 25 10:55 presets
drwxr-xr-x 2 root root 4096 May 25 10:55 profiles
drwxr-xr-x 2 root root 4096 May 25 10:55 resources
drwxr-xr-x 2 root root 4096 May 25 10:55 settings
drwxr-xr-x 3 root root 4096 May 25 10:55 tests
drwxr-xr-x 4 root root 4096 May 25 10:55 timeline
drwxr-xr-x 2 root root 4096 May 25 10:55 titles
drwxr-xr-x 4 root root 4096 May 25 10:55 transitions
drwxr-xr-x 6 root root 4096 May 25 10:55 windows
and the classes directory has:
Code:
bash-5.1# ls -l /usr/lib/python3.9/site-packages/openshot_qt/classes
total 4324
-rw-r--r-- 1 root root       0 Sep  5  2021 __init__.py
drwxr-xr-x 2 root root    4096 May 25 10:55 __pycache__
-rw-r--r-- 1 root root   12240 Sep  5  2021 app.py
-rw-r--r-- 1 root root    4025 Sep  5  2021 assets.py
-rw-r--r-- 1 root root    1912 Sep  5  2021 conversion.py
-rw-r--r-- 1 root root    5549 Sep  5  2021 effect_init.py
-rw-r--r-- 1 root root    4926 Sep  5  2021 exceptions.py
drwxr-xr-x 3 root root    4096 May 25 10:55 exporters
-rw-r--r-- 1 root root    1459 Sep  5  2021 image_types.py
drwxr-xr-x 3 root root    4096 May 25 10:55 importers
-rw-r--r-- 1 root root    7780 Sep  5  2021 info.py
-rw-r--r-- 1 root root   17943 Sep  5  2021 json_data.py
-rw-r--r-- 1 root root    3467 Sep  5  2021 keyframe_scaler.py
-rw-r--r-- 1 root root    6232 Sep  5  2021 language.py
drwxr-xr-x 4 root root    4096 May 25 10:55 legacy
-rw-r--r-- 1 root root    3737 Sep  5  2021 logger.py
-rw-r--r-- 1 root root    3049 Sep  5  2021 logger_libopenshot.py
-rw-r--r-- 1 root root    6218 Sep  5  2021 metrics.py
-rw-r--r-- 1 root root 4165963 Sep  5  2021 openshot_rc.py
-rw-r--r-- 1 root root   48284 Sep  5  2021 project_data.py
-rw-r--r-- 1 root root    1649 Sep  5  2021 qt_types.py
-rw-r--r-- 1 root root   13351 Sep  5  2021 query.py
-rw-r--r-- 1 root root    2807 Sep  5  2021 sentry.py
-rw-r--r-- 1 root root    4486 Sep  5  2021 settings.py
-rw-r--r-- 1 root root    2564 Sep  5  2021 style_tools.py
-rw-r--r-- 1 root root    8027 Sep  5  2021 thumbnail.py
-rw-r--r-- 1 root root    2822 Sep  5  2021 time_parts.py
-rw-r--r-- 1 root root    4802 Sep  5  2021 timeline.py
-rw-r--r-- 1 root root   10488 Sep  5  2021 ui_util.py
-rw-r--r-- 1 root root   16362 Sep  5  2021 updates.py
-rw-r--r-- 1 root root    2188 Sep  5  2021 version.py
-rw-r--r-- 1 root root    3528 Sep  5  2021 waveform.py
How do those compare with your installation?
 
Old 05-25-2022, 06:03 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by kaffee View Post
Interesting. I installed 64-bit Slackware 15.0 on a spare machine, then downloaded openshot and all the dependencies from SBo and it did work there. I then removed all of the openshot packages from the 32-bit Slackware machine, transferred the downloaded SBo openshot sources from the working 64-bit machine, compiled and installed them on the 32-bit machine, and get the same error when trying to run it. I wonder what the difference is that allows it to work on 64-bit but not 32-bit?
Is there still a 32bit AppImage?
 
Old 05-25-2022, 10:37 AM   #8
kaffee
LQ Newbie
 
Registered: Mar 2022
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chris.willing View Post
What are the contents of /usr/lib/python3.9/site-packages/openshot_qt/classes/ directory? That is where my info.py exists. In my installation, /usr/lib/python3.9/site-packages/openshot_qt/ directory has:
Code:
bash-5.1# ls -l /usr/lib/python3.9/site-packages/openshot_qt/
total 76
-rw-r--r-- 1 root root 1209 Sep  5  2021 __init__.py
drwxr-xr-x 2 root root 4096 May 25 10:55 __pycache__
drwxr-xr-x 6 root root 4096 May 25 10:55 blender
drwxr-xr-x 6 root root 4096 May 25 10:55 classes
drwxr-xr-x 3 root root 4096 May 25 10:55 effects
drwxr-xr-x 5 root root 4096 May 25 10:55 emojis
drwxr-xr-x 4 root root 4096 May 25 10:55 images
drwxr-xr-x 4 root root 4096 May 25 10:55 language
-rw-r--r-- 1 root root 7264 Sep  5  2021 launch.py
drwxr-xr-x 2 root root 4096 May 25 10:55 presets
drwxr-xr-x 2 root root 4096 May 25 10:55 profiles
drwxr-xr-x 2 root root 4096 May 25 10:55 resources
drwxr-xr-x 2 root root 4096 May 25 10:55 settings
drwxr-xr-x 3 root root 4096 May 25 10:55 tests
drwxr-xr-x 4 root root 4096 May 25 10:55 timeline
drwxr-xr-x 2 root root 4096 May 25 10:55 titles
drwxr-xr-x 4 root root 4096 May 25 10:55 transitions
drwxr-xr-x 6 root root 4096 May 25 10:55 windows
and the classes directory has:
Code:
bash-5.1# ls -l /usr/lib/python3.9/site-packages/openshot_qt/classes
total 4324
-rw-r--r-- 1 root root       0 Sep  5  2021 __init__.py
drwxr-xr-x 2 root root    4096 May 25 10:55 __pycache__
-rw-r--r-- 1 root root   12240 Sep  5  2021 app.py
-rw-r--r-- 1 root root    4025 Sep  5  2021 assets.py
-rw-r--r-- 1 root root    1912 Sep  5  2021 conversion.py
-rw-r--r-- 1 root root    5549 Sep  5  2021 effect_init.py
-rw-r--r-- 1 root root    4926 Sep  5  2021 exceptions.py
drwxr-xr-x 3 root root    4096 May 25 10:55 exporters
-rw-r--r-- 1 root root    1459 Sep  5  2021 image_types.py
drwxr-xr-x 3 root root    4096 May 25 10:55 importers
-rw-r--r-- 1 root root    7780 Sep  5  2021 info.py
-rw-r--r-- 1 root root   17943 Sep  5  2021 json_data.py
-rw-r--r-- 1 root root    3467 Sep  5  2021 keyframe_scaler.py
-rw-r--r-- 1 root root    6232 Sep  5  2021 language.py
drwxr-xr-x 4 root root    4096 May 25 10:55 legacy
-rw-r--r-- 1 root root    3737 Sep  5  2021 logger.py
-rw-r--r-- 1 root root    3049 Sep  5  2021 logger_libopenshot.py
-rw-r--r-- 1 root root    6218 Sep  5  2021 metrics.py
-rw-r--r-- 1 root root 4165963 Sep  5  2021 openshot_rc.py
-rw-r--r-- 1 root root   48284 Sep  5  2021 project_data.py
-rw-r--r-- 1 root root    1649 Sep  5  2021 qt_types.py
-rw-r--r-- 1 root root   13351 Sep  5  2021 query.py
-rw-r--r-- 1 root root    2807 Sep  5  2021 sentry.py
-rw-r--r-- 1 root root    4486 Sep  5  2021 settings.py
-rw-r--r-- 1 root root    2564 Sep  5  2021 style_tools.py
-rw-r--r-- 1 root root    8027 Sep  5  2021 thumbnail.py
-rw-r--r-- 1 root root    2822 Sep  5  2021 time_parts.py
-rw-r--r-- 1 root root    4802 Sep  5  2021 timeline.py
-rw-r--r-- 1 root root   10488 Sep  5  2021 ui_util.py
-rw-r--r-- 1 root root   16362 Sep  5  2021 updates.py
-rw-r--r-- 1 root root    2188 Sep  5  2021 version.py
-rw-r--r-- 1 root root    3528 Sep  5  2021 waveform.py
How do those compare with your installation?
They appear to be the same:

Code:
someuser@hp2:~$ ls -l /usr/lib/python3.9/site-packages/openshot_qt
total 76
-rw-r--r-- 1 root root 1209 Sep  4  2021 __init__.py
drwxr-xr-x 2 root root 4096 May 24 18:17 __pycache__/
drwxr-xr-x 6 root root 4096 May 24 18:17 blender/
drwxr-xr-x 6 root root 4096 May 24 18:17 classes/
drwxr-xr-x 3 root root 4096 May 24 18:17 effects/
drwxr-xr-x 5 root root 4096 May 24 18:17 emojis/
drwxr-xr-x 4 root root 4096 May 24 18:17 images/
drwxr-xr-x 4 root root 4096 May 24 18:17 language/
-rw-r--r-- 1 root root 7264 Sep  4  2021 launch.py
drwxr-xr-x 2 root root 4096 May 24 18:17 presets/
drwxr-xr-x 2 root root 4096 May 24 18:17 profiles/
drwxr-xr-x 2 root root 4096 May 24 18:17 resources/
drwxr-xr-x 2 root root 4096 May 24 18:17 settings/
drwxr-xr-x 3 root root 4096 May 24 18:17 tests/
drwxr-xr-x 4 root root 4096 May 24 18:17 timeline/
drwxr-xr-x 2 root root 4096 May 24 18:17 titles/
drwxr-xr-x 4 root root 4096 May 24 18:17 transitions/
drwxr-xr-x 6 root root 4096 May 24 18:17 windows/
someuser@hp2:~$ ls -l /usr/lib/python3.9/site-packages/openshot_qt/classes/
total 4324
-rw-r--r-- 1 root root       0 Sep  4  2021 __init__.py
drwxr-xr-x 2 root root    4096 May 24 18:17 __pycache__/
-rw-r--r-- 1 root root   12240 Sep  4  2021 app.py
-rw-r--r-- 1 root root    4025 Sep  4  2021 assets.py
-rw-r--r-- 1 root root    1912 Sep  4  2021 conversion.py
-rw-r--r-- 1 root root    5549 Sep  4  2021 effect_init.py
-rw-r--r-- 1 root root    4926 Sep  4  2021 exceptions.py
drwxr-xr-x 3 root root    4096 May 24 18:17 exporters/
-rw-r--r-- 1 root root    1459 Sep  4  2021 image_types.py
drwxr-xr-x 3 root root    4096 May 24 18:17 importers/
-rw-r--r-- 1 root root    7780 Sep  4  2021 info.py
-rw-r--r-- 1 root root   17943 Sep  4  2021 json_data.py
-rw-r--r-- 1 root root    3467 Sep  4  2021 keyframe_scaler.py
-rw-r--r-- 1 root root    6232 Sep  4  2021 language.py
drwxr-xr-x 4 root root    4096 May 24 18:17 legacy/
-rw-r--r-- 1 root root    3737 Sep  4  2021 logger.py
-rw-r--r-- 1 root root    3049 Sep  4  2021 logger_libopenshot.py
-rw-r--r-- 1 root root    6218 Sep  4  2021 metrics.py
-rw-r--r-- 1 root root 4165963 Sep  4  2021 openshot_rc.py
-rw-r--r-- 1 root root   48284 Sep  4  2021 project_data.py
-rw-r--r-- 1 root root    1649 Sep  4  2021 qt_types.py
-rw-r--r-- 1 root root   13351 Sep  4  2021 query.py
-rw-r--r-- 1 root root    2807 Sep  4  2021 sentry.py
-rw-r--r-- 1 root root    4486 Sep  4  2021 settings.py
-rw-r--r-- 1 root root    2564 Sep  4  2021 style_tools.py
-rw-r--r-- 1 root root    8027 Sep  4  2021 thumbnail.py
-rw-r--r-- 1 root root    2822 Sep  4  2021 time_parts.py
-rw-r--r-- 1 root root    4802 Sep  4  2021 timeline.py
-rw-r--r-- 1 root root   10488 Sep  4  2021 ui_util.py
-rw-r--r-- 1 root root   16362 Sep  4  2021 updates.py
-rw-r--r-- 1 root root    2188 Sep  4  2021 version.py
-rw-r--r-- 1 root root    3528 Sep  4  2021 waveform.py
someuser@hp2:~$
 
Old 05-25-2022, 05:42 PM   #9
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Those directory contents look to be OK.

Next thing to try, since your original error showed trouble importing classes/info.py into launch.py, is to try running:
Code:
python3 /usr/lib/python3.9/site-packages/openshot_qt/launch.py
That should import classes/info.py and display some info about your setup.

Another thing to try is to check whether you're able to import classes/info.py directly from python3 itself. You should see (assuming the import works) something like:
Code:
bash-5.1# cd /usr/lib/python3.9/site-packages/openshot_qt/
bash-5.1# python3
Python 3.9.12 (main, Mar 24 2022, 15:52:25) 
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from classes import info
>>>
Let's see where to go after the results of those tests.

chris
 
Old 05-26-2022, 09:26 AM   #10
kaffee
LQ Newbie
 
Registered: Mar 2022
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chris.willing View Post
Those directory contents look to be OK.

Next thing to try, since your original error showed trouble importing classes/info.py into launch.py, is to try running:
Code:
python3 /usr/lib/python3.9/site-packages/openshot_qt/launch.py
That should import classes/info.py and display some info about your setup.

Another thing to try is to check whether you're able to import classes/info.py directly from python3 itself. You should see (assuming the import works) something like:
Code:
bash-5.1# cd /usr/lib/python3.9/site-packages/openshot_qt/
bash-5.1# python3
Python 3.9.12 (main, Mar 24 2022, 15:52:25) 
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from classes import info
>>>
Let's see where to go after the results of those tests.

chris
Your first command above starts openshot and it seems to work fine.
The second command gives the same result as your example.

Openshot is normally started with the Python script /usr/bin/openshot-qt, so the question seems to be, "why does that script work in a 64-bit installation but not in a 32-bit installation?" The scripts are identical in both installations.

Code:
someuser@hp2:~$ cat /usr/bin/openshot-qt
#!/usr/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'openshot-qt==2.6.1','gui_scripts','openshot-qt'
import re
import sys

# for compatibility with easy_install; see #2198
__requires__ = 'openshot-qt==2.6.1'

try:
    from importlib.metadata import distribution
except ImportError:
    try:
        from importlib_metadata import distribution
    except ImportError:
        from pkg_resources import load_entry_point


def importlib_load_entry_point(spec, group, name):
    dist_name, _, _ = spec.partition('==')
    matches = (
        entry_point
        for entry_point in distribution(dist_name).entry_points
        if entry_point.group == group and entry_point.name == name
    )
    return next(matches).load()


globals().setdefault('load_entry_point', importlib_load_entry_point)


if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(load_entry_point('openshot-qt==2.6.1', 'gui_scripts', 'openshot-qt')())
someuser@hp2:~$
 
Old 05-26-2022, 05:45 PM   #11
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Since it does work here in a clean 32bit installation, the question is really "what is it about your 32bit installation ... ?". It's probably something about your environment but before delving into that, first try these two commands and check any file whose size differs:
Code:
bash-5.1# ls -l /usr/lib/python3.9/site-packages/openshot_qt-2.6.1-py3.9.egg-info
total 156
-rw-r--r-- 1 root root   5070 May 25 10:54 PKG-INFO
-rw-r--r-- 1 root root 135870 May 25 10:54 SOURCES.txt
-rw-r--r-- 1 root root      1 May 25 10:54 dependency_links.txt
-rw-r--r-- 1 root root     53 May 25 10:54 entry_points.txt
-rw-r--r-- 1 root root     12 May 25 10:54 top_level.txt
bash-5.1# ls -l /usr/lib/python3.9/site-packages/openshot.py
-rw-r--r-- 1 root root 272076 May 25 10:51 /usr/lib/python3.9/site-packages/openshot.py


If they check out OK, then I'd start looking for differences in environments by comparing the outputs of running env command on both machines. It's a tedious job comparing but to make it a bit easier, pipe the outputs through sort i.e.
Code:
env | sort
Actually, because that is so tedious, you could first try creating a new user on the 32bit machine, then login as that user and try running openshot. If that works, then the problem would appear to be the environment of your someuser account.

chris
 
Old 05-27-2022, 01:17 PM   #12
kaffee
LQ Newbie
 
Registered: Mar 2022
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chris.willing View Post
Since it does work here in a clean 32bit installation, the question is really "what is it about your 32bit installation ... ?". It's probably something about your environment but before delving into that, first try these two commands and check any file whose size differs:
Code:
bash-5.1# ls -l /usr/lib/python3.9/site-packages/openshot_qt-2.6.1-py3.9.egg-info
total 156
-rw-r--r-- 1 root root   5070 May 25 10:54 PKG-INFO
-rw-r--r-- 1 root root 135870 May 25 10:54 SOURCES.txt
-rw-r--r-- 1 root root      1 May 25 10:54 dependency_links.txt
-rw-r--r-- 1 root root     53 May 25 10:54 entry_points.txt
-rw-r--r-- 1 root root     12 May 25 10:54 top_level.txt
bash-5.1# ls -l /usr/lib/python3.9/site-packages/openshot.py
-rw-r--r-- 1 root root 272076 May 25 10:51 /usr/lib/python3.9/site-packages/openshot.py


If they check out OK, then I'd start looking for differences in environments by comparing the outputs of running env command on both machines. It's a tedious job comparing but to make it a bit easier, pipe the outputs through sort i.e.
Code:
env | sort
Actually, because that is so tedious, you could first try creating a new user on the 32bit machine, then login as that user and try running openshot. If that works, then the problem would appear to be the environment of your someuser account.

chris
The two commands give the same result as above:

Code:
bash-5.1$ ls -l /usr/lib/python3.9/site-packages/openshot_qt-2.6.1-py3.9.egg-info/
total 156
-rw-r--r-- 1 root root   5070 May 24 18:16 PKG-INFO
-rw-r--r-- 1 root root 135870 May 24 18:16 SOURCES.txt
-rw-r--r-- 1 root root      1 May 24 18:16 dependency_links.txt
-rw-r--r-- 1 root root     53 May 24 18:16 entry_points.txt
-rw-r--r-- 1 root root     12 May 24 18:16 top_level.txt
bash-5.1$ ls -l /usr/lib/python3.9/site-packages/openshot.py 
-rw-r--r-- 1 root root 272076 May 24 18:11 /usr/lib/python3.9/site-packages/openshot.py
bash-5.1$
I created fresh users on both systems, user32 and user64, redirected an env|sort to files on each system, then did a diff on the files. The environments seem pretty similar...

Code:
someuser@hp8200:~$ diff envsort32.txt envsort64.txt
1d0
< ANT_HOME=/usr/share/ant
3c2
< DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-qE6s0FUvS3,guid=dbdb463cb56081d32191ed2b62910943
---
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-GUkCN6QJdx,guid=b4e245ba60bb2aa69ee35c4c629102c2
7c6
< GNOME_KEYRING_CONTROL=/home/user32/.cache/keyring-6URWM1
---
> GNOME_KEYRING_CONTROL=/home/user64/.cache/keyring-KU20M1
10c9
< HOME=/home/user32
---
> HOME=/home/user64
13d11
< JAVA_HOME=/usr/lib/zulu-openjdk11
15d12
< LADSPA_PATH=/usr/lib/ladspa
18d14
< LD_LIBRARY_PATH=:/usr/lib/zulu-openjdk11/lib/server
20c16
< LOGNAME=user32
---
> LOGNAME=user64
23,25c19
< LV2_PATH=/usr/lib/lv2
< MAIL=/var/mail/user32
< MANPATH=:/usr/lib/zulu-openjdk11/man
---
> MAIL=/var/mail/user64
28,33c22,26
< PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/libexec/kf5:/usr/lib/libreoffice/program:/usr/lib/qt5/bin:/usr/lib/zulu-openjdk11/bin
< PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
< PWD=/home/user32
< QT5DIR=/usr/lib/qt5
< QTWEBENGINE_CHROMIUM_FLAGS=--disable-seccomp-filter-sandbox
< SESSION_MANAGER=local/hp2.example.org:@/tmp/.ICE-unix/1482,unix/hp2.example.org:/tmp/.ICE-unix/1482
---
> PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/libexec/kf5:/usr/lib64/qt5/bin
> PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig
> PWD=/home/user64
> QT5DIR=/usr/lib64/qt5
> SESSION_MANAGER=local/hp2.example.org:@/tmp/.ICE-unix/1403,unix/hp2.example.org:/tmp/.ICE-unix/1403
36,37c29,30
< SSH_AGENT_PID=1546
< SSH_AUTH_SOCK=/tmp/ssh-XXXXXXsw84nL/agent.1545
---
> SSH_AGENT_PID=1462
> SSH_AUTH_SOCK=/tmp/ssh-XXXXXX1rbkBd/agent.1461
40,43c33
< UNO_PATH=/usr/lib/libreoffice/program
< URE_BOOTSTRAP=vnd.sun.star.pathname:/usr/lib/libreoffice/program/fundamentalrc
< USER=user32
< VAMP_PATH=/usr/lib/vamp
---
> USER=user64
48c38
< XAUTHORITY=/home/user32/.Xauthority
---
> XAUTHORITY=/home/user64/.Xauthority
someuser@hp8200:~$
Using the new users, the Python script "openshot-qt" still results in the original error on the 32 bit installation, but works fine on the 64 bit installation. The command "python3 /usr/lib/python3.9/site-packages/openshot_qt/launch.py" still successfully runs openshot on the 32 bit installation. I suppose I could just use that, but I would like to know why "openshot-qt" doesn't work.
 
Old 05-28-2022, 07:38 AM   #13
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
I'm out of new ideas about it. The environments look similar enough. I see your 32bit system has LibreOffice and vamp installed, which the 64bit system doesn't have. However it's unlikely they would be the cause of the problem.

One last thing to try - if you have time, could you removepkg your existing installation and download and install this openshot package? It's the one which was built and works in a clean VM here. If it works for you then it would point to something weird in your build environment. If it doesn't work for you then it points to something about your environment generally.

chris
 
Old 05-28-2022, 03:01 PM   #14
kaffee
LQ Newbie
 
Registered: Mar 2022
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chris.willing View Post
I'm out of new ideas about it. The environments look similar enough. I see your 32bit system has LibreOffice and vamp installed, which the 64bit system doesn't have. However it's unlikely they would be the cause of the problem.

One last thing to try - if you have time, could you removepkg your existing installation and download and install this openshot package? It's the one which was built and works in a clean VM here. If it works for you then it would point to something weird in your build environment. If it doesn't work for you then it points to something about your environment generally.

chris
I removed my openshot package and installed the one I downloaded from you.
The result was the same error I started with:

Code:
bash-5.1$ openshot-qt
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/openshot_qt/launch.py", line 76, in <module>
    from classes import info
ImportError: cannot import name 'info' from 'classes' (unknown location)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/openshot-qt", line 33, in <module>
    sys.exit(load_entry_point('openshot-qt==2.6.1', 'gui_scripts', 'openshot-qt')())
  File "/usr/bin/openshot-qt", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 86, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/openshot_qt/launch.py", line 80, in <module>
    from classes import info
ImportError: cannot import name 'info' from 'classes' (unknown location)
bash-5.1$
 
Old 05-29-2022, 02:16 AM   #15
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
In that case there's something whacky about your machine environment. Unfortunately there's nothing obvious to suggest what that might be.

What to do now? Depending on how important the existing installation is, one option would be to blow it away and create a new one. In the new installation, before doing any customization, build/install openshot & deps and, assuming it then works, add other software you had in the previous installation. As you install each software, check that openshot still works. Eventually it will stop working, thereby identifying what software (or customization) has caused the problem. At best/worst, everything will just keep working and we'll never know what the problem was - but at least everything now works.

If you happen to have a spare partition on your disk, another option would be to use that spare partition to do the above.

chris
 
  


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
LXer: OpenShot Video Editor Basic Openshot Video Editing Skills LXer Syndicated Linux News 0 04-12-2017 10:38 PM
[SOLVED] Openshot will still not use Blender acraig Linux - Newbie 1 08-22-2012 09:14 PM
[SOLVED] OpenShot does not see codecs darkduck Linux - Software 9 07-05-2011 02:50 AM
LXer: OpenShot 1.0 Has Arrived! LXer Syndicated Linux News 0 01-10-2010 12:50 AM
LXer: Openshot : The magic has arrived LXer Syndicated Linux News 0 09-30-2009 09:00 PM

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

All times are GMT -5. The time now is 12:35 AM.

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