sK1 Project :: OpenSource Solutions for Prepress
View Thread
 Print Thread
Import of EPS -> Crash
tobym
#1 Print Post
Posted on 29-06-2009 12:10
Member

Posts: 2
Joined: 29.06.09

Hi,

according to the information page, uniconvertor is able to import EPS
files. But whenever I'm trying to convert an EPS file with uniconvertor (1.1.4)
I get the following error:
Download source  Code

D:\Programme\Octave\bin>d:\Programme\Python-2.6\uniconvertor.cmd junk.eps junk.svg
D:\Programme\Python-2.6\lib\site-packages\uniconvertor\app\utils\locale_utils.py:9:DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.
  from popen2 import popen2
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\Programme\Python-2.6\lib\site-packages\uniconvertor\__init__.py", line 82, in uniconv
    doc = load.load_drawing(input_file)
  File "D:\Programme\Python-2.6\lib\site-packages\uniconvertor\app\io\load.py",line 364, in load_drawing
    return load_drawing_from_file(file, filename)
  File "D:\Programme\Python-2.6\lib\site-packages\uniconvertor\app\io\load.py",line 337, in load_drawing_from_file
    doc = loader.Load()
  File "D:\Programme\Python-2.6\lib\site-packages\uniconvertor\app/plugins/Filters/ailoader.py", line 1105, in Load
    value = self.read_prolog()
  File "D:\Programme\Python-2.6\lib\site-packages\uniconvertor\app/plugins/Filters/ailoader.py", line 1058, in read_prolog
    token, value = next()
SyntaxError: invalid character in hex string





It looks like that it's traing to use the AI import filter. Is this the right one ?
I guess, yes, because I cannot fine a proper EPS loader in the .../uniconvertor/app/plugins/Filters directory.

Are there any severe restrictions regarding EPS import ? (e.g. AI only - but then you souldn't claim EPS import capabilities)

Is there an installtion issue on my end ?
I've tried several different kind of EPS files and couldn't find a single one which worked. (generators like ghostscript, gnuplot, Windows PS printer driver, etc.)

Regards,
Toby
 
igor
#2 Print Post
Posted on 29-06-2009 16:47
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

Hi,

Thank you for reported issue.
It seems it's a platform dependent problem because under UNIX this importer works. We will check and fix this issue for next release.
Regards,

Igor Novikov
sK1 Project
 
max
#3 Print Post
Posted on 30-06-2009 15:59
Administrator

Posts: 63
Joined: 09.05.09

tobym,

You can give the file a test file?
Regards,

Maxim Barabash
sK1 Project
 
malcrouch
#4 Print Post
Posted on 07-08-2009 11:03
Member

Posts: 1
Joined: 07.08.09

Similar issue under W32. EPS stated as supported input. But not listed in "uniconv --help"

UniConvertor 1.1.4

USAGE: uniconv [OPTIONS] [INPUT FILE] [OUTPUT FILE]

Converts one vector graphics format to another using sK1 engine.
sK1 Team (http://sk1project.org), copyright (C) 2007-2009 by Igor E. Novikov

Allowed input formats:
AI - Adobe Illustrator files (postscript based)
CDR - CorelDRAW Graphics files (7-X3,X4 versions)
CDT - CorelDRAW templates files (7-X3,X4 versions)
CCX - Corel Compressed Exchange files
CMX - Corel Presentation Exchange files (CMX1 format)
SVG - Scalable Vector Graphics files
FIG - XFig files
CGM - Computer Graphics Metafile files
AFF - Draw files
WMF - Windows Metafile files
SK - Sketch/Skencil files
SK1 - sK1 vector graphics files
PLT - HPGL for cutting plotter files

Allowed output formats:
AI - Adobe Illustrator files (postscript based)
SVG - Scalable Vector Graphics files
CGM - Computer Graphics Metafile files
WMF - Windows Metafile files
SK - Sketch/Skencil files
SK1 - sK1 vector graphics files
PDF - Portable Document Format
PS - PostScript
PLT - HPGL for cutting plotter files


Executing with EPS input file simply states unrecognized input file format.

C:\Python26\lib\site-packages\uniconvertor\app\utils\locale_utils.py:9: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module. from popen2 import popen2
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Python26\lib\site-packages\uniconvertor\__init__.py", line 82, in uniconv
doc = load.load_drawing(input_file)
File "C:\Python26\lib\site-packages\uniconvertor\app\io\load.py", line 364, in load_drawing
return load_drawing_from_file(file, filename)
File "C:\Python26\lib\site-packages\uniconvertor\app\io\load.py", line 346, in load_drawing_from_file
raise SketchLoadError(_("unrecognised file type"Wink)
app.events.skexceptions.SketchLoadError: unrecognised file type


Also in the install instructions on your download page. You need to also ensure <python-dir> is in your PATH.
 
max
#5 Print Post
Posted on 07-08-2009 11:54
Administrator

Posts: 63
Joined: 09.05.09

Hi malcrouch.
The file is unrecognized, by the most probable reason, EPS file header hex C5D0D3C6

EPS File Header hex C5D0D3C6 is not yet supported.

Regards,

Maxim Barabash
sK1 Project
 
max
#6 Print Post
Posted on 27-09-2009 07:43
Administrator

Posts: 63
Joined: 09.05.09

sK1 rev. 868. EPS Binary File Header support.
Will be in the next release Uniconvertor.
Regards,

Maxim Barabash
sK1 Project
 
jasongetsdown
#7 Print Post
Posted on 08-09-2010 17:12
Member

Posts: 1
Joined: 08.09.10

Is this still an issue?
I'm using UniConvertor 1.1.5 on Windows XP and I get a popup with "An error occured: Parsing error: invalid character in hex string" when I try to convert an eps.
 
igor
#8 Print Post
Posted on 10-09-2010 10:52
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

Hi!

Can you providing a sample file to reproduce this issue?
Regards,

Igor Novikov
sK1 Project
 
tobym
#9 Print Post
Posted on 17-09-2010 09:25
Member

Posts: 2
Joined: 29.06.09

Here's an example which gives you the reported error ...
tobym attached the following file:
example.zip
 
gerry
#10 Print Post
Posted on 02-03-2012 08:28
Member

Posts: 1
Joined: 02.03.12

Hi I'm getting the same error:
Download source  Code
/usr/bin/uniconvertor googlePlus.eps googlePlus.svg 
Traceback (most recent call last):
  File "/usr/bin/uniconvertor", line 13, in <module>
    uniconv_run()
  File "/usr/lib/python2.6/dist-packages/uniconvertor/__init__.py", line 95, in uniconv_run
    doc = load.load_drawing(input_file)
  File "/usr/lib/python2.6/dist-packages/uniconvertor/app/io/load.py", line 377, in load_drawing
    return load_drawing_from_file(file, filename)
  File "/usr/lib/python2.6/dist-packages/uniconvertor/app/io/load.py", line 354, in load_drawing_from_file
    raise SketchLoadError(_("Parsing error: ")+ str(value))
app.events.skexceptions.SketchLoadError: Parsing error: invalid character in hex string




I was trying to convert the icons here and getting that error: http://icondock.com/free/vector-social-media-icons

I've attached the icon belonging to the error I pasted above. I'm using Ubuntu Linux and UniConvertor 1.1.5
gerry attached the following file:
googleplus.zip
 
Jump to Forum: