Bug #1002
cl-core-variables-show IndexError:list index out of
| Status: | Resolved | Start: | 07/11/2017 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Calculate Utilities | Spent time: | - | |
| Target version: | - | |||
| Votes: | 0 |
Description
sudo cl-core-variables-show
Пароль:
* Список переменных
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/calculate/core/server/func.py", line 690, in run
res = method(*args)
File "/usr/lib64/python2.7/site-packages/calculate/core/set_vars.py", line 109, in showVariables
self.printTable(_("List of variables"), head, body)
File "/usr/lib64/python2.7/site-packages/calculate/core/result_viewer.py", line 691, in printTable
self.task_state.printTable(table_name, head, body)
File "/usr/lib64/python2.7/site-packages/calculate/core/result_viewer.py", line 337, in printTable
self.parent.printer(printTable(body, head))
File "/usr/lib64/python2.7/site-packages/calculate/core/result_viewer.py", line 80, in printTable
return Table(None, header, data, colSpan=0).printTable()
File "/usr/lib64/python2.7/site-packages/calculate/core/result_viewer.py", line 66, in __init__
tableReport.__init__(self, *args, **kwargs)
File "/usr/lib64/python2.7/site-packages/calculate/lib/utils/text.py", line 127, in __init__
dataList)
File "/usr/lib64/python2.7/site-packages/calculate/lib/utils/text.py", line 126, in <lambda>
map(lambda y: y or "", x)),
File "/usr/lib64/python2.7/site-packages/calculate/lib/utils/text.py", line 125, in <lambda>
self.dataList = map(lambda x: map(lambda y: str(y).expandtabs(),
File "/usr/lib64/python2.7/site-packages/calculate/core/variables/variable.py", line 188, in __str__
return self()
File "/usr/lib64/python2.7/site-packages/calculate/core/variables/variable.py", line 183, in __call__
var_val = self.dv.Get(self.var)
File "/usr/lib64/python2.7/site-packages/calculate/lib/datavars.py", line 1434, in Get
var = self.__Get(varname, humanreadable)
File "/usr/lib64/python2.7/site-packages/calculate/lib/datavars.py", line 1494, in __Get
res = varObj._get()
File "/usr/lib64/python2.7/site-packages/calculate/lib/datavars.py", line 412, in _get
value = self.get()
File "/usr/lib64/python2.7/site-packages/calculate/core/variables/request.py", line 160, in get
if line.split()[0] == str(req_id):
IndexError: list index out of range
* IndexError:list index out of range(calculate.core.variables.request:160)
Если не от рута запустить, то выдаёт:
IndexError:list index out of range(calculate.core.variables.request:160)
calculate-utils-3.5.5.9 USE="backup console desktop install qt4"
History
Updated by Фёдор Ратиев over 8 years ago
Дело было в кривом сертификате. Установил ночную сборку. Почему-то сертификат криво сгенерировался.
Решилось так:
/etc/init.d/calculate-core stop rm -r /var/calculate/server rm -r /home/user/.calculate/client_cert cl-core -b cl-core -u user /etc/init.d/calculate-core start
Updated by Mikhail Hiretsky over 8 years ago
Проблема отображения переменных будет исправлена в calculate-utils-3.5.5.11.
Updated by Mikhail Hiretsky over 8 years ago
- Status changed from New to Resolved