Bug 35653

Summary: Бэкпорт новой версии
Product: Branch p8 Reporter: Evgeniy Korneechev <ekorneechev>
Component: python3-module-keyringAssignee: Andrey Cherepanov <cas>
Status: CLOSED FIXED QA Contact: qa-p8 <qa-p8>
Severity: normal    
Priority: P3 CC: grenka
Version: не указанаKeywords: backport
Hardware: all   
OS: Linux   
Bug Depends on: 35655    
Bug Blocks: 35608    

Description Evgeniy Korneechev 2018-11-26 09:54:02 MSK
Имеющаяся с ходу не работает (после создания папки - все ОК):

$ python3
Python 3.5.4 (default, May 31 2018, 07:40:02) 
[GCC 5.3.1 20151207 (ALT Linux 5.3.1-alt3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import keyring
/usr/lib/python3/site-packages/keyring/backends/Gnome.py:6: PyGIWarning: GnomeKeyring was imported without specifying a version first. Use gi.require_version('GnomeKeyring', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GnomeKeyring
>>> keyring.get_password("test","test")
Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/keyring/backends/pyfs.py", line 100, in _open
    writeable=writeable)
  File "/usr/lib/python3/site-packages/fs/opener.py", line 236, in parse
    fs, fs_path = opener.get_fs(self, fs_name, fs_name_params, fs_url, writeable, create_dir)
  File "/usr/lib/python3/site-packages/fs/opener.py", line 350, in get_fs
    osfs = OSFS(dirname)
  File "/usr/lib/python3/site-packages/fs/osfs/__init__.py", line 136, in __init__
    raise ResourceNotFoundError(root_path, msg="Root directory does not exist: %(path)s")
fs.errors.ResourceNotFoundError: Root directory does not exist: b'/home/user/.local/share/python_keyring'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/site-packages/keyring/core.py", line 38, in get_password
    return _keyring_backend.get_password(service_name, username)
  File "/usr/lib/python3/site-packages/keyring/backends/pyfs.py", line 176, in get_password
    password_base64 = self.config.get(service, username).encode()
  File "/usr/lib/python3/site-packages/keyring/backends/pyfs.py", line 161, in config
    f = self._open()
  File "/usr/lib/python3/site-packages/keyring/backends/pyfs.py", line 136, in _open
    pyfs = fs.osfs.OSFS(url2_path)
  File "/usr/lib/python3/site-packages/fs/osfs/__init__.py", line 136, in __init__
    raise ResourceNotFoundError(root_path, msg="Root directory does not exist: %(path)s")
fs.errors.ResourceNotFoundError: Root directory does not exist: b'/home/user/.local/share/python_keyring'

Ну и новая версия работает не со своим хранилищем, а с системным, поэтому проблем нет.
Comment 1 Evgeniy Korneechev 2018-12-06 17:08:33 MSK
apt-get install \
http://git.altlinux.org/tasks/archive/done/_212/217396/build/100/x86_64/rpms/python3-module-keyring-12.0.0-alt2.noarch.rpm \
http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/files/noarch/RPMS/python3-module-entrypoints-0.2.3-alt1.noarch.rpm \
http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/files/noarch/RPMS/python3-module-secretstorage-2.3.1-alt2.noarch.rpm

после этого на p8 минимальный функционал модуля работает.
python3-module-secretstorage и python3-module-entrypoints также нужно бэкпортировать. Попробовал отправить в task#217422
Comment 2 Grigory Ustinov 2020-02-17 19:07:33 MSK
[#217422] p8 DONE (try 6)