Skip to content

pathops.py script not working in Inkscape 1.1.1 for Mac OS #2

@mjlcourier

Description

@mjlcourier

Pathops extension, which I had added manually some years ago to an earlier version of Inkscape, was deleted when I updated my Mac OS Inkscape.app to Inkscape 1.1.1.

I manually copied the current inkscape-extension-pathops files to the correct folder and saw that the relevant menus and submenus appeared after restarting Inkscape.

Unfortunately, running an extension such as Intersection fails and instead returns an error:
"
pathops.py:238: DeprecationWarning:
Effect.OptionParser or optparse has been deprecated and replaced with argparser.
You must change
self.OptionParser.add_option
to
self.arg_parser.add_argument
; the arguments are similar.
"

If I do what this error is suggesting and replace all occurrences of the problematic term in the .py file, I get a different error:
"
Traceback (most recent call last):
File "pathops.py", line 1, in
self.arg_parser.add_argument
NameError: name 'self' is not defined
"
I am wondering if there is some repair or alteration that needs to be done to make the pathops extension compatible with Inkscape 1.1.1 for Mac OS. This is beyond my coding abilities but it may be something quite easy to do for those who understand the errors.

Any assistance would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions