Thread subject: sK1 Project :: [SOLVED]LittleCMS can't find python binding

Posted by imet on 17-05-2009 00:32
#1

Hi,
Just found sk1 looking great.
Build and Installation went fine, but launching sk1 gives the error.
What am I missing? I do have lcms v1.18 installed. I'm using Zenwalk 6.0 distro

Edited by imet on 19-05-2009 00:20

Posted by igor on 17-05-2009 21:51
#2

Hi,

Please try checking the following thread from our old forum:

http://sk1project...p;topic=48

Also sometime python-libcms package installation is corrupted. So you can verify the package installation and reinstall if required.

Posted by imet on 18-05-2009 13:42
#3

I'm not exactly sure about python-libcms, it's not packaged for Zenwalk, so I took it from the debian repo and have it installed. It still doesn't work even with the symlink advised from the old forum.
I did try it on Ubuntu 9.04 just to see how it is, it does works but kind of slow.
I'll keep trying to make it work in Zenwalk.
I'm mainly interested if it has support for plotters/vinyl cutters.

thanks.

Posted by GArik on 18-05-2009 17:14
#4

build python-lcms package yourself ;)

python-lcms.SlackBuild: http://paste.org.ru/?ns1t44
slack-desc: http://paste.org.ru/?t38tdj

Posted by igor on 18-05-2009 17:22
#5

imet wrote:
I'm not exactly sure about python-libcms, it's not packaged for Zenwalk, so I took it from the debian repo and have it installed.


The debian package is a main source of similar bugreports. It seems Debian maintainer tried improving the package on own taste but result as usually :) The similar issue was with tk8.5-dev package - these headers are located in Debian in unusual placement. So we have been forced to write workaround specially for Debian/Ubuntu.

For Zenwalk you can try compiling LCMS with python bridge. It's really simple task. This bridge is just 2 files no more.

Posted by imet on 18-05-2009 23:13
#6

@GArik:
thanks for the build script. I actually wanted to made me my own package but I can't find python-libcms, google top hits pertain to cygwin. The slackbuild compiled fine and installed tho, and now I know where to get python-libcms.

@igor:
Thanks for the tip, I now have these installed:
Imaging (Imaging-tk appears to be part of this package)
python-lcms (compiled using slackbuild posted by GArik)
pyreportlab

Unfortunately, it still doesn't work. I got the error on the last part of this:
Code

shared memory images supported
/usr/lib/python2.6/site-packages/sk1/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 "/usr/lib/python2.6/site-packages/sk1/__init__.py", line 19, in <module>
    app.main.main()
  File "/usr/lib/python2.6/site-packages/sk1/app/main.py", line 150, in main
    application = SketchApplication(filename, options.display, options.geometry, run_script = options.run_script)
  File "/usr/lib/python2.6/site-packages/sk1/app/skapp.py", line 156, in __init__
    self.build_window()
  File "/usr/lib/python2.6/site-packages/sk1/app/skapp.py", line 194, in build_window
    self.main_window = sK1MainWindow(self, self.filename, self.run_script)
  File "/usr/lib/python2.6/site-packages/sk1/app/UI/mainwindow.py", line 113, in __init__
    self.build_menu()
  File "/usr/lib/python2.6/site-packages/sk1/app/UI/mainwindow.py", line 919, in build_menu
    self.update_mru_files()
  File "/usr/lib/python2.6/site-packages/sk1/app/UI/mainwindow.py", line 937, in update_mru_files
    self.file_menu.RebuildMenu()
  File "/usr/lib/python2.6/site-packages/sk1/app/UI/tkext.py", line 468, in RebuildMenu
    self.menu.delete(0, END)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 2675, in delete
    self.deletecommand(c)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 358, in deletecommand
    self.tk.deletecommand(name)
TclError: can't delete Tcl command





what else should I check?

Edited by imet on 18-05-2009 23:20

Posted by imet on 19-05-2009 00:19
#7

Hi guys,

I got it working now, I use build 734 from svn and it seems to be running fine.
It looks like a better alternative to inkscape.

thanks.

Posted by stani on 19-05-2009 00:19
#8

I run in the same issue, but it seems to be resolved with the latest "sK1 0.9.1 prerelease snapshot rev.730" release.

Posted by imet on 19-05-2009 12:12
#9

I didn't realized the download page has been updated with sK1 0.9.1. I just went to get it via svn and got svn 734 and it's good.

Posted by kmrs75 on 21-03-2010 23:18
#10

imet wrote:
I'm not exactly sure about python-libcms, it's not packaged for Zenwalk, so I took it from the debian repo and have it installed. It still doesn't work even with the symlink advised from the old forum.
I did try it on Ubuntu 9.04 just to see how it is, it does works but kind of slow.
I'll keep trying to make it work in Zenwalk.
I'm mainly interested if it has support for plotters/vinyl cutters.

thanks.

viyl cutting

go here http://www.securetech-ns.ca/camm-linux.html

Posted by grigorianz on 18-03-2011 09:02
#11

imet wrote:
Hi,
Just found sk1 looking great.
Build and Installation went fine, but launching sk1 gives the error.
What am I missing? I do have lcms v1.18 installed. I'm using Zenwalk 6.0 distro


On Vista it makes error but on win7 it works fine )

Posted by jerry0503222 on 20-09-2011 09:36
#12

I'm not exactly sure about python-libcms, it's not packaged for Zenwalk, so I took it from the debian repo and have it installed. It still doesn't work even with the symlink advised from the old forum.

Edited by jerry0503222 on 20-09-2011 09:36

Posted by igor on 20-09-2011 16:10
#13

well... recent sK1 and UniConvertor versions doesn't depend on python-libcms because we have created own internal module for color management.