sK1 Project :: OpenSource Solutions for Prepress
View Thread
 Print Thread
Failed to run on Slackware 12.2
Rurik
#1 Print Post
Posted on 12-11-2010 14:19
Member

Posts: 3
Joined: 12.11.10

sK1 was installed from source in the correct order (sk1libs -> sk1sdk -> sk1) by simply invocing ./setup.py install command. Nothing else was touched. Please find an error message below:

Download source  Code
~ sk1
Traceback (most recent call last):
  File "/usr/bin/sk1", line 23, in <module>
    sk1_run()
  File "/usr/lib/python2.5/site-packages/sk1/__init__.py", line 19, in sk1_run
    os.environ['LANG'] = lang[0] + lang[1].upper()
IndexError: list index out of range




Any idea what does it mean?

Thanks,
 
max
#2 Print Post
Posted on 12-11-2010 14:59
Administrator

Posts: 63
Joined: 09.05.09

Which locale do you use? Console command locale.
Regards,

Maxim Barabash
sK1 Project
Edited by max on 12-11-2010 16:52
 
Rurik
#3 Print Post
Posted on 12-11-2010 22:11
Member

Posts: 3
Joined: 12.11.10

Here is an result of locale command i get.

Download source  Code
~ locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE=C
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=




Regards,
 
max
#4 Print Post
Posted on 12-11-2010 22:25
Administrator

Posts: 63
Joined: 09.05.09

Try this command

LC_ALL=C sk1
Regards,

Maxim Barabash
sK1 Project
 
igor
#5 Print Post
Posted on 13-11-2010 00:08
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

Rurik wrote:
sK1 was installed from source in the correct order (sk1libs -> sk1sdk -> sk1) by simply invocing ./setup.py install command. Nothing else was touched. Please find an error message below:

Download source  Code
~ sk1
Traceback (most recent call last):
  File "/usr/bin/sk1", line 23, in <module>
    sk1_run()
  File "/usr/lib/python2.5/site-packages/sk1/__init__.py", line 19, in sk1_run
    os.environ['LANG'] = lang[0] + lang[1].upper()
IndexError: list index out of range




Any idea what does it mean?

Thanks,



Hi!

Thank you for reported issue. The problem is caused by workaround for Ubuntu. The simplest way is disabling the following code in src/__init__.py:

Download source  Code

def sk1_run():
   global LANG
   import sys, os, warnings
   
#   if not os.environ['LANG'] == '':
#      lang = os.environ['LANG'].split('.')
#      LANG = os.environ['LANG']
#      os.environ['LANG'] = lang[0] + lang[1].upper()

      
   warnings.filterwarnings("ignore")
   
   _pkgdir = __path__[0]
   sys.path.insert(1, _pkgdir)
   
   import app
   app.config.sk_command = sys.argv[0]
   app.main.main()





We will improve this implementation in release version to avoid such clashes.
Regards,

Igor Novikov
sK1 Project
Edited by igor on 13-11-2010 00:09
 
Rurik
#6 Print Post
Posted on 13-11-2010 02:17
Member

Posts: 3
Joined: 12.11.10

I have comment out these 4 lines of code, and did a reinstall of the sk1 package. It looks it works fine now.

Thank you Igor!
 
Jump to Forum: