Grammalecte  View Ticket

2020-01-02
09:26 Closed ticket [86f306e05f]: Le formateur de texte est cassé avec Python 3.8 plus 4 other changes artifact: 354d5b2e27 user: olr
2019-12-02
10:20 Ticket [86f306e05f]: 4 changes artifact: edb9e9171a user: fredb
2019-12-01
20:14 Ticket [86f306e05f]: 6 changes artifact: 3a3d93cc42 user: fredb
2019-11-27
15:56 New ticket [86f306e05f]. artifact: 5dada253c0 user: fredb

UUID: 86f306e05f8f3320a08e51322f05fd118ce54ee7
Title/Titre: Le formateur de texte est cassé avec Python 3.8
Status: Closed Type: Incident
Severity/Gravité: Critical Priority/Priorité: Immediate
Module: LibreOffice Resolution: Fixed
Modified/Modifié: 2020-01-02 09:26:56
Version(s): 1.6.0
Comments / Commentaires :
fredb // 2019-11-27 15:56:19 :
Bonjour.

J'utilise LibreOffice 6.3.3 avec Archlinux et python 3.8.

J'ai remarqué qu'avec le dernier grammalecte en date, impossible d'avoir le formateur de texte fonctionnel. Sûrement un bug lié à python 3.8.

fredb // 2019-12-01 20:14:08 :
Voici un extrait du .xsession-errors en relation avec mes tentatives d'utilisation de la console de grammalecte :

Warning: failed to read path from javaldx
Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 19, in startConsole
    from apso_utils import console
  File "/usr/lib/libreoffice/program/uno.py", line 440, in _uno_import
    raise uno_import_exc
  File "/usr/lib/libreoffice/program/uno.py", line 362, in _uno_import
    return _builtin_import(name, *optargs, **kwargs)
ImportError: No module named 'apso_utils' (or 'apso_utils.console' is unknown)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 27, in startConsole
    subprocess.Popen(spPyInstallion + os.sep + "python")  # Start Python interactive Shell
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/usr/lib/libreoffice/program/../program/python'
Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 19, in startConsole
    from apso_utils import console
  File "/usr/lib/libreoffice/program/uno.py", line 440, in _uno_import
    raise uno_import_exc
  File "/usr/lib/libreoffice/program/uno.py", line 362, in _uno_import
    return _builtin_import(name, *optargs, **kwargs)
ImportError: No module named 'apso_utils' (or 'apso_utils.console' is unknown)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 27, in startConsole
    subprocess.Popen(spPyInstallion + os.sep + "python")  # Start Python interactive Shell
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/usr/lib/libreoffice/program/../program/python'
Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 19, in startConsole
    from apso_utils import console
  File "/usr/lib/libreoffice/program/uno.py", line 440, in _uno_import
    raise uno_import_exc
  File "/usr/lib/libreoffice/program/uno.py", line 362, in _uno_import
    return _builtin_import(name, *optargs, **kwargs)
ImportError: No module named 'apso_utils' (or 'apso_utils.console' is unknown)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 27, in startConsole
    subprocess.Popen(spPyInstallion + os.sep + "python")  # Start Python interactive Shell
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/usr/lib/libreoffice/program/../program/python'
Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 19, in startConsole
    from apso_utils import console
  File "/usr/lib/libreoffice/program/uno.py", line 440, in _uno_import
    raise uno_import_exc
  File "/usr/lib/libreoffice/program/uno.py", line 362, in _uno_import
    return _builtin_import(name, *optargs, **kwargs)
ImportError: No module named 'apso_utils' (or 'apso_utils.console' is unknown)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 27, in startConsole
    subprocess.Popen(spPyInstallion + os.sep + "python")  # Start Python interactive Shell
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/usr/lib/libreoffice/program/../program/python'
Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 19, in startConsole
    from apso_utils import console
  File "/usr/lib/libreoffice/program/uno.py", line 440, in _uno_import
    raise uno_import_exc
  File "/usr/lib/libreoffice/program/uno.py", line 362, in _uno_import
    return _builtin_import(name, *optargs, **kwargs)
ImportError: No module named 'apso_utils' (or 'apso_utils.console' is unknown)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 27, in startConsole
    subprocess.Popen(spPyInstallion + os.sep + "python")  # Start Python interactive Shell
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/usr/lib/libreoffice/program/../program/python'
Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 19, in startConsole
    from apso_utils import console
  File "/usr/lib/libreoffice/program/uno.py", line 440, in _uno_import
    raise uno_import_exc
  File "/usr/lib/libreoffice/program/uno.py", line 362, in _uno_import
    return _builtin_import(name, *optargs, **kwargs)
ImportError: No module named 'apso_utils' (or 'apso_utils.console' is unknown)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 27, in startConsole
    subprocess.Popen(spPyInstallion + os.sep + "python")  # Start Python interactive Shell
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/usr/lib/libreoffice/program/../program/python'
Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 19, in startConsole
    from apso_utils import console
  File "/usr/lib/libreoffice/program/uno.py", line 440, in _uno_import
    raise uno_import_exc
  File "/usr/lib/libreoffice/program/uno.py", line 362, in _uno_import
    return _builtin_import(name, *optargs, **kwargs)
ImportError: No module named 'apso_utils' (or 'apso_utils.console' is unknown)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 27, in startConsole
    subprocess.Popen(spPyInstallion + os.sep + "python")  # Start Python interactive Shell
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/usr/lib/libreoffice/program/../program/python'
Traceback (most recent call last):
  File "/usr/lib/libreoffice/share/extensions/grammalecte/pythonpath/helpers.py", line 19, in startConsole
    from apso_utils import console

fredb // 2019-12-02 10:20:03 :
Bug corrigé via ce commit : http://code.grammalecte.net:8080/info/864b920629351cb8

olr // 2020-01-02 09:26:56 :
Désolé pour l’absence de réponse. Je viens de m’apercevoir que le réglage qui m’alertait des nouveaux tickets a mystérieusement sauté.