-
Notifications
You must be signed in to change notification settings - Fork 56
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
svg2mod.py is not working on Windows #23
Comments
i developed inkscape extension to convert drawing to kicad, it works on windows too |
Hi @jorgegarciamateos , You first need to run the setup.py script located at the root directory of this project like such:
Also, @badgeek, this really isn't the place to promote your project. |
@kylenahas hi kyle, sorry i thought that this project is not maintained anymore, with much respect i learn a lot from svg2mod thank you! |
Can somebody give me an example how to execute the script? ..or installation guide? |
Also having a lot of trouble with this, and I'm running via Terminal on Mac OSX 10.11.6. Here are the various methods I attempted: SETUP.PY methodAfter running
PIP methodTried to install via PIP: Installation is successful, but trying to run the binary on the provided example svg also fails:
The commits in PR #18 rearranged the folder structure and changed how the svg module was imported in svg2mod.py. However with both install methods the SVG dependency appears to be broken, or there is some additional documentation missing around how to install this properly. |
I've narrowed down the issue to Python version. Currently svg2mod is only compatible with Python2 environments. If you are running Python3, svg2mod in its current form will not work due to the deprecation of the following methods: Built-in changes for Python 3:
After updating these methods in svg2mod.py and svg.py, I was able to get the script to work, but only when installed via pip3. Manually building via setup.py install still fails... I created a fork that is compatible with python3 here if anybody wants to try it, and opened a separate issue about the svg dependency problem. |
i have the same problem and i did run the installer
C:\Users\boher\Downloads\svg2mod-master\svg2mod-master\svg2mod>svg2mod.py -i logo.svg -o logo.kicad_mod -d 600 C:\Users\boher\Downloads\svg2mod-master\svg2mod-master\svg2mod> |
i will read those 2, but i asume your suggestions are meant for windows? |
btw running python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) |
@boelle for python 2.7 try running |
not right syntax
|
remember i'm on windows and not linux |
You want to run that in your shell command prompt, not in Python. If it still doesn't work, you may need to install pip. |
hehe, there should be an online thing for this, much less trouble for the user this will be a task for tomorrow |
It would be nice to add the "python setup.py install" command to the documentation. I mean, how everyone is supposed to know ? |
Also, the line "import svg2mod.svg as svg" crashes. |
Hello. I'm new ussing svg2mod.py. I am on Windows 10 and Python 3.6. I cloned your repo and generated a file named "led_array_txt.svg" in inkspace, in a layer named SilkS. I typed in a terminal:
C:\Users\Jorge\Documents\Kicad\svg2mod-master\svg2mod>svg2mod.py -i led_array_txt.svg -p 1 -f 0.94
And the result was:
Traceback (most recent call last):
File "C:\Users\Jorge\Documents\Kicad\svg2mod-master\svg2mod\svg2mod.py", line 10, in
import svg2mod.svg as svg
File "C:\Users\Jorge\Documents\Kicad\svg2mod-master\svg2mod\svg2mod.py", line 10, in
import svg2mod.svg as svg
ModuleNotFoundError: No module named 'svg2mod.svg'; 'svg2mod' is not a package
Of course, no file .mod was generated. Could you help me, please?
Even if I run:
C:\Users\Jorge\Documents\Kicad\svg2mod-master\svg2mod>svg2mod.py --help
The result is the same:
Traceback (most recent call last):
File "C:\Users\Jorge\Documents\Kicad\svg2mod-master\svg2mod\svg2mod.py", line 10, in
import svg2mod.svg as svg
File "C:\Users\Jorge\Documents\Kicad\svg2mod-master\svg2mod\svg2mod.py", line 10, in
import svg2mod.svg as svg
ModuleNotFoundError: No module named 'svg2mod.svg'; 'svg2mod' is not a package
I'm lost...
The text was updated successfully, but these errors were encountered: