I installed the extension Offset Paths (Offset Paths - Inkspace the Inkscape Gallery | Inkscape) on my computer and when I run it, Inskcape tells me that "Pyclipper" Python module can't be imported because it doesn't exist.
"Traceback (most recent call last): File "C:\Users\xxxxxx\AppData\Roaming\inkscape\extensions\offset_paths_QyiED8L\offset_paths\offset_paths.py", line 23, in <module> import pyclipper ModuleNotFoundError: No module named 'pyclipper'"
I tried to install "Pyclipper" through Anaconda and the software answers me:
"!pip3 install pyclipper Requirement already satisfied: pyclipper in c:\programdata\anaconda3\lib\site-packages (1.3.0.post2)"
What could I do, please ? Not a lot of information on installing Python modules for Inkscape on the internet!
Thanks a lot by advance,
Elnonoche
Edit : Pyclipper is also in c:\users\xxxxx\appdata\roaming\python\python37\site-packages\pyclipper\
Inkscape 1.1.2 (b8e25be833, 2022-02-05) on windows 10
One approach to consider is to set your Inkscape installation to use your system Python. Otherwise, it uses the Python installation within Inkscape, which has a different set of modules installed.
Do not use Python 2; the Inkscape extensions require Python 3.
The python-interpreter line needs to point to your actual Python interpreter: The executable, not just a folder.; usually something ending with ".exe."
In a Command Prompt, try where python to list its location. Or, if you're using Anaconda, that may be some other method that you need to use.
For me, the location is C:\Users\oskay\AppData\Local\Microsoft\WindowsApps\python.exe For you, it may be something different.
I've a similar problem with Inkscape&Extensions. Can you please tell me (exactly) what you have done to make it work? If I enter the absolute path to preference.xml it does not work. Inkscape tells me that it cannot find the folder or file. But I'm quite sure I've entered the correct path to Python.exe ...
Hello all,
I installed the extension Offset Paths (Offset Paths - Inkspace the Inkscape Gallery | Inkscape) on my computer and when I run it, Inskcape tells me that "Pyclipper" Python module can't be imported because it doesn't exist.
"Traceback (most recent call last):
File "C:\Users\xxxxxx\AppData\Roaming\inkscape\extensions\offset_paths_QyiED8L\offset_paths\offset_paths.py", line 23, in <module>
import pyclipper
ModuleNotFoundError: No module named 'pyclipper'"
I tried to install "Pyclipper" through Anaconda and the software answers me:
"!pip3 install pyclipper
Requirement already satisfied: pyclipper in c:\programdata\anaconda3\lib\site-packages (1.3.0.post2)"
What could I do, please ? Not a lot of information on installing Python modules for Inkscape on the internet!
Thanks a lot by advance,
Elnonoche
Edit : Pyclipper is also in c:\users\xxxxx\appdata\roaming\python\python37\site-packages\pyclipper\
Inkscape 1.1.2 (b8e25be833, 2022-02-05) on windows 10
One approach to consider is to set your Inkscape installation to use your system Python. Otherwise, it uses the Python installation within Inkscape, which has a different set of modules installed.
See "Selecting a specific interpreter version (via preferences file)":
https://inkscape.gitlab.io/extensions/documentation/authors/interpreters.html
Hello,
Thx for your reply ! I didn't know that!
So i add " python-interpreter="C:\Program Files\Python37"
And now, there is no message any more but the extension doesn't work, nothing happens !
I read that maybe I should have the 2.7 version of Python but I can try that, impossilbe to install on my professional laptop.
So, I will have to work on my personnal computer and export datas on my professional one afterwards.
Thx again for you help!
Elnonoche
Couid it be because I use a 64bit version of Python ? --> Python 3.7 (64-bit)
Elnonoche
Do not use Python 2; the Inkscape extensions require Python 3.
The
python-interpreter
line needs to point to your actual Python interpreter: The executable, not just a folder.; usually something ending with ".exe."In a Command Prompt, try
where python
to list its location. Or, if you're using Anaconda, that may be some other method that you need to use.For me, the location is
C:\Users\oskay\AppData\Local\Microsoft\WindowsApps\python.exe
For you, it may be something different.
Yeah, it works!!!!
Thank you very much for your help, once again !
elnonoche
Hi both,
I've a similar problem with Inkscape&Extensions. Can you please tell me (exactly) what you have done to make it work? If I enter the absolute path to preference.xml it does not work. Inkscape tells me that it cannot find the folder or file. But I'm quite sure I've entered the correct path to Python.exe ...
Should I downgrade to Python 2.7?
Thanks for your help!