Error message when using the extension Dimensions

Post questions on how to use or achieve an effect in Inkscape.
Konive
Posts: 5
Joined: Thu Jan 24, 2019 8:38 pm

Error message when using the extension Dimensions

Postby Konive » Fri Jan 25, 2019 11:34 pm

I'm using Inkscape 0.92.4 for technical illustrations and it is doing a great job. The one big gap I have to fill is adding the dimension annotations. I have tried all the tips like Visualize Path or the Measurement tool, but nothing is even close to be a solution. There is one extension that would be perfect:

Dimensions from fsmMLK.

But whatever I do, I get a python error back.

Code: Select all

Traceback (most recent call last):
  File "dimensions.py", line 838, in <module>
    dimension.affect()
  File "inkex.py", line 283, in affect
    self.effect()
  File "dimensions.py", line 196, in effect
    [P1,P2] = self.getPointsLinDim(element,so.LINdirection)
  File "dimensions.py", line 790, in getPointsLinDim
    [P1,P2] = self.getPoints(element)
ValueError: too many values to unpack


At work I'm using a portable 0.92.4 on Windows 8.1, at home I tried an installation with Windows 10 and installed Python 2.7, but the error is the same. I did not install LaTEX and have disabled the option in the extension. I added a simple drawing of a standard pallet for the chemical industry, but I don't think this is the reason for the failure.
Attachments
pallet CP5 drawing.svg
Standard pallet of the chemical industry in Germany - CP5
(59.9 KiB) Downloaded 144 times

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Error message when using the extension Dimensions

Postby Lazur » Sat Jan 26, 2019 2:38 pm

Hi.

Try the development build. It has a dimensioning path effect =updating the measures in real time.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Error message when using the extension Dimensions

Postby Moini » Sun Jan 27, 2019 3:04 am

Make a bug report by opening an issue on the extension's code hosting site (there's a link to github on the page you linked to: https://github.com/fsmMLK/inkscapeDimensions ), so the author can fix the extension.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Konive
Posts: 5
Joined: Thu Jan 24, 2019 8:38 pm

Re: Error message when using the extension Dimensions

Postby Konive » Mon Jan 28, 2019 11:42 pm

@Lazur
I need it at work and there I can't install a Linux VM. I will see what I can do with GCC or MSYS2 at home, but this isn't exactly my field of expertise.

@Moini
I hoped I made a simple mistake and it is not an error of the extension itself. Did you get a similar error?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Error message when using the extension Dimensions

Postby Moini » Tue Jan 29, 2019 8:43 am

You're right. Make sure your measure line (the one that you add to the drawing) only has the allowed number of nodes. See https://github.com/fsmMLK/inkscapeDimen ... /README.md
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Error message when using the extension Dimensions

Postby Lazur » Tue Jan 29, 2019 5:21 pm

Konive wrote:@Lazur
I need it at work and there I can't install a Linux VM.


Was referring to this lpe.

There is a link to a running win standalone version.

Konive
Posts: 5
Joined: Thu Jan 24, 2019 8:38 pm

Re: Error message when using the extension Dimensions

Postby Konive » Wed Jan 30, 2019 9:45 pm

@moini
D**it, read so much, but missed the part with the auxiliary lines. Using the KISS principle I played around with a blank drawing and singular lines and angles. Angular worked immediately, but straight lines always gave this error back

Code: Select all

Traceback (most recent call last):
  File "dimensions.py", line 838, in <module>
    dimension.affect()
  File "inkex.py", line 283, in affect
    self.effect()
  File "dimensions.py", line 202, in effect
    horizontalText=so.LINhorizontalText,invertTextSide=so.LINinvertTextSide,smallDimension=so.LINsmalDimStyle)
  File "dimensions.py", line 603, in drawLinDim
    value=self.userUnit2unit(value,self.documentUnit)
AttributeError: Dimensions instance has no attribute 'userUnit2unit'

To fix the problem you have to use the last version of another extension fsmMLK wrote, InkscapeMadeEasy.

@Lazur
I will annotate a few drawings colleagues are waiting for, then I switch to this α. Should I report here or in the thread with the download?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Error message when using the extension Dimensions

Postby Moini » Wed Jan 30, 2019 10:56 pm

Exactly. The extension requires another python module to function.

Bug reports should go to https://gitlab.com/inkscape/inbox/issues/

I wouldn't recommend to use the alpha for production, just for testing. Depending on your operating system, there are a couple of possibilities how to have more than one version of Inkscape installed.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Konive
Posts: 5
Joined: Thu Jan 24, 2019 8:38 pm

Re: Error message when using the extension Dimensions

Postby Konive » Fri Feb 01, 2019 12:04 am

Yeah, I already had downloaded InkscapeMadeEasy, and definitely after November, but this commit wasn't included.

I'm running into a problem with disappearing markers on arrows. There were some bugs filled for this, but all seem to be solved. I don't think this is introduced due to the use of this extension, but I want to make sure. The markers are there, they reappear when I copy the line to another sketch. After ungrouping the arrowheads are back, but after scrolling or adding another annotation they are gone again. Not all, and with no obvious pattern. I replaced the lines drawn by the extension but get the same behavior as well.

System: Inkscape 0.92.4/VM on Windows Server 2008 R2 64bit.
Attachments
dissappearing arrowheads.svg
(7.27 KiB) Downloaded 129 times

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Error message when using the extension Dimensions

Postby brynn » Sat Feb 02, 2019 1:53 am

I can't reproduce this, although I'm still using 0.92.3. But it sounds like a display issue.

When you say it looks like the bugs you found are solved, do you mean the bug reports indicate "Fix Released"? If you found a bug that seems to fit the problem that you see, it's probably a good idea to report it. Maybe it's not fixed after all? Or it could be a different problem.

For 0.92.4, it should be reported here: https://gitlab.com/inkscape/inbox/issues (click on the green New Issue button) But be sure and include links to the (launchpad) report or reports which you think might be related.


Return to “Help with using Inkscape”