Re: [Inkscape-devel] [Fwd: Re: Extensions on win32]
Ted Gould wrote:
-------- Forwarded Message -------- From: Ted Gould <ted@...11...> To: bulia byak <buliabyak@...400...>, Aaron Spike <aaron@...749...> Cc: Inkscape Devel List inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Extensions on win32 Date: Sun, 02 Mar 2008 21:00:16 -0800
On Sun, 2008-03-02 at 20:01 -0400, bulia byak wrote:
On Sun, Mar 2, 2008 at 9:59 AM, <J.B.C.Engelen@...1578...> wrote:
Now there should be a somewhat cleaner/better fix, however these two effects are broken again. The effects run successfully, but the parameters are not passed correctly.
In rev 17608, function plotter works but dimensions and add nodes do not. Ted, can you please look into whether this might be caused by your recent fixes?
With "Add Nodes" I get:
Traceback (most recent call last): File "/home/ted/Development/inkscape.work/install/share/inkscape/extensions/addnodes.py", line 91, in <module> e.affect() File "/home/ted/Development/inkscape.work/install/share/inkscape/extensions/inkex.py", line 154, in affect self.effect() File "/home/ted/Development/inkscape.work/install/share/inkscape/extensions/addnodes.py", line 81, in effect splits = math.ceil(length/self.options.max) ZeroDivisionError: float division
The inx file would seem to indicate that a value of 0 for max is unallowed. Are these constraints no longer enforced? When you run add nodes do are you passing 0 for the parameter?
<param name="max" type="float" min="0.1" max="10000.0" _gui-text="Maximum segment length (px)">10.0</param>
and with Dimensions I get:
/home/ted/Development/inkscape.work/install/share/inkscape/extensions/dimension.py:60: TagNameWarning: Tag names must not contain ':', lxml 2.0 will enforce well-formed tag names as required by the XML specification. marker.set('inkscape:stockid', name)
Aaron, do you have any ideas on what these could be caused by?
This is a real error in the script: marker.set('inkscape:stockid', name) should be: marker.set(inkex.addNS('stockid','inkscape'), name)
Aaron
On Thu, 2008-03-06 at 07:08 -0600, Aaron Spike wrote:
The inx file would seem to indicate that a value of 0 for max is unallowed. Are these constraints no longer enforced? When you run add nodes do are you passing 0 for the parameter?
<param name="max" type="float" min="0.1" max="10000.0" _gui-text="Maximum segment length (px)">10.0</param>
No, I think no parameter was getting passed. This was why the virtual patch fixed this, makes sense.
and with Dimensions I get:
/home/ted/Development/inkscape.work/install/share/inkscape/extensions/dimension.py:60: TagNameWarning: Tag names must not contain ':', lxml 2.0 will enforce well-formed tag names as required by the XML specification. marker.set('inkscape:stockid', name)
Aaron, do you have any ideas on what these could be caused by?
This is a real error in the script: marker.set('inkscape:stockid', name) should be: marker.set(inkex.addNS('stockid','inkscape'), name)
Is this something that should go in 0.46?
--Ted
Ted Gould wrote:
and with Dimensions I get:
/home/ted/Development/inkscape.work/install/share/inkscape/extensions/dimension.py:60: TagNameWarning: Tag names must not contain ':', lxml 2.0 will enforce well-formed tag names as required by the XML specification. marker.set('inkscape:stockid', name)
Aaron, do you have any ideas on what these could be caused by?
This is a real error in the script: marker.set('inkscape:stockid', name) should be: marker.set(inkex.addNS('stockid','inkscape'), name)
Is this something that should go in 0.46?
Please. I put a patch in lanuchpad:
https://bugs.launchpad.net/inkscape/+bug/199117
Aaron Spike
On Thu, Mar 06, 2008 at 02:01:25PM -0600, Aaron Spike wrote:
Ted Gould wrote:
and with Dimensions I get:
/home/ted/Development/inkscape.work/install/share/inkscape/extensions/dimension.py:60: TagNameWarning: Tag names must not contain ':', lxml 2.0 will enforce well-formed tag names as required by the XML specification. marker.set('inkscape:stockid', name)
Aaron, do you have any ideas on what these could be caused by?
This is a real error in the script: marker.set('inkscape:stockid', name) should be: marker.set(inkex.addNS('stockid','inkscape'), name)
Is this something that should go in 0.46?
Please. I put a patch in lanuchpad:
https://bugs.launchpad.net/inkscape/+bug/199117
Aaron Spike
Applied.
Bryce
On Thu, Mar 06, 2008 at 04:49:13PM -0600, Aaron Spike wrote:
Bryce Harrington wrote:
Applied.
Wow. That's really cool how the bug gets a second line for release, assignee, etc when it is milestoned.
Actually that isn't milestones - this is done via 'Nominate for Release' (aka 'Target to release' for bug team members).
Bryce
participants (3)
-
Aaron Spike
-
Bryce Harrington
-
Ted Gould