Inkscape 1.2.1 - SBo seems to be missing one dependency(?)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Inkscape 1.2.1 - SBo seems to be missing one dependency(?)
I went through all my installed SBo rel. packages, and noticed that I had missed updating Inkscape.
So once sorted all listed dependencies, I had it installed and running ok.
But, there's an error if one goes into menu Extensions -> Manage extensions
I get this for error(s):
Quote:
Traceback (most recent call last):
File "/usr/share/inkscape/extensions/inkman/inkman/manage_extensions.py", line 29, in <module>
from inkex import gui
File "/usr/share/inkscape/extensions/inkex/__init__.py", line 11, in <module>
from .extensions import *
File "/usr/share/inkscape/extensions/inkex/extensions.py", line 34, in <module>
from .elements import (
File "/usr/share/inkscape/extensions/inkex/elements/__init__.py", line 10, in <module>
from ._base import ShapeElement, BaseElement
File "/usr/share/inkscape/extensions/inkex/elements/_base.py", line 38, in <module>
from ..styles import Style, Classes
File "/usr/share/inkscape/extensions/inkex/styles.py", line 33, in <module>
from .css import ConditionalRule
File "/usr/share/inkscape/extensions/inkex/css.py", line 27, in <module>
import cssselect
ModuleNotFoundError: No module named 'cssselect'
I'm not sure if I've had this "problem" before as I rarely use the Extension Manager...
Anyway, I installed the cssselect SlackBuild and now I get the result expected (no error messages at all)
So, is it a missing dependency, or is there something newly added to Inkscape that cause the "problem"?
Yes cssselect requirement popped up at this end as well. The maintainer of the inkscape slackbuild is aware of this; also the numpy dependency should preferably be renamed to numpy3 (i.e. python3).
numpy3 I already figured out being needed instead of numpy, should've reported that I guess...
CacheControl I did miss as I'm not using that function. But just checked here, and can confirm its being required as well.
If I run pip install CacheControl I don't get the error, but upon using the search I get a new error...
Quote:
/usr/lib64/python3.9/site-packages/bs4/element.py:15: UserWarning: The soupsieve package is not installed. CSS selectors cannot be used
I do have python3-soupsieve-2.3.2-x86_64-2_SBo installed (might need a rebuild or something...)
I also notice this at the end of the error message:
Quote:
NOTE: In order to use the FileCache you must have
lockfile installed. You can install it via pip:
pip install lockfile
SBo's SlackBuild for lockfile is bit old, latest version is 0.12.2 (not 0.8). So maybe that need some attention as well (am about to test a build of 0.12.2, reporting back once done)
Edit: Ponce is hosting the 0.8 version, so I'm guessing there's a reason for not using a newer version of lockfile...
But download link seems not to be working, nothing happens
Edit2:
I used the DL link in the .info file found on Ponce repo for current instead, worked fine.
Still no joy, I keep getting the error "missing soupsieve package", and lockfile is still reported as missing...
Complete error below:
Quote:
/usr/lib64/python3.9/site-packages/bs4/element.py:15: UserWarning: The soupsieve package is not installed. CSS selectors cannot be used.
warnings.warn(
Exception in thread Thread-1:
Traceback (most recent call last):
File "/home/~/.local/lib/python3.9/site-packages/cachecontrol/caches/file_cache.py", line 77, in __init__
from lockfile import LockFile
File "/usr/lib64/python3.9/site-packages/lockfile.py", line 56, in <module>
import thread
ModuleNotFoundError: No module named 'thread'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/usr/share/inkscape/extensions/inkex/gui/asyncme.py", line 294, in _target
ret.wait()
File "/usr/share/inkscape/extensions/inkex/gui/asyncme.py", line 91, in wait
raise self._exception # pylint: disable=raising-bad-type
File "/usr/share/inkscape/extensions/inkex/gui/asyncme.py", line 119, in run
self.result(task())
File "/usr/share/inkscape/extensions/inkex/gui/asyncme.py", line 328, in <lambda>
return holding(lock, lambda: func(*args, **kwargs), blocking=False)
File "/usr/share/inkscape/extensions/other/clipart/import_web_image.py", line 215, in async_search
for resource in self.get_selected_source().file_search(query):
File "/usr/share/inkscape/extensions/other/clipart/import_web_image.py", line 139, in get_selected_source
return RemoteSource.sources[key](CACHE_DIR)
File "/usr/share/inkscape/extensions/other/clipart/import_sources.py", line 234, in __init__
cache=FileCache(cache_dir),
File "/home/~/.local/lib/python3.9/site-packages/cachecontrol/caches/file_cache.py", line 87, in __init__
raise ImportError(notice)
ImportError:
NOTE: In order to use the FileCache you must have
lockfile installed. You can install it via pip:
pip install lockfile
Last edited by MDKDIO; 07-18-2022 at 03:22 AM.
Reason: added Edit2 part
Now if I install lockfile and CacheControl, using pip (as user)
pip install lockfile
pip install CacheControl (I of course ended up with CacheControl 0.12.11 when I did this).
Now Import Web Image is working, but after awhile I get the error again regarding soupsieve
Quote:
/usr/lib64/python3.9/site-packages/bs4/element.py:15: UserWarning: The soupsieve package is not installed. CSS selectors cannot be used.
warnings.warn(
And yes, the error message is incomplete...
Extensions Manager is now fully working (from what I can see) when trying it out...
Edit:
If I install soupsieve using
pip install soupsieve
it is fully working, but it'll install 2.3.2.post1
So I tried with re-building the python3-soupsieve using the 2.3.2.post1 version instead. No joy...
Last edited by MDKDIO; 07-18-2022 at 02:21 PM.
Reason: added Edit part
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.