LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-17-2022, 11:57 AM   #1
MDKDIO
Member
 
Registered: Mar 2004
Location: Sweden
Distribution: Slackware 15
Posts: 521

Rep: Reputation: 187Reputation: 187
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"?
 
Old 07-17-2022, 05:06 PM   #2
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 977

Rep: Reputation: 239Reputation: 239Reputation: 239
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).
 
Old 07-17-2022, 05:12 PM   #3
gouttegd
Member
 
Registered: Nov 2019
Location: London, UK
Distribution: Slackware
Posts: 94

Rep: Reputation: 161Reputation: 161
python-cssselect is indeed a (runtime-only) dependency of Inkscape since Inkscape 1.2

Another similar runtime-only dependency is CacheControl, which is needed by the Import Web Image feature.
 
Old 07-18-2022, 03:07 AM   #4
MDKDIO
Member
 
Registered: Mar 2004
Location: Sweden
Distribution: Slackware 15
Posts: 521

Original Poster
Rep: Reputation: 187Reputation: 187
Thanks both of you!!

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
 
Old 07-18-2022, 02:03 PM   #5
MDKDIO
Member
 
Registered: Mar 2004
Location: Sweden
Distribution: Slackware 15
Posts: 521

Original Poster
Rep: Reputation: 187Reputation: 187
I gave it another go by removing lockfile and CacheControl

pip uninstall CacheControl (as user)
removepkg lockfile (as su)

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
 
  


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: Inkscape 1.1.2 Delivers More Bug Fixes, Inkscape 1.2 Promises Major UX Changes LXer Syndicated Linux News 0 02-06-2022 02:15 PM
Questions for Robby, ponce, or anyone from SBo about SBo submission requirements. ReaperX7 Slackware 4 06-07-2015 11:30 AM
[SOLVED] SBo-Webkit does not compile on current; inkscape need gcc-4.8 patched source brobr Slackware 4 04-03-2013 08:38 AM
Nvidia-driver.SlackBuild from SBo (or: I am a bad and sloppy SBo maintainer) kingbeowulf Slackware 8 08-31-2012 02:41 AM

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

All times are GMT -5. The time now is 03:56 PM.

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