sK1 Project :: OpenSource Solutions for Prepress
View Thread
 Print Thread
sk1libs.pycms.createRGBProfile() renamed to cmsCreateRGBProfile()
jzxu
#1 Print Post
Posted on 08-07-2010 21:01
Member

Posts: 1
Joined: 08.07.10

After installing uniconvertor and sk1lib from sources

http://sk1project.org/dc.php?target=uniconvertor-1.1.5.tar.gz
http://sk1project.org/dc.php?target=sk1libs-0.9.1.tar.gz

I get the following error when running /usr/bin/uniconvertor

Traceback:
/usr/bin/uniconvertor:13 in <module>
uniconv_run()
/usr/lib/python2.6/site-packages/uniconvertor/__init__.py:83 in uniconv_run
from app.io import load
/usr/lib/python2.6/site-packages/uniconvertor/app/__init__.py:69 in <module>
from conf.configurator import Configurator
/usr/lib/python2.6/site-packages/uniconvertor/app/conf/configurator.py:11 in <module>
from app.events import connector
/usr/lib/python2.6/site-packages/uniconvertor/app/__init__.py:73 in <module>
colormanager=ColorManager()
/usr/lib/python2.6/site-packages/uniconvertor/app/managers/colormanager.py:27 in __init__
self.refresh_profiles()
/usr/lib/python2.6/site-packages/uniconvertor/app/managers/colormanager.py:56 in refresh_profiles
self.hRGB = cmsCreateRGBProfile()
/usr/lib/python2.6/site-packages/sk1libs/pycms/__init__.py:95 in cmsCreateRGBProfile
result = _pycms.createRGBProfile()
AttributeError: 'module' object has no attribute 'createRGBProfile'

Looking at the module sk1libs.pycms, I noticed that createRGBProfile() has been renamed to cmsCreateRGBProfile().
 
igor
#2 Print Post
Posted on 08-07-2010 23:25
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

Hi!

It seems you confuse two similar named objects:

pycms is a python module (all functions have cms prefix)
_pycms is a C native extension (exported native module methods are without cms prefix)

Your stack trace says:

Download source  Code

/usr/lib/python2.6/site-packages/sk1libs/pycms/__init__.py:95 in cmsCreateRGBProfile
result = _pycms.createRGBProfile()
AttributeError: 'module' object has no attribute 'createRGBProfile'





i.e. Python cannot find createRGBProfile() in native _pycms.so module. But actually such method is exported:

Download source  Code

file _pycms.c in line 433:
{"createRGBProfile", pycms_CreateRGBProfile, METH_VARARGS},





So I can suppose that your compilation result is corrupted. Try recompiling the package. We have compiled it under different platforms successfully.
Regards,

Igor Novikov
sK1 Project
 
Jump to Forum: