Thread subject: sK1 Project :: Problems with pycms on mac

Posted by iVanSh on 01-11-2011 19:44

Hello! After a long-long dancing and googling I'v got sk1libs installed on my Mac (10.6.5 Snow Leo), then it was easy to install uniconvertor. But it doesnt work! The error is:
uniconvertor file.cdr file.svg
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/Current/bin/uniconvertor", line 13, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/uniconvertor/", line 83, in uniconv_run
    from import load
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/uniconvertor/app/", line 69, in <module>
    from conf.configurator import Configurator
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/uniconvertor/app/conf/", line 11, in <module>
    from import connector
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/uniconvertor/app/", line 72, in <module>
    from managers.colormanager import ColorManager
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/uniconvertor/app/managers/", line 9, in <module>
    from sk1libs.pycms import cmsOpenProfileFromFile,cmsCreateTransform,cmsDoTransform, \
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/sk1libs/pycms/", line 22, in <module>
    import _pycms, os, types
ImportError: dynamic module does not define init function (init_pycms)

Posted by igor on 01-11-2011 23:08


It's a really strange message because init function is defined in _pycms.c :


    Py_InitModule("_pycms", pycms_methods);

I think the problem cause is rather incomplete/incorrect build.

Posted by iVanSh on 02-11-2011 03:36

Thanks for quick answer, Igor.
I recompiled sk1libs with these options:
CFLAGS="-I/opt/local/include -I/opt/local/include/freetype2" LDFLAGS="-L/opt/local/lib" python build

And used Python 2.6 instead of 2.5 - now it works!
Thanks for your app!

Edited by iVanSh on 02-11-2011 04:12