11-16-2023, 05:38 PM | #61 | |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
The gist is that /usr/local/bin/sigil is a bash script that needs to be edited with a text editor. You'll need root permissions to edit it. Basically you need to prevent the system Qt6 location (represented by the QTLIB_DIR variable) from being prepended to the LD_LIBRARY_PATH variable. I myself would do that by removing :QTLIB_DIR from line 10 and line 12 of that script (note the colon at the beginning of the substring to be removed). I'm not really happy with this solution as the script will be overwritten each time Sigil gets built then installed. But it might be the easiest solution for now. |
|
11-18-2023, 09:11 AM | #62 |
Zealot
Posts: 121
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: none
|
Sorry DiapDealer, I didn't see this reply earlier. I didn't notice that the thread had now progressed to page 5 !! My bad.
I'll gladly have a go with your Sigil Python AppImage. |
11-18-2023, 11:32 AM | #63 | |
Zealot
Posts: 121
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: none
|
Quote:
I downloaded sigil-qt6-python3.11_x86_64.AppImage, set it to 'executable' and then used Sigil's plugin manager to set the path to the python interpreter to that file. The wrapper script in /usr/local/bin/sigil remained in its original state with : Code:
QTLIB_DIR="/usr/lib/x86_64-linux-gnu" With the new path to your AppImage set in the plugin manager, I ran the testplugin to a successful completion with a freshly started Sigil basic template page - "Success - All Tests of Plugin Operations Passed" Code:
Verifying proper Python packages are available Checking GUI modules Python Package: PySide6 (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/PySide6/QtWidgets.abi3.so) Found Python Package: PySide6 QtWebEngineWidgets (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/PySide6/QtWebEngineWidgets.abi3.so) Found Python Package: tkinter (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/tkinter/__init__.py) Found Python Package: PIL (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/PIL/__init__.py) Found Python Package: cssselect (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/cssselect/__init__.py) Found Python Package: css-parser (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/css_parser/__init__.py) Found Python Package: html5lib (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/html5lib/__init__.py) Found Python Package: lxml (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/lxml/__init__.py) Found Python Package: regex (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/regex/__init__.py) Found Python Package: chardet (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/chardet/__init__.py) Found Python Package: six (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/six.py) Found Python Package: dulwich (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/dulwich/__init__.py) Found Python Package: urllib3 (/tmp/.mount_sigil-axh8N2/opt/python3.11/lib/python3.11/site-packages/urllib3/__init__.py) Found |
|
11-18-2023, 11:46 AM | #64 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Thanks for trying it! Happy to see it works as expected. My plan was to avoid users needing to install a bunch of extra stuff in their system python. Thoughts? Is it easy enough to be useful?
|
11-18-2023, 12:56 PM | #65 | |
Zealot
Posts: 121
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: none
|
Quote:
I did wonder where to put it but then realised that it didn't matter as far as Sigil was concerned because the path was going to be set manually in the plugin manager. So for my convenience, I placed it in the sub-directory of /Downloads/ where I keep any Sigil plugin zip files. Setting it to executable might be a bit tricky for some Linux users. Maybe when you decide how to issue it, you'll add a few notes and a hint to run the testplugin to check if the PySide6 stuff is located. |
|
11-18-2023, 01:38 PM | #66 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
This is strictly for use as the Sigil plugin interpreter and its environment. It won't replace any of the Sigil Qt6 build requirements, unfortunately. Sigil has some basic Embedded Python needs that will still use the system Python. All necessary modules are available via the normal package management system. The Python Plugin Framework needs some extra pieces that might not be available via the normal distro package management system.
|
11-18-2023, 05:10 PM | #67 |
Zealot
Posts: 121
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: none
|
Using Sigil with your AppImage made my problem with the display of some (but not all) gif images inside the InsertImageSVG plugin's dialog go away.
I couldn't believe it so I reversed and went back to using the /usr/bin/python3 path to the interpreter with the edit to /usr/local/bin/sigil wrapper script to remove the QTLIB_DIR statement. This made the problem with gif display come back. I found that I could go back and forth between these two configurations and make the display issue disappear or reappear in a systematic fashion. see : https://www.mobileread.com/forums/sh...21#post4373721 So there's something in your AppImage that was missing or defective in the other setup configuration. How about that? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building the Linux standalone Sigil installer | eschwartz | Sigil | 10 | 12-20-2015 04:13 PM |
Difficulty with building sigil 0.9.0 on linux | philja | Sigil | 36 | 11-25-2015 04:38 PM |
sigil 0.8.1 building on linux | blackest | Sigil | 9 | 10-15-2014 06:22 PM |
Building Sigil from source on Linux | xingenter | Sigil | 10 | 04-29-2013 01:18 PM |
Building Sigil under Linux | st_albert | Sigil | 1 | 08-07-2011 03:19 PM |