mtl / svg2mod

Convert Inkscape SVG drawings to KiCad footprint modules
Creative Commons Zero v1.0 Universal
236 stars 56 forks source link

SVG module dependency is broken #24

Open zirafa opened 6 years ago

zirafa commented 6 years ago

The PR #18, Make svg2mod installable via pip has broken manual installation of svg2mod. Although package managers are convenient, it should still be possible to install and run this script without one.

Steps to reproduce (Python 2.7 environment)

  1. Clone repo
  2. Run python setup.py install
  3. In the svg2mod subdir run python svg2mod.py -i ../examples/dt-logo.svg

I expected the script to work and output a kicad_mod file but instead saw this error:

$ python svg2mod.py -i ../examples/dt-logo.svg
Traceback (most recent call last):
  File "svg2mod.py", line 10, in <module>
    import svg2mod.svg as svg
  File "svg2mod/svg2mod/svg2mod.py", line 10, in <module>
    import svg2mod.svg as svg
ImportError: No module named svg
rakonsake commented 5 years ago

I have the same issue "import svg2mod.svg as svg" Error.. even though I operate on macOS..