I am porting an extension to macOS (Catalina) and running Inkscape 1.1.1. On ubuntu the extension works from either the UI or the CLI. I set PYTHONPATH to /usr/share/inkscape/extensions. On macOS I tried the same trick.
which causes inkex to be imported, but then fail with lxml Module not found errors. The module exists in site-packages so I am puzzled why inkex does not see it.
Hi
I am porting an extension to macOS (Catalina) and running Inkscape 1.1.1. On ubuntu the extension works from either the UI or the CLI. I set PYTHONPATH to /usr/share/inkscape/extensions. On macOS I tried the same trick.
export PYTHONPATH='/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/'
which causes inkex to be imported, but then fail with lxml Module not found errors. The module exists in site-packages so I am puzzled why inkex does not see it.
Any idea?
Gavin
Hello, after a bit more digging I got this to work as follows. Firstly here is a test without PYTHONPATH
Then hydrate the shell environment and try again
What I learnt is that site-packages needs to come before extensions.