Building snap #1906

Closed
g1itch wants to merge 3 commits from snap into v0.6
g1itch commented 2021-12-13 15:11:34 +01:00 (Migrated from github.com)

Hello!

I gonna introduce the snap build. The recipe is already working but the resulting snap has issues, at least with fonts (locales?).

Artifact

Install:

$ snap install pybitmessage_0.6.3_amd64.snap --devmode
Hello! I gonna introduce the snap build. The recipe is already working but the resulting snap has issues, at least with fonts (locales?). [Artifact](https://github.com/g1itch/PyBitmessage/actions/runs/1579789503) Install: ```sh $ snap install pybitmessage_0.6.3_amd64.snap --devmode ```
g1itch commented 2021-12-14 21:39:04 +01:00 (Migrated from github.com)

Now it even runs on both focal and bionic (no fontconfig warnings) but without tray icon and with locale related errors.

Now it even runs on both focal and bionic (no fontconfig warnings) but without tray icon and with locale related errors.
PeterSurda (Migrated from github.com) approved these changes 2021-12-15 07:58:21 +01:00
g1itch commented 2021-12-15 22:06:07 +01:00 (Migrated from github.com)

I think it should ignore such exceptions in certain cases:

2021-12-15 22:58:24,852 - ERROR - Failed to set locale to en_US.UTF-8
Traceback (most recent call last):
  File "/snap/pybitmessage/x1/lib/python2.7/site-packages/pybitmessage/bitmessageqt/__init__.py", line 140, in change_translation
    l10n.setlocale(lang)
  File "/snap/pybitmessage/x1/lib/python2.7/site-packages/pybitmessage/l10n.py", line 91, in setlocale
    locale.setlocale(locale.LC_ALL, newlocale)
  File "/snap/pybitmessage/x1/usr/lib/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting
2021-12-15 22:58:24,854 - ERROR - Failed to set locale to en_US.UTF-8
Traceback (most recent call last):
  File "/snap/pybitmessage/x1/lib/python2.7/site-packages/pybitmessage/bitmessageqt/__init__.py", line 140, in change_translation
    l10n.setlocale(lang)
  File "/snap/pybitmessage/x1/lib/python2.7/site-packages/pybitmessage/l10n.py", line 91, in setlocale
    locale.setlocale(locale.LC_ALL, newlocale)
  File "/snap/pybitmessage/x1/usr/lib/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting
2021-12-15 22:58:24,855 - ERROR - Failed to set locale to en_US.ISO8859-1
Traceback (most recent call last):
  File "/snap/pybitmessage/x1/lib/python2.7/site-packages/pybitmessage/bitmessageqt/__init__.py", line 140, in change_translation
    l10n.setlocale(lang)
  File "/snap/pybitmessage/x1/lib/python2.7/site-packages/pybitmessage/l10n.py", line 91, in setlocale
    locale.setlocale(locale.LC_ALL, newlocale)
  File "/snap/pybitmessage/x1/usr/lib/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting

I see the similar one when change a language in current appimage:

2021-12-15 22:57:31,755 - ERROR - Failed to set locale to ru_RU.UTF-8
Traceback (most recent call last):
  File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/dist-packages/pybitmessage/bitmessageqt/__init__.py", line 140, in change_translation
    l10n.setlocale(lang)
  File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/dist-packages/pybitmessage/l10n.py", line 91, in setlocale
    locale.setlocale(locale.LC_ALL, newlocale)
  File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting
2021-12-15 22:57:31,758 - ERROR - Failed to set locale to ru_RU.UTF-8
Traceback (most recent call last):
  File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/dist-packages/pybitmessage/bitmessageqt/__init__.py", line 140, in change_translation
    l10n.setlocale(lang)
  File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/dist-packages/pybitmessage/l10n.py", line 91, in setlocale
    locale.setlocale(locale.LC_ALL, newlocale)
  File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting
2021-12-15 22:57:31,763 - ERROR - Failed to set locale to ru_RU.UTF-8
Traceback (most recent call last):
  File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/dist-packages/pybitmessage/bitmessageqt/__init__.py", line 140, in change_translation
    l10n.setlocale(lang)
  File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/dist-packages/pybitmessage/l10n.py", line 91, in setlocale
    locale.setlocale(locale.LC_ALL, newlocale)
  File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting

The program keeps running though.

I think it should ignore such exceptions in certain cases: ```python 2021-12-15 22:58:24,852 - ERROR - Failed to set locale to en_US.UTF-8 Traceback (most recent call last): File "/snap/pybitmessage/x1/lib/python2.7/site-packages/pybitmessage/bitmessageqt/__init__.py", line 140, in change_translation l10n.setlocale(lang) File "/snap/pybitmessage/x1/lib/python2.7/site-packages/pybitmessage/l10n.py", line 91, in setlocale locale.setlocale(locale.LC_ALL, newlocale) File "/snap/pybitmessage/x1/usr/lib/python2.7/locale.py", line 581, in setlocale return _setlocale(category, locale) Error: unsupported locale setting 2021-12-15 22:58:24,854 - ERROR - Failed to set locale to en_US.UTF-8 Traceback (most recent call last): File "/snap/pybitmessage/x1/lib/python2.7/site-packages/pybitmessage/bitmessageqt/__init__.py", line 140, in change_translation l10n.setlocale(lang) File "/snap/pybitmessage/x1/lib/python2.7/site-packages/pybitmessage/l10n.py", line 91, in setlocale locale.setlocale(locale.LC_ALL, newlocale) File "/snap/pybitmessage/x1/usr/lib/python2.7/locale.py", line 581, in setlocale return _setlocale(category, locale) Error: unsupported locale setting 2021-12-15 22:58:24,855 - ERROR - Failed to set locale to en_US.ISO8859-1 Traceback (most recent call last): File "/snap/pybitmessage/x1/lib/python2.7/site-packages/pybitmessage/bitmessageqt/__init__.py", line 140, in change_translation l10n.setlocale(lang) File "/snap/pybitmessage/x1/lib/python2.7/site-packages/pybitmessage/l10n.py", line 91, in setlocale locale.setlocale(locale.LC_ALL, newlocale) File "/snap/pybitmessage/x1/usr/lib/python2.7/locale.py", line 581, in setlocale return _setlocale(category, locale) Error: unsupported locale setting ``` I see the similar one when change a language in current appimage: ```python 2021-12-15 22:57:31,755 - ERROR - Failed to set locale to ru_RU.UTF-8 Traceback (most recent call last): File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/dist-packages/pybitmessage/bitmessageqt/__init__.py", line 140, in change_translation l10n.setlocale(lang) File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/dist-packages/pybitmessage/l10n.py", line 91, in setlocale locale.setlocale(locale.LC_ALL, newlocale) File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/locale.py", line 581, in setlocale return _setlocale(category, locale) Error: unsupported locale setting 2021-12-15 22:57:31,758 - ERROR - Failed to set locale to ru_RU.UTF-8 Traceback (most recent call last): File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/dist-packages/pybitmessage/bitmessageqt/__init__.py", line 140, in change_translation l10n.setlocale(lang) File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/dist-packages/pybitmessage/l10n.py", line 91, in setlocale locale.setlocale(locale.LC_ALL, newlocale) File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/locale.py", line 581, in setlocale return _setlocale(category, locale) Error: unsupported locale setting 2021-12-15 22:57:31,763 - ERROR - Failed to set locale to ru_RU.UTF-8 Traceback (most recent call last): File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/dist-packages/pybitmessage/bitmessageqt/__init__.py", line 140, in change_translation l10n.setlocale(lang) File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/dist-packages/pybitmessage/l10n.py", line 91, in setlocale locale.setlocale(locale.LC_ALL, newlocale) File "/tmp/.mount_PyBitmlKj86P/usr/lib/python2.7/locale.py", line 581, in setlocale return _setlocale(category, locale) Error: unsupported locale setting ``` The program keeps running though.
g1itch commented 2021-12-15 22:07:41 +01:00 (Migrated from github.com)
lol, look: https://buildbot.bitmessage.org/#/builders/24/builds/4986
This repo is archived. You cannot comment on pull requests.
No description provided.