Export to plt not working in Windows 10

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Export to plt not working in Windows 10

Postby hulf2012 » Wed Nov 04, 2015 1:23 pm

Recently in Win 10 machines I've experimented some problems exporting to DXF or PLT format.
Anyone can confirm?

Just make a drawing in SVG, and then try to save as dxf or plt
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Export to plt not working in Windows 10

Postby ~suv » Wed Nov 04, 2015 8:04 pm

hulf2012 wrote: I've experimented some problems exporting to DXF or PLT format
Which version of Inkscape do you have installed? Could you describe the problems, or give at least some hints what you expect and what actually happens? Are the problems the same for both file formats?

hulf2012 wrote:Just make a drawing in SVG
Could you share a test case (Inkscape SVG) file which exposes the issue(s) you encounter on Windows 10? "make a drawing" is rather vague (each of the mentioned output extensions has its own limitations with regard to which types of objects/shapes (besides paths) are supported - converting object(s) to path before exporting usually helps with that).

  • Export to PLT uses UniConvertor (a third-party python module bundled with Inkscape), which has repeatedly caused problems on Windows in the past. It may also (on any platform) fail if paths have certain unexpected attributes (e.g. paths created by applying menu 'Path > Stroke to Path').
  • Export to DXF (does not use UniConvertor) for example does not support exporting circle/ellipses drawn with Inkscape 0.91, and omits rounded corners of rectangles. Exporting to DXF with 'LWPOLYLINE' checked may produce erroneous output for closed paths.

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Export to plt not working in Windows 10

Postby hulf2012 » Thu Nov 05, 2015 12:52 am

Hello

You are right. I was writen from my memory at that time.

- With DXF seems there is no problem

- With PLT:
-- I'm on a recently updated to Windows 10 machine, of 64 bits
-- Inkscape 0.91 r13725, installed in "C:\Program Files

-- I just make a quick draw: A open path, a closed path
-- "Save a copy"
-- "HP ... Autocad" (.plt)
-- A window appears:
"
Inkscape ha recibido información adicional del script ejecutado. El script no ha devuelto un error, pero esto puede indicar que el resultado no será el esperado."

Basically it says: "Script hasn't give error message, but it may indicate the result will not be the expected"
... but just a blank textpanel appears

-- After clicking Ok, a window appear saying: "file wasn't saved"

---------
Saving as hpgl seems to work OK

About Uniconvertor... Should I Install that last version?... and how to make Inkscape aware of that installation?

I'm attaching a simple test file

Edit: Just thinking: Inkcut extension also depends of Uniconvertor?... I can't test in Win 10 neither, because It says It doesn't found pygtk... but in a Linux Machine it works fine!!
Attachments
test00.svg
(2.22 KiB) Downloaded 418 times
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Export to plt not working in Windows 10

Postby ~suv » Thu Nov 05, 2015 1:25 am

hulf2012 wrote:About Uniconvertor... Should I Install that last version?... and how to make Inkscape aware of that installation?
As far as I know, Inkscape packages for Windows already include the latest version of UniConvertor (1.1.5) - there have been no newer releases of the 1.1.x series of UniConvertor after that, nor a newer major release (1.2 or 2.0).

hulf2012 wrote:Just thinking: Inkcut extension also depends of Uniconvertor?... I can't test in Win 10 neither, because It says It doesn't found pygtk... but in a Linux Machine it works fine!!
InkCut does not use UniConvertor - it depends on the Python bindings for Gtk+ for its custom dialog (pygtk is not included in Inkscape packages for Windows), and requires pyserial (another python module not included in Inkscape's packages for Windows). As far as I understand InkCut was developed on Linux for Linux - if you need InkCut with full and out-of-the-box cross-platform support (for Windows), you probably want to find a volunteer developer helping with porting those parts of the custom extension which are not available natively on a regular Windows machine and not bundled with Inkscape either.

Note that Inkscape 0.91 includes a new extension which can send HPGL code to plotters via serial port (menu 'Extensions > Export > Plot'). Some documentation by its author can be found here:
Last edited by ~suv on Thu Nov 05, 2015 1:44 am, edited 1 time in total.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Export to plt not working in Windows 10

Postby ~suv » Thu Nov 05, 2015 1:37 am

hulf2012 wrote:I'm attaching a simple test file
Attaching PLT exported with Inkscape 0.91 (UniConvertor 1.1.5) on OS X 10.7.5 - seems to work ok i.e. not a generic bug in Inkscape nor a generic one in UniConvertor which would prevent this from working at all. More likely you experience a problem related to Inkscape's packaging for Windows (sorry, I can't really help with that apart from providing links to known issues, see earlier comment). Which installer did you use for Inkscape itself - the 32bit or the 64bit one?
Attachments
hulf2012-test00.plt.zip
(285 Bytes) Downloaded 276 times

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Export to plt not working in Windows 10

Postby hulf2012 » Thu Nov 05, 2015 1:54 am

Thanks Suv

I "guess" it's Inkscape for 64 bits, because it's installed in "Program Files", not in "Program Files (x86)". This Win 10 machine, is used for others, so the installer got deleted.
... Perhaps another win10 user has similar problem?

...
By the way, (and it can go to other topic)... Inkscape 0.91 doesn't export to .cdr and/or .ai ?.
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Export to plt not working in Windows 10

Postby ~suv » Thu Nov 05, 2015 2:22 am

Off topic:
hulf2012 wrote:By the way, (and it can go to other topic)... Inkscape 0.91 doesn't export to .cdr and/or .ai ?.
Inkscape 0.91 does not support export to CDR and AI.

Do you know any open-source and free/libre libraries (with cross-platform support/availability) which could be used by Inkscape to export to these proprietary file formats? Should Inkscape attempt to support exporting to such proprietary (non-open) file formats at all (if that isn't prevented by legal aspects anyway)? As far as I know, CorelDraw as well as Adobe Illustrator do have basic SVG support (for reading as well as writing) …

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Export to plt not working in Windows 10

Postby hulf2012 » Thu Nov 05, 2015 5:06 am

:oops: Sorry
I was confused. From other post There was a discussion about old versions of Inkscape, which aparently did have support for export to .ai.

If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Export to plt not working in Windows 10

Postby ~suv » Thu Nov 05, 2015 5:43 am

hulf2012 wrote:I was confused. From other post There was a discussion about old versions of Inkscape, which aparently did have support for export to .ai.
http://tavmjong.free.fr/INKSCAPE/MANUAL ... xport.html

Adding a full-quote of the relevant section of the manual (in a weak attempt to prevent anyone from misinterpreting your statement - I doubt that the decision made 6 years ago was questionable in any way):
The Inkscape manual wrote:
  • Removed in v0.47.

    .ai (Adobe Illustrator). Inkscape v0.46 and earlier supported export to the Adobe Illustrator version 8.0 file format which is a modified form of the EPS level 2 format. This support has been removed since Adobe Illustrator versions 10 (2001) and later can directly import SVG files. This is a better solution as the quality of the AI export was poor.


hulf2012 wrote:In the future, the uniconvertor method to export to plt (and sk1, etc) will be dropped maybe?.
If Inkscape should not include extensions/features which do not work well (or fail) on Windows but are ok with packages for other platforms, then this removal of file formats supported via UniConvertor could be proposed and discussed for a future release. It is not an argument I would make myself - I would rather tend towards us trying to fix packaging of Python modules for Inkscape's Windows port instead of simply stop using a tool which otherwise does work ok (within its scope). From a long-term perspective, the current UniConvertor-based input- and output extensions are likely to get replaced (obsoleted) at some point - be it by new ones based on a new major release of UniConvertor (2.0 ?); or by some other code path we don't know about today.

geraldo
Posts: 1
Joined: Sat Nov 21, 2015 1:56 am

Re: Export to plt not working in Windows 10

Postby geraldo » Sat Nov 21, 2015 2:16 am

hello i have the same problem
windows 10 inkscape 0.91
export .plt
error

Das aufgerufene Skript hat zusätzliche Daten an Inkscape übergeben. Es wurde keine Fehlermeldung vom Skript zurückgegeben, doch das Resultat ist möglicherweise unbrauchbar.
( mean something like
the called script give some data to inkscape no error message but the resukt is unusable

and then

UniConvertor failed:

Traceback (most recent call last):

File "<string>", line 1, in <module>

File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\__init__.py", line 83, in uniconv_run

from app.io import load

File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\__init__.py", line 69, in <module>

from conf.configurator import Configurator

File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\conf\configurator.py", line 11, in <module>

from app.events import connector

File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\__init__.py", line 124, in <module>

from sk1libs.ft2engine import GetFont

File "C:\Program Files\Inkscape\python\lib\site-packages\sk1libs\ft2engine\__init__.py", line 26, in <module>

import ft2

ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.



thanks gerald

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

Re: Export to plt not working in Windows 10

Postby brynn » Sat Nov 21, 2015 4:39 am

As far as I understand the discussion above, the last relevant comment was that the problem is suspected to be in how Inkscape is packaged for Windows. suv doesn't use Windows, or I'm sure she would have tried to track down the problem.

So if I understand what I've read (and there's a good chance I don't), this problem needs a developer who is familiar with packaging Inkscape for Windows, to take some interest.

Should this be a bug report?

jenC
Posts: 3
Joined: Fri Dec 25, 2015 5:36 am

Re: Export to plt not working in Windows 10

Postby jenC » Fri Dec 25, 2015 5:39 am

I'm having the same issue. I downloaded inkscape to my new windows 10 machine in order to convert SVG to dxf for use on my Wishblade cutting machine.

I'm getting this error:
Inkscape has received additional data from the script executed. The script did not return an error, but this may indicate the results will not be as expected.

Traceback (most recent call last):
File "dxf_outlines.py", line 345, in <module>
e.affect()
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 265, in affect
self.getposinlayer()
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 207, in getposinlayer
x = self.unittouu( xattr[0] + 'px' )
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 351, in unittouu
return retval * (self.__uuconv[u.string[u.start():u.end()]] / self.__uuconv[self.getDocumentUnit()])
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 304, in getDocumentUnit
p = param.match(svgwidth)
TypeError: expected string or buffer


File ..... could not be saved.

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

Re: Export to plt not working in Windows 10

Postby Moini » Fri Dec 25, 2015 8:13 am

This doesn't look like it is the same problem as hulf has (to me...).
Seems your svg file does not contain a width attribute.
For more info, see this and related bug reports (it's a common problem with extensions / specific svg files in 0.91):
https://bugs.launchpad.net/inkscape/+bug/1463623

I think it could be possible to fix this (temporarily, without having to modify the python code) by copying the contents of your file into a new Inkscape file.
(Open new document, copy everything over from the old one to the new one, save under a different file name, use extension in new file).
Would you try it out, jenC?

Edit: It most probably works - just found this comment from suv: viewtopic.php?t=19373#p74097
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)

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Export to plt not working in Windows 10

Postby hulf2012 » Fri Dec 25, 2015 8:20 am

Hello
I missed the last post from the last users! ... Did I do something wrong with my setup of the forum?
geraldo:
- If you want a plt file of your design in Inkscape, you can use the option: Save as HPGL... see the early discussion here, and the indications of SUV
- Exporting to DXF: See the same posts of SUV early: you have to uncheck LWPolyline, as well to change other options.

jenC:
Some parts of the code used for converting formats were changed in Inkscape 0.91, especially the management of units. See here:
http://wiki.inkscape.org/wiki/index.php ... ing_change

I don't have right now a Win 10 machine to check that, but I remember that the export to DXF was working for Win 10.
If you can try to post a sample file. I could test in a Win10 machine later, ... on weekend :? 8-) . Maybe it's a matter of checking/ unchecking some options

Sorry for this late answer geraldo. Hope you found the solution.

- Also, try to give more information about your version system of Inkscape 0.91: If it is 64 bits or 32 bits, and If you installed from the Inkscape.org download site.

- Brynn: ... thanks

Edit: Moini I think you are right, but jenC has a Windows system, not a Linux one. Oh well, I think I'm missing something. Seems that the solution is what you describe. Let's hope that jenC gives feedback.

Greetings...

merry holydays to all!! :)
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

jenC
Posts: 3
Joined: Fri Dec 25, 2015 5:36 am

Re: Export to plt not working in Windows 10

Postby jenC » Fri Dec 25, 2015 4:28 pm

Moini wrote:I think it could be possible to fix this (temporarily, without having to modify the python code) by copying the contents of your file into a new Inkscape file.
(Open new document, copy everything over from the old one to the new one, save under a different file name, use extension in new file).
Would you try it out, jenC?


Ahh, you are correct!!! It worked! It seems, unfortunately, that all svg files I have from this source have the same problem so I'll need to do this for all of them but at least there is a work around so I am happy!
Thank you so much for the help!

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

Re: Export to plt not working in Windows 10

Postby Moini » Sat Dec 26, 2015 12:35 am

:D Happy crafting! (belated Christmas cards? ;) )

The bug has already been fixed by suv, the fix will be available in the next Inkscape version.
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)

jenC
Posts: 3
Joined: Fri Dec 25, 2015 5:36 am

Re: Export to plt not working in Windows 10

Postby jenC » Sat Dec 26, 2015 12:58 am

Actually I'm making a New Years Eve Photo Booth Backdrop :)
Fantastic news!!! I'll look forward to the update!

mtryczak
Posts: 1
Joined: Sun Apr 24, 2016 3:23 pm

Re: Export to plt not working in Windows 10

Postby mtryczak » Sun Apr 24, 2016 3:27 pm

geraldo wrote:Traceback (most recent call last):

File "<string>", line 1, in <module>

File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\__init__.py", line 83, in uniconv_run

from app.io import load

File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\__init__.py", line 69, in <module>

from conf.configurator import Configurator

File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\conf\configurator.py", line 11, in <module>

from app.events import connector

File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\__init__.py", line 124, in <module>

from sk1libs.ft2engine import GetFont

File "C:\Program Files\Inkscape\python\lib\site-packages\sk1libs\ft2engine\__init__.py", line 26, in <module>

import ft2

ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.


Same problem here. Fixed by uninstalling 64-bit Inkscape, and installing 32-bit instead.

If had to take a wild guess, I'd say that the 64-bit msi release for Windows is mistakenly packaged with 32-bit Python libraries.

AxE
Posts: 1
Joined: Sun Oct 16, 2016 10:39 pm

Re: Export to plt not working in Windows 10

Postby AxE » Sun Oct 16, 2016 10:46 pm

Same problem with InkScape 0.91 64bin on Win 10. Fixed by uninstalling 64-bit Inkscape, and installing 32-bit instead.

UniConvertor failed:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\__init__.py", line 83, in uniconv_run from app.io import load
File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\__init__.py", line 69, in <module> from conf.configurator import Configurator
File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\conf\configurator.py", line 11, in <module> from app.events import connector
File "C:\Program Files\Inkscape\python\lib\site-packages\uniconvertor\app\__init__.py", line 124, in <module> from sk1libs.ft2engine import GetFont
File "C:\Program Files\Inkscape\python\lib\site-packages\sk1libs\ft2engine\__init__.py", line 26, in <module> import ft2
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.


Return to “Discuss Software Issues”