Bug 33985 - Не запускается
Summary: Не запускается
Status: CLOSED FIXED
Alias: None
Product: Branch p8
Classification: Distributions
Component: token-manager (show other bugs)
Version: не указана
Hardware: all Linux
: P3 normal
Assignee: Andrey Cherepanov
QA Contact: qa-p8@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-09 08:27 MSK by Anton Shevtsov
Modified: 2019-07-18 09:18 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Shevtsov 2017-10-09 08:27:06 MSK
Платформа 8.2, с последними, сегодняшними апдейтами.

[user@citto-osa-04l ~]$ python /usr/bin/token-manager.py
Traceback (most recent call last):
  File "/usr/bin/token-manager.py", line 1114, in <module>
    main()
  File "/usr/bin/token-manager.py", line 1102, in main
    QtGui.QMessageBox().warning(QtGui.QMessageBox(), u"Cообщение", u"Произошла ошибка:\n%s" % error)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 10: ordinal not in range(128)

Добавление пары строк

reload(sys)
sys.setdefaultencoding('utf-8')

в начало скрипта, запускает token-manager с мессадж-боксом 

Произошла ошибка:
[Errno 2] Нет такого файла или каталога

[user@citto-osa-04l ~]$ rpm -qa | grep python           
python-module-numpy-testing-1.12.1-alt0.M80P.1
python-modules-unittest-2.7.11-alt3
python-modules-xml-2.7.11-alt3
python-module-six-1.10.0-alt7
python-module-jinja2-tests-2.9-alt1.dev.git20150726.1.1.1
python3-module-clyde-0.8.0-alt1.git20141130.1.1
python3-module-yieldfrom.urllib3-0.1.2-alt4.git20141229
python-module-pygobject-2.28.6-alt4
python-module-PyQt4-4.12.1-alt2.M80P.1
python3-module-sugarbowl-0.52.1-alt1.git20141130.1
python-module-yaml-3.11-alt1.hg20141128.1
python3-module-pycairo-1.13.3-alt0.M80P.1
python-modules-email-2.7.11-alt3
python-modules-multiprocessing-2.7.11-alt3
python-module-genshi-0.7-alt1.1.1.1
python-module-pygtk-2.24.0-alt6
python3-module-chardet-3.0.4-alt1
python3-module-cups-1.9.73-alt1.1
python-module-pycrypto-2.7-alt3.a1.git20140620.1
python-modules-encodings-2.7.11-alt3
libpython-2.7.11-alt3
python-module-pycparser-2.14-alt1.1
python-module-numpy-1.12.1-alt0.M80P.1
python-module-jinja2-2.9-alt1.dev.git20150726.1.1.1
python3-module-jinja2-2.9-alt1.dev.git20150726.1.1.1
python3-module-yieldfrom.http.client-0.1.2-alt2.git20150311
python-strict-2.7.11-alt3
python-module-html5lib-0.999999-alt1.1.1.1
python3-base-3.5.1-alt7
python-modules-curses-2.7.11-alt3
python3-module-pytest-3.2.1-alt0.M80P.1
python-modules-ctypes-2.7.11-alt3
python-modules-hotshot-2.7.11-alt3
kde5-kross-python-17.04.3-alt1.M80P.1
python3-3.5.1-alt7
python-module-rpm-4.0.4_2.7-alt101.M80P.1
python3-module-dbus-1.2.4-alt1
python-module-ecdsa-0.13-alt1.1
python3-module-jinja2-tests-2.9-alt1.dev.git20150726.1.1.1
python-module-sip-4.19.3-alt0.M80P.1
python-modules-bsddb-2.7.11-alt3
python-module-pycairo-1.13.3-alt0.M80P.1
python-module-packaging-15.4-alt2.dev0.git20150801.1
python3-module-smbc-1.0.15.3-alt1.1
python3-module-setuptools-18.5-alt0.M80P.1
python3-module-cupshelpers-1.5.9-alt0.M80P.1
python-modules-2.7.11-alt3
python-modules-logging-2.7.11-alt3
python-module-dbus-1.2.4-alt1
python-dev-2.7.11-alt3
rpm-build-python-0.36.8-alt1
python-module-paramiko-1.16.0-alt2.1.1.1
python3-module-py-1.4.34-alt0.M80P.1
python3-module-yieldfrom-0.1.2-alt4.git20141229
python-module-Reportlab-3.0-alt1.1.1
libpython3-3.5.1-alt7
python-module-enum34-1.0.4-alt1.1.1
python3-module-markupsafe-0.23-alt1.2.1
python-base-2.7.11-alt3
python-module-Pillow-3.0.0-alt2.dev0.git20150806
python-module-PyQt5-5.9-alt0.M80P.1
python3-module-runfile-0.46.1-alt1.git20141130.1
python3-module-yieldfrom.requests-0.1.1-alt1.git20141019.1
python-module-pygobject3-3.24.1-alt1.M80P.1
python-module-cssselect-0.9.1-alt1.1
python-modules-compiler-2.7.11-alt3
python3-module-yieldfrom.http-0.1.2-alt2.git20150311
python-module-lxml-4.0.0-alt0.M80P.1
python-2.7.11-alt3
python3-module-pygobject3-3.24.1-alt1.M80P.1
python-module-markupsafe-0.23-alt1.2.1
rpm-build-python3-0.1.10.10-alt1
python-module-cffi-1.10.0-alt0.M80P.1

[user@citto-osa-04l ~]$ /opt/cprocsp/sbin/amd64/cpconfig -license -view
License validity:
4040E-G0037-EK8R3-C6K4U-HCXQG
Expires: 3 month(s) 3 day(s)
License type: Server.
Comment 1 Evgeniy Korneechev 2019-07-18 09:18:27 MSK
$ rpm -q token-manager
token-manager-0.12-alt4.git51687e2

Сейчас все ОК.