LinuxQuestions.org
Help answer threads with 0 replies.
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-01-2022, 10:01 AM   #16
kaffee
LQ Newbie
 
Registered: Mar 2022
Posts: 8

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by chris.willing View Post
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
Whew! I did a whole new 32-bit 15.0 Slackware installation, then installed the previously compiled openshot and dependency packages, and openshot worked fine. Upgraded with all patches via slackpkg, including kernel, openshot still working OK. Eventually the openshot error appeared after installing Libreoffice. Remove Libreoffice and openshot working again. Never even ran Libreoffice after its installation. This was "LibreOffice-7.3.1.3-i586-1_SBo.tgz," created by me on March 15 from SBo sources and working fine since then, although all I use it for is creating and printing documents. I notice that slackbuilds now has version "LibreOffice-7.3.3.2-i586-1_SBo.tgz" so I compiled and tried it with the same results. Then I tried alienbob's "libreoffice-7.3.3-i586-1alien.txz" from <http://www.slackware.com/~alien/slackbuilds/libreoffice/pkg/15.0/> and that one works and does not affect openshot. The cause of the problem is not obvious to me, but I note that alienbob's version is built without java support.
 
Old 06-01-2022, 12:05 PM   #17
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
When I hear of mysterious problems with AppImages, the only one who has ever run them down for me is the AppImage builder. Libraries searched for but not found in the AppImage will be searched for in the system. It seems the system is finding some libreoffice library before the one it was otherwise finding.

One option is to put libreoffice somewhere bizzarre, e.g. /opt/lib64, and tack that location on to the end of LD_LIBRARY_PATH. That might get you out of it.
 
Old 06-01-2022, 05:07 PM   #18
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by kaffee View Post
Whew! I did a whole new 32-bit 15.0 Slackware installation, then installed the previously compiled openshot and dependency packages, and openshot worked fine. Upgraded with all patches via slackpkg, including kernel, openshot still working OK. Eventually the openshot error appeared after installing Libreoffice. Remove Libreoffice and openshot working again. Never even ran Libreoffice after its installation. This was "LibreOffice-7.3.1.3-i586-1_SBo.tgz," created by me on March 15 from SBo sources and working fine since then, although all I use it for is creating and printing documents. I notice that slackbuilds now has version "LibreOffice-7.3.3.2-i586-1_SBo.tgz" so I compiled and tried it with the same results. Then I tried alienbob's "libreoffice-7.3.3-i586-1alien.txz" from <http://www.slackware.com/~alien/slackbuilds/libreoffice/pkg/15.0/> and that one works and does not affect openshot. The cause of the problem is not obvious to me, but I note that alienbob's version is built without java support.
Good to hear the problem is more or less solved.

One more thing I'd be interested in (if you have the time) is how much java is implicated. Could you try removing any Libreoffice but then install java (zulu-openjdk11 - the one that would be installed for SBo's LibreOffice) and check openshot again?

chris
 
Old 06-02-2022, 05:29 AM   #19
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Don't worry about that extra testing - I think I've found the problem.

It is in the SBo LibreOffice which changes python's sys.path to accommodate "pyuno", a python interface to the LibreOffice API. I guess it is seldom used so won't be missed if you revert it. Do that by editing the file /usr/lib/python3.9/site-packages/pyuno.pth and comment out the line you find there by inserting a # at the beginning of the line. That will allow openshot-qt to now work as expected.

chris
 
Old 06-02-2022, 01:49 PM   #20
kaffee
LQ Newbie
 
Registered: Mar 2022
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chris.willing View Post
Don't worry about that extra testing - I think I've found the problem.

It is in the SBo LibreOffice which changes python's sys.path to accommodate "pyuno", a python interface to the LibreOffice API. I guess it is seldom used so won't be missed if you revert it. Do that by editing the file /usr/lib/python3.9/site-packages/pyuno.pth and comment out the line you find there by inserting a # at the beginning of the line. That will allow openshot-qt to now work as expected.

chris
Yes, commenting out the line in "pyuno.pth" fixed my problem. Thank you.

Otherwise wouldn't that file "pyuno.pth" always hijack Python for LibreOffice and cause other python programs to similarly fail?
 
Old 06-02-2022, 04:32 PM   #21
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by kaffee View Post
Yes, commenting out the line in "pyuno.pth" fixed my problem. Thank you.

Otherwise wouldn't that file "pyuno.pth" always hijack Python for LibreOffice and cause other python programs to similarly fail?
That mechanism (using a .pth file like that) is the accepted way to extend the python path - it's a design feature of Python itself. This problem with Openshot is the first time there has been an issue reported since LibreOffice was added to SBo in 2016 (and I had my own build for a while before that, back to when I used OpenOffice, without any problem).

My guess is that the /usr/bin/openshot startup script is the real culprit. Looking at it for 5 minutes, I have no clue what it does. Bypassing it seems to allow openshot to work even when pyuno.pth is still in place. Unfortunately I don't really have time at the moment to investigate the openshot startup script. Until then I'll remove pyuno.pth at the next LibreOffice update.

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 04:21 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