檔案圖示
 
 

2980

Inkscape Fillet and Chamfer

作者 taoari

This extension implements the Fillet and Chamfer function for inkscape described as http://launchpadlibrarian.net/12692602/rcp.svg.

Inkscape Extensions

大小
6.7 KB
建立時間
類型
application/zip
General Public License v2 (GPLv2)

連結

Gilu 寫於

Inkscape (0.92.1 r15371) threw this at me:

Traceback (most recent call last):
File "filletchamfer.py", line 21, in <module>
import svgpathtools
ImportError: No module named svgpathtools

Even after "pip install svgpathtools" ...

taoari 寫於

You may start with a python console, and type in "import svgpathtools" to see if it is successful. Be sure it is Python 2, it seems that inkscape extension is using python 2.

Inkscapian 寫於

Python console? I am sorry ...how to find one?

Maren Hachmann 寫於

Just type 'python' on your command line and hit enter.

Rafik Alhaji 寫於

it does not work friends

John Pinion 寫於

It does work!! You must install svgpathtools, as noted in the "readme" file. pip install svgpathtools --user

_RM_ 寫於

Is there a way to install "svgpathtools" on Windows?

CinderGuardian 寫於

I had the same issue as Gilu - Python kept throwing the "ImportError: No module named svgpathtools" error even after ensuring that svgpathtools and the correct release of Python were installed as taoari recommended.

Here's what I found: Inkscape runs the python.exe application found in C:\Program Files\Inkscape. This loads a different path than the python.exe found in C:\Python27 (or wherever your version of Python is installed). svgpathtools is found on the path when I run python from the terminal. However, it is NOT on the path when the "Fillet and Chamfer" extension runs the Python script.

To solve this, you can manually have the script add the folder in which svgpathtools is stored to the path. Edit filletchamfer.py by inserting the following lines BEFORE the line that says "import svgpathtools":

import sys
sys.path.append('C:\\Users\\*YOUR_WINDOWS_USERNAME_HERE*\\AppData\Roaming\Python\Python27\site-packages')

Once you've saved, the script should have no problem loading svgpathtools.
Now I'm off to go do some filleting...

faizanzh 寫於

Okay so I am a total newbie and I don't know much about coding and stuff, My question is how to do this: """"you can manually have the script add the folder in which svgpathtools is stored to the path. Edit filletchamfer.py by inserting the following lines BEFORE the line that says "import svgpathtools": """"import sys
sys.path.append('C:\\Users\\*YOUR_WINDOWS_USERNAME_HERE*\\AppData\Roaming\Python\Python27\site-packages')""""

brynn 寫於

Hello,
Thank you for providing this extension for Inkscape users!

This is just to let you know that most 3rd party Inkscape extensions, like this one, probably will not work with the upcoming new Inkscape version, the long-awaited version 1.0.

Here is the info you need to update this extension, so that it will work with 1.0 and future versions.
https://wiki.inkscape.org/wiki/index.php?title=Updating_your_Extension_for_1.0

If you have further questions, you can contact Inkscape developers via mailing lists (https://lists.inkscape.org/postorius/lists/?all-lists), forum (https://inkscape.org/forums/extensions/), or the chatroom (https://chat.inkscape.org/channel/team_devel)

If you have already updated it, please disregard this message.

All best,
brynn

Mario Voigt 寫於

upgrade to Python 3 was a little bit more work. made a fork repo but did not make a PR yet > https://github.com/vmario89/inkscape-filletandchamfer

K 寫於

It runs. It makes paths. But there are no changes to my rectangle. (Yes, I made it a path rather than an object.)

登入以留下評註!