Thread subject: sK1 Project :: Fails on Ubuntu 12.04

Posted by timrichardson on 01-06-2012 04:16
#1

Hi. This may be a packaging error but the experts are here.
This happens to me on Ubuntu and Kubuntu 12.04 in 32 and 64 bit installs:

1) Open inkscape, create doc
2) Save as drawing-1.sk1 (sk1 vector graphics files (.sk1)
This is what happens:

UniConvertor failed:

Cannot load plugin module sk1saver
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/plugins.py", line 73, in load_module
desc)
File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/sk1saver.py", line 249, in <module>
from app.Graphics.image import CMYK_IMAGE
ImportError: cannot import name CMYK_IMAGE
When importing plugin sk1saver
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/plugins.py", line 190, in __call__
module = self.load_module()
File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/plugins.py", line 73, in load_module
desc)
File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/sk1saver.py", line 249, in <module>
from app.Graphics.image import CMYK_IMAGE
ImportError: cannot import name CMYK_IMAGE
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/uniconvertor/__init__.py", line 88, in uniconv
saver(doc, output_file)
File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/plugins.py", line 194, in __call__
% {'name':self.module_name})
app.events.skexceptions.SketchError: Cannot load filter sk1saver

Posted by timrichardson on 01-06-2012 05:07
#2

Yeah, something is wrong with the packaging I think.
Here's how I fixed it.

1) With a package manager (Synaptic) install python-dev liblcms1-dev liblcms2-dev

I also suggest
sudo apt-get build-dep python-uniconvertor


2) download the tar files and extract them each to their own directory. There are three downloads available, but you needs only these two:
a) sk1libs-0.9.1
b) uniconvertor-1.1.5

3) read the very short and clear readme
run sudo python setup.py install
in each of those folders in the order above

This builds and installs the packages.

The download page also includes binary packages for Ubuntu 10.04. But they are for Python 2.6 so they are not very convenient for Ubuntu 12.04 which has python 2.7 as default.

Edited by timrichardson on 06-06-2012 02:25