Thread subject: sK1 Project :: uniconvertor on debian

Posted by trhodes on 11-06-2010 21:24
#1

I'm trying to convert eps to pdf on debian 5.0.4.

If I install uniconvertor 1.1.2 or 1.1.4 I get the same message. EPS is an unrecognized file type. I installed both as debian packages. 1.1.4 was installed from the unstable debian tree.

When I run the uniconvertor command I get the following:

Code

USAGE: uniconvertor [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




I know it doesn't say eps but your website does.

when I run the command to convert the files I get the following:
Code

 uniconvertor Coke3.eps coke.pdf
Cannot list directory /root/.uniconvertor:[Errno 2] No such file or directory: '/root/.uniconvertor'
ignoring it in font_path
Cannot list directory /root/.uniconvertor:[Errno 2] No such file or directory: '/root/.uniconvertor'
ignoring it in font_path
No plugin-type information in /usr/lib/pymodules/python2.5/uniconvertor/app/plugins/Filters/__init__.py
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/pymodules/python2.5/uniconvertor/__init__.py", line 82, in uniconv
    doc = load.load_drawing(input_file)
  File "/usr/lib/pymodules/python2.5/uniconvertor/app/io/load.py", line 364, in load_drawing
    return load_drawing_from_file(file, filename)
  File "/usr/lib/pymodules/python2.5/uniconvertor/app/io/load.py", line 346, in load_drawing_from_file
    raise SketchLoadError(_("unrecognised file type"))
app.events.skexceptions.SketchLoadError: unrecognised file type





So then I decided to compile the source for 1.1.4 : the gcc error messages are at the bottom

Code
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.5
creating build/lib.linux-i686-2.5/uniconvertor
copying src/__init__.py -> build/lib.linux-i686-2.5/uniconvertor
creating build/lib.linux-i686-2.5/uniconvertor/app
copying src/app/__init__.py -> build/lib.linux-i686-2.5/uniconvertor/app
creating build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/rectangle.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/eps.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/layer.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/dashes.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/document.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/pattern.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/selection.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/pagelayout.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/clone.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/color.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/papersize.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/handle.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/blendgroup.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/selinfo.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/plugobj.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/curveop.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/group.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/base.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/graphics.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/psdevice.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/arrow.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/guide.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/__init__.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/text.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/ellipse.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/gradient.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/properties.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/blend.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/image.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/font.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/bezier.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/maskgroup.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/compound.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
copying src/app/Graphics/external.py -> build/lib.linux-i686-2.5/uniconvertor/app/Graphics
creating build/lib.linux-i686-2.5/uniconvertor/app/Lib
copying src/app/Lib/type1.py -> build/lib.linux-i686-2.5/uniconvertor/app/Lib
copying src/app/Lib/units.py -> build/lib.linux-i686-2.5/uniconvertor/app/Lib
copying src/app/Lib/encoding.py -> build/lib.linux-i686-2.5/uniconvertor/app/Lib
copying src/app/Lib/skcompleter.py -> build/lib.linux-i686-2.5/uniconvertor/app/Lib
copying src/app/Lib/psmisc.py -> build/lib.linux-i686-2.5/uniconvertor/app/Lib
copying src/app/Lib/__init__.py -> build/lib.linux-i686-2.5/uniconvertor/app/Lib
copying src/app/Lib/dscparser.py -> build/lib.linux-i686-2.5/uniconvertor/app/Lib
creating build/lib.linux-i686-2.5/uniconvertor/app/Scripting
copying src/app/Scripting/script.py -> build/lib.linux-i686-2.5/uniconvertor/app/Scripting
copying src/app/Scripting/__init__.py -> build/lib.linux-i686-2.5/uniconvertor/app/Scripting
copying src/app/Scripting/registry.py -> build/lib.linux-i686-2.5/uniconvertor/app/Scripting
copying src/app/Scripting/wrapper.py -> build/lib.linux-i686-2.5/uniconvertor/app/Scripting
creating build/lib.linux-i686-2.5/uniconvertor/app/conf
copying src/app/conf/const.py -> build/lib.linux-i686-2.5/uniconvertor/app/conf
copying src/app/conf/configurator.py -> build/lib.linux-i686-2.5/uniconvertor/app/conf
copying src/app/conf/__init__.py -> build/lib.linux-i686-2.5/uniconvertor/app/conf
creating build/lib.linux-i686-2.5/uniconvertor/app/events
copying src/app/events/connector.py -> build/lib.linux-i686-2.5/uniconvertor/app/events
copying src/app/events/undo.py -> build/lib.linux-i686-2.5/uniconvertor/app/events
copying src/app/events/skexceptions.py -> build/lib.linux-i686-2.5/uniconvertor/app/events
copying src/app/events/undodict.py -> build/lib.linux-i686-2.5/uniconvertor/app/events
copying src/app/events/warn.py -> build/lib.linux-i686-2.5/uniconvertor/app/events
copying src/app/events/__init__.py -> build/lib.linux-i686-2.5/uniconvertor/app/events
creating build/lib.linux-i686-2.5/uniconvertor/app/io
copying src/app/io/loadres.py -> build/lib.linux-i686-2.5/uniconvertor/app/io
copying src/app/io/load.py -> build/lib.linux-i686-2.5/uniconvertor/app/io
copying src/app/io/__init__.py -> build/lib.linux-i686-2.5/uniconvertor/app/io
creating build/lib.linux-i686-2.5/uniconvertor/app/managers
copying src/app/managers/__init__.py -> build/lib.linux-i686-2.5/uniconvertor/app/managers
copying src/app/managers/colormanager.py -> build/lib.linux-i686-2.5/uniconvertor/app/managers
package init file 'src/app/modules/__init__.py' not found (or not a regular file)
creating build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/average_points.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/select_same_line_color.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/spread.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/create_star_outline.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/footprints.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/usersguide.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/abut_vertical.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/reload_image.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/simple_separation.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/__init__.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/inspect_beziers.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/create_spiral.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/abut_horizontal.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/read_gimp_path.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/create_text.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/export_raster.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/create_star.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/save_selection.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/unit.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
copying src/app/scripts/select_same_fill_color.py -> build/lib.linux-i686-2.5/uniconvertor/app/scripts
creating build/lib.linux-i686-2.5/uniconvertor/app/utils
copying src/app/utils/locale_utils.py -> build/lib.linux-i686-2.5/uniconvertor/app/utils
copying src/app/utils/__init__.py -> build/lib.linux-i686-2.5/uniconvertor/app/utils
copying src/GNU_GPL_v2 -> build/lib.linux-i686-2.5/uniconvertor
copying src/GNU_LGPL_v2 -> build/lib.linux-i686-2.5/uniconvertor
copying src/COPYRIGHTS -> build/lib.linux-i686-2.5/uniconvertor
creating build/lib.linux-i686-2.5/uniconvertor/share
creating build/lib.linux-i686-2.5/uniconvertor/share/fonts
copying src/share/fonts/descr.txt -> build/lib.linux-i686-2.5/uniconvertor/share/fonts
creating build/lib.linux-i686-2.5/uniconvertor/share/ps_templates
copying src/share/ps_templates/sketch-proc.ps -> build/lib.linux-i686-2.5/uniconvertor/share/ps_templates
copying src/share/ps_templates/sk1-proc.ps -> build/lib.linux-i686-2.5/uniconvertor/share/ps_templates
copying src/app/VERSION -> build/lib.linux-i686-2.5/uniconvertor/app
creating build/lib.linux-i686-2.5/uniconvertor/app/modules
copying src/app/modules/descr.txt -> build/lib.linux-i686-2.5/uniconvertor/app/modules
package init file 'src/app/modules/__init__.py' not found (or not a regular file)
running build_ext
building 'uniconvertor.app.modules.streamfilter' extension
creating build/temp.linux-i686-2.5
creating build/temp.linux-i686-2.5/src
creating build/temp.linux-i686-2.5/src/modules
creating build/temp.linux-i686-2.5/src/modules/filter
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DMAJOR_VERSION=1 -DMINOR_VERSION=1 -I/usr/include/python2.5 -c src/modules/filter/streamfilter.c -o build/temp.linux-i686-2.5/src/modules/filter/streamfilter.o
src/modules/filter/streamfilter.c:24:20: error: Python.h: No such file or directory
In file included from src/modules/filter/streamfilter.c:26:
src/modules/filter/filterobj.h:31: error: expected declaration specifiers or ‘...’ before ‘*’ token
src/modules/filter/filterobj.h:31: error: expected declaration specifiers or ‘...’ before ‘PyObject’
src/modules/filter/filterobj.h:32: error: expected declaration specifiers or ‘...’ before ‘size_t’
src/modules/filter/filterobj.h:32: warning: type defaults to ‘int’ in declaration of ‘size_t’
src/modules/filter/filterobj.h:32: error: ‘size_t’ declared as function returning a function
src/modules/filter/filterobj.h:32: warning: function declaration isn’t a prototype
src/modules/filter/filterobj.h:33: error: expected declaration specifiers or ‘...’ before ‘PyObject’
src/modules/filter/filterobj.h:34: error: ‘filter_write_proc’ declared as function returning a function
src/modules/filter/filterobj.h:35: error: expected declaration specifiers or ‘...’ before ‘PyObject’
src/modules/filter/filterobj.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/modules/filter/filterobj.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/modules/filter/filterobj.h:55: error: expected ‘)’ before ‘*’ token
src/modules/filter/filterobj.h:56: error: expected ‘)’ before ‘*’ token
src/modules/filter/filterobj.h:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/modules/filter/filterobj.h:60: error: expected ‘)’ before ‘*’ token
src/modules/filter/filterobj.h:63: error: expected ‘)’ before ‘*’ token
src/modules/filter/filterobj.h:64: error: expected ‘)’ before ‘*’ token
src/modules/filter/filterobj.h:67: error: expected ‘)’ before ‘*’ token
src/modules/filter/filterobj.h:75: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
src/modules/filter/filterobj.h:92: warning: return type defaults to ‘int’
src/modules/filter/filterobj.h:92: warning: function declaration isn’t a prototype
src/modules/filter/filterobj.h: In function ‘DL_IMPORT’:
src/modules/filter/filterobj.h:92: error: expected declaration specifiers before ‘FilterType’
src/modules/filter/filterobj.h:118: error: expected ‘)’ before ‘*’ token
src/modules/filter/filterobj.h:119: error: expected ‘;’ before ‘size_t’
src/modules/filter/filterobj.h:130: error: storage class specified for parameter ‘Filter_Functions’
In file included from src/modules/filter/streamfilter.c:27:
src/modules/filter/linefilter.h:29: error: expected declaration specifiers before ‘PyObject’
In file included from src/modules/filter/streamfilter.c:28:
src/modules/filter/subfilefilter.h:28: error: expected declaration specifiers before ‘PyObject’
In file included from src/modules/filter/streamfilter.c:29:
src/modules/filter/base64filter.h:28: error: expected declaration specifiers before ‘PyObject’
src/modules/filter/base64filter.h:29: error: expected declaration specifiers before ‘PyObject’
In file included from src/modules/filter/streamfilter.c:30:
src/modules/filter/stringfilter.h:29: error: expected declaration specifiers before ‘PyObject’
In file included from src/modules/filter/streamfilter.c:31:
src/modules/filter/nullfilter.h:29: error: expected declaration specifiers before ‘PyObject’
src/modules/filter/nullfilter.h:30: error: expected declaration specifiers before ‘PyObject’
In file included from src/modules/filter/streamfilter.c:32:
src/modules/filter/hexfilter.h:28: error: expected declaration specifiers before ‘PyObject’
src/modules/filter/hexfilter.h:29: error: expected declaration specifiers before ‘PyObject’
In file included from src/modules/filter/streamfilter.c:38:
src/modules/filter/binfile.h:28: error: expected declaration specifiers before ‘PyObject’
src/modules/filter/streamfilter.c:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘filter_functions’
src/modules/filter/streamfilter.c:58: error: expected declaration specifiers before ‘;’ token
src/modules/filter/streamfilter.c:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘functions’
src/modules/filter/streamfilter.c:77: error: expected declaration specifiers before ‘;’ token
src/modules/filter/streamfilter.c:80: error: expected declaration specifiers before ‘DL_EXPORT’
src/modules/filter/filterobj.h:130: error: declaration for parameter ‘Filter_Functions’ but no such parameter
src/modules/filter/filterobj.h:98: error: declaration for parameter ‘_Filter_Overflow’ but no such parameter
src/modules/filter/filterobj.h:97: error: declaration for parameter ‘_Filter_Underflow’ but no such parameter
src/modules/filter/streamfilter.c:94: error: expected ‘{’ at end of input
error: command 'gcc' failed with exit status 1





what do I need to do to get uniconvertor on debian to be able to import eps?

Posted by igor on 12-06-2010 21:01
#2

Hi!

To compile UniConvertor you need installing python-dev package which provides required headers. The problem cause in your stacktrace is:

Code
error: Python.h: No such file or directory
In file included from src/modules/filter/streamfilter.c:26:




i.e. python-dev package is not installed.

Please note that for UniConvertor 1.1.4 you need installing python-imaging and python-reportlab packages also.

Edited by igor on 13-06-2010 06:49