Inkscape 1.4.2 ImportError: No module named 'tinycss2'

I haven’t used inkscape in a while, so do not know when this happened but if you run into the same problem here is the solution:

All I had to do was installing python-tinycss2 (1.4.0-2) in order to make it work again.


In Inkscape 1.4.2 (ebf0e940d0, 2025-05-08)

I got some errors in the opening dialog and when opening the Manage extensions:

ImportError: No module named ‘tinycss2’

After installing tinycss2 still inkscape is slow when opening the extension manager. Still Inkscape is not working well when opening the extension manager. I was trying to Extension > cleanup path on an icon copied from Free Icons
copy an icon
paste it in inkscape
select the icon
Extensions > Modify path > cleanup path
select live preview
Iḿ getting an additional error: UnboundLocalError: cannot access local variable ‘moved_to’ where it is not associated with a value

I guess this is an error in inkscape itself?

1 Like

Are you asking us, or telling us? :slight_smile:


A quick search revealed no similar occurrences here. You might like to try the Inkscape forum as well.

Regards.

Sounds like an error in a python script where a dependency is missing.

I see the exact same behavior.
Also in my case, I haven’t been using Inkscape in a while, before it was definitely working perfectly (I’ve tried on previous projects of mines).

I could see this error even by just opening any template at startup.
I see the error, then a window that says that Inkscape crashed and will be closed.

I would say it is not on the user side, then.

In another computer I don’t have this issue, but because there python-tinycss is installed. Maybe the issue is that it is listed as optional dependency but it shouldn’t be optional.

The missing dependency on python-tinycss2 was added with inkscape 1.4.2-2 (currently in the Manjaro unstable branch).

1 Like