sK1 Project :: OpenSource Solutions for Prepress
View Thread
 Print Thread
Error opening .PLT files in Inkscape
v_2e
#1 Print Post
Posted on 01-06-2011 10:04
Member

Posts: 6
Joined: 01.06.11

Hello!
I'm trying to open some .PLT files with Inkscape via Uniconvertor, but I get the following error:
Download source  Code

UniConvertor failed:

Traceback (most recent call last):
  File "/usr/bin/uniconvertor", line 13, in <module>
    uniconv_run()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/__init__.py", line 95, in uniconv_run
    doc = load.load_drawing(input_file)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/io/load.py", line 377, in load_drawing
    return load_drawing_from_file(file, filename)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/io/load.py", line 359, in load_drawing_from_file
    raise SketchLoadError(_("unrecognised file type"))
app.events.skexceptions.SketchLoadError: unrecognised file type




I must note that I still can open some of my .PLT files in such a way, but not all of them.

What a reason can be for such behaviour and what can you suggest me to try?
Thanks.
 
max
#2 Print Post
Posted on 01-06-2011 13:19
Administrator

Posts: 63
Joined: 09.05.09

Most likely the file contains a binary header.
It can be removed at any TEXT editor.
plt-file must begin with Command

IN;


Regards,

Maxim Barabash
sK1 Project
 
v_2e
#3 Print Post
Posted on 03-06-2011 13:55
Member

Posts: 6
Joined: 01.06.11

Hello!
I checked out all my .PLT files and it turned out that only one of them has a "IN;" command at the very beginning. But what about the rest? Maybe they are not supposed to have the ".PLT" extension at all, if it is a different type of file?
 
max
#4 Print Post
Posted on 03-06-2011 15:44
Administrator

Posts: 63
Joined: 09.05.09

Please attach a sample plt files.
Regards,

Maxim Barabash
sK1 Project
 
v_2e
#5 Print Post
Posted on 04-06-2011 03:30
Member

Posts: 6
Joined: 01.06.11

This is a working sample from the 'hp2xx' package.
v_2e attached the following file:
fwedges.tar
Edited by v_2e on 04-06-2011 03:46
 
max
#6 Print Post
Posted on 05-06-2011 14:21
Administrator

Posts: 63
Joined: 09.05.09

For your file is more suitable .hgl extension.

Regards,

Maxim Barabash
sK1 Project
 
v_2e
#7 Print Post
Posted on 07-06-2011 05:41
Member

Posts: 6
Joined: 01.06.11

This is rather strange, because like I've mentioned above, this is a file from the "hp2xx" package. It comes as a testing sample among other files and has a name "fwedges.plt". In fact, the 'hp2xx' program itself works fine with this file. The problem is that I have a bunch of third-party .PLT files which I cannot open with 'hp2xx' nor with Inkscape via Uniconvertor. Should I post here one of them?
In any case, if you are right and this file should have a type '.hgl', is it supported by Uniconvertor and what software can you suggest me to use if it isn't?

Thanks.
 
max
#8 Print Post
Posted on 07-06-2011 07:21
Administrator

Posts: 63
Joined: 09.05.09

import / export filter in uniconvertor designed to work with cutting plotters. Which support a limited set of commands hpgl.

Attach the problematic files, I'll try to help you. Can be in the e-mail.
Regards,

Maxim Barabash
sK1 Project
Edited by max on 07-06-2011 07:26
 
v_2e
#9 Print Post
Posted on 13-06-2011 08:10
Member

Posts: 6
Joined: 01.06.11

Hello!
max wrote:
Attach the problematic files, I'll try to help you. Can be in the e-mail.

Here is one more of such files attached.
Unfortunately, I don't know your e-mail, so I can only attach one file here.

In any case thanks for help! Smile
 
v_2e
#10 Print Post
Posted on 13-06-2011 08:14
Member

Posts: 6
Joined: 01.06.11

Hello!
max wrote:
Attach the problematic files, I'll try to help you. Can be in the e-mail.

Here is one more of such files attached.
Unfortunately, I don't know your e-mail, so I can only attach an uncompressed tar archive here.

In any case thanks for help! Smile
v_2e attached the following file:
spao.tar
 
max
#11 Print Post
Posted on 25-06-2011 08:07
Administrator

Posts: 63
Joined: 09.05.09

Probably represented by the files in binary format.
Which is not supported.
I just have not found it on specification.

Regards,

Maxim Barabash
sK1 Project
 
susi8888
#12 Print Post
Posted on 21-11-2011 14:21
Member

Posts: 1
Joined: 21.11.11

Hello,
have the same issue as the thread starter,
found a bunch of "MG" commands (=message) preceeding the "IN" statement. After deleting the "MG" commands, it seems to work fine. Can you maybe change the parser in such a way, the the "MG" commands are genereally ignored? Or even better: Ignore and report unsupportet commands, this would be great!

Anyway, thanks for the great piesce of Software!
 
igor
#13 Print Post
Posted on 21-11-2011 22:35
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

Hi,

We are going to reimplement PLT parser in UniConvertor 2.0 so I think this issue will be resolved.

Regards,

Igor Novikov
sK1 Project
 
natsuto
#14 Print Post
Posted on 29-02-2012 01:09
Member

Posts: 1
Joined: 28.02.12

After deleting the "MG" command, it seems to work fine.
 
http://manganimeweb.jimdo.com
chaudharyparesh
#15 Print Post
Posted on 26-04-2012 03:25
Member

Posts: 2
Joined: 04.04.12

i am using Uniconvertor with Inkscape in Linux platform. I have read this post and download all PLTfile from #10 number reply. but Uniconvertor can't open those files in Inkscape .
Error Message Like ::

UniConvertor failed:

Traceback (most recent call last):
File "/usr/local/bin/uniconvertor", line 13, in <module>
uniconv_run()
File "/usr/local/lib/python2.6/dist-packages/uniconvertor/__init__.py", line 95, in uniconv_run
doc = load.load_drawing(input_file)
File "/usr/local/lib/python2.6/dist-packages/uniconvertor/app/io/load.py", line 377, in load_drawing
return load_drawing_from_file(file, filename)
File "/usr/local/lib/python2.6/dist-packages/uniconvertor/app/io/load.py", line 359, in load_drawing_from_file
raise SketchLoadError(_("unrecognised file type"Wink)
app.events.skexceptions.SketchLoadError: unrecognised file type

Let me know solution...!!
 
Jump to Forum: