I updated file laser.py to follow requirements of python3, but I get stack on error I'm not understand. The error starting on line 29 of my code. Line 29 is 1st effective line:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Change log and other comments
# lot of lines ...
#line 28 is here, following is 29:
import inkex, simplestyle, simplepath
import cubicsuperpath, simpletransform, bezmisc
import os
import math
import bezmisc
import re
import copy
import sys
import time
import cmath
import numpy
import codecs
import random
import gettext
_ = gettext.gettext
When I'm trying to start it manually, I'm getting error:
C:\Program Files\Inkscape\share\inkscape\extensions>..\..\..\bin\python.exe laser.py
Traceback (most recent call last):
File "laser.py", line 29, in <module>
import inkex, simplestyle, simplepath
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\__init__.py", line 11, in <module>
from .extensions import *
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\extensions.py", line 33, in <module>
from .elements import load_svg, BaseElement, ShapeElement, Group, Layer, Grid, \
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\elements\__init__.py", line 8, in <module>
from ._base import SVG_PARSER, load_svg, ShapeElement, BaseElement
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\elements\_base.py", line 31, in <module>
from lxml import etree
ImportError: DLL load failed while importing etree: Selected procedure was not found.
When I'm trying to run it from Inkscape, I'm getting winwows error message about general application error in pythonw:
Hi all,
I'm trying to update laser extension I'm maintain time to time. Original description for context is on page: http://fucik.name/hw/laser/jfu_laser.php
I updated file laser.py to follow requirements of python3, but I get stack on error I'm not understand. The error starting on line 29 of my code. Line 29 is 1st effective line:
When I'm trying to start it manually, I'm getting error:
When I'm trying to run it from Inkscape, I'm getting winwows error message about general application error in pythonw:
Does anyone understand the error?
Thank you
Jindra
OK, look like the problem is bigger than expected. I try to use build in extensions - for example hpgl_output.py
I get same error (meaning python crash).
Have to done some deep dive.
And result is - root cause was https://gitlab.com/inkscape/inkscape/-/issues/2187
That is fixed in last build available for download.