Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mjlcourier opened this issue Jan 13, 2022 · 2 comments
Open

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

mjlcourier opened this issue Jan 13, 2022 · 2 comments

Comments

@mjlcourier
Copy link

mjlcourier commented Jan 13, 2022

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.

@mjlcourier
Copy link
Author

Is this issue connected with the following information on the NEWS.md site? See https://gitlab.com/inkscape/inkscape/-/blob/master/NEWS.md

"Third-party extensions
Third-party extensions need to be updated to work with this version of
Inkscape.
For extension writers
[TBC - not final] Extensions have undergone some fundamental changes.
Inkscape's stock extensions have been moved to their own repository and were
updated for compatibility with Python 3. Internally, extensions have been
reorganized and many functions have been deprecated.
[Extension manager? How-to-guide for updating? New API elements?
Documentation?]
Instructions for updating old extensions are available at Updating your
Extension for 1.0
Also note the changed command line options."

@quintesse
Copy link
Owner

I've tried to update the extension and it at least doesn't throw any errors anymore.... but unfortunately it also doesn't work.

THe progress so far can be found in this branch: https://github.com/quintesse/inkscape-extension-pathops/tree/inkscape_1_1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants