相关文章推荐
爱看球的伤疤  ·  Jetlinks - ...·  4 天前    · 
爱看球的伤疤  ·  from ...·  3 月前    · 
爱看球的伤疤  ·  vue.js - vuejs plugin ...·  7 月前    · 
爱看球的伤疤  ·  javax.net.ssl.SSLHands ...·  9 月前    · 
爱看球的伤疤  ·  Class ...·  10 月前    · 
文雅的沙滩裤  ·  WKWebView拦截请求资源 ·  8 分钟前    · 
独立的眼镜  ·  如何连接Babelfish for RDS ...·  1小时前    · 
发财的蛋挞  ·  Microsoft Azure Data ...·  1小时前    · 
冷冷的投影仪  ·  Secure an ASP.NET ...·  2 小时前    · 
不羁的生姜  ·  PSPSDK 开发的时候出现 ...·  2 小时前    · 

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:

#!/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:

Does anyone understand the error?

Thank you

Jindra

 
推荐文章