Svgwrite only works in IDLE

98 Views Asked by At

Inexperienced in programming.

Svgwrite scripts only work in IDLE for me. Let's say you have this:

import svgwrite
svg_document = svgwrite.Drawing(filename = 'new.svg', size = (2400, 2400))
print(svg_document.tostring())
svg_document.save()

What would you need to add to make it run normally?

Thanks for any help!

1

There are 1 best solutions below

1
AudioBubble On

Is SVGWrite an imported or system library? If it's an imported lib, you need to compile the code so it works. Use https://pypi.org/project/auto-py-to-exe/ programm. If it's a system lib, i have no idea.