Skip to content

svg2mod.py is not working on Windows #23

@jorgegarciamateos

Description

@jorgegarciamateos

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions