inkscape-applytransforms icon indicating copy to clipboard operation
inkscape-applytransforms copied to clipboard

deprecated multiplication operator

Open verybigelephants opened this issue 1 year ago • 2 comments

When trying to apply transform i get a deprecated warning:

DeprecationWarning: inkex.deprecated.main.transform_mul -> Use @ operator instead
  transf = Transform(transf) * Transform(node.get("transform", None))

verybigelephants avatar Jul 21 '22 11:07 verybigelephants

This is a duplicate of https://github.com/Klowner/inkscape-applytransforms/issues/55.

jtojnar avatar Jul 21 '22 12:07 jtojnar

i am going to fix that stuff in the next month for several other plugins; since python 3.10 and Inkscape 1.2 there are a lot of new deprecations in multiple extensions

vmario89 avatar Jul 22 '22 10:07 vmario89

Any progress on this?

I did try to replace * with @ in the code. The error disappears, but the result does not show a transform.

kongo09 avatar Dec 03 '22 21:12 kongo09

I'm running into this issue also, deprecation warning and no transformation is taking place. Inkscape 1.2.1 M1 Mac

aaronfay avatar Dec 20 '22 05:12 aaronfay

If you're not seeing the results you expect, please open a new ticket with an example svg and steps to reproduce.

This deprecation warning is not an error and does not impact the operation of this extension. The warning lets us know that it will eventually break with a future release of inkscape. When that time comes, there will not be a warning but an actual error.

Klowner avatar Dec 20 '22 11:12 Klowner

@Klowner understood, however the extension is still not flattening the SVG. I will open a new ticket with more details.

aaronfay avatar Dec 20 '22 16:12 aaronfay

Just got this same error on Inkscape 1.3

C:\Users\Haley\AppData\Roaming\inkscape\extensions\applytransform.py:60: DeprecationWarning: inkex.deprecated.main.transform_mul -> Use @ operator instead
  transf = Transform(transf) * Transform(node.get("transform", None))

JapanYoshi avatar Oct 26 '23 01:10 JapanYoshi

Fixed by #62, can be closed now.

ziegenberg avatar Nov 06 '23 14:11 ziegenberg