Python例外

Python例外

lightdm-gtk-greeter-settings を実行したり Python アプリケーションをコンパイルすると、これらのエラーが発生します。

Pythonに関連しているようですが、これを解決するにはどのような手順を実行する必要があるのか​​わかりません。 Python Basic 3.5のインストール(2.7もインストール済み)

オペレーティングシステムManjaro XFCE(Arch 64ベース)

誰かが問題が何であるか教えてもらえますか?

ありがとう

Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/enum34-1.0.4-py3.5.egg/enum/__init__.py", line 371, in __getattr__
KeyError: '_convert'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/lightdm-gtk-greeter-settings", line 33, in <module>
    lightdm_gtk_greeter_settings.main()
  File "/usr/lib/python3.5/site-packages/lightdm_gtk_greeter_settings/__init__.py", line 24, in main
    from gi.repository import Gtk
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/usr/lib/python3.5/site-packages/gi/importer.py", line 115, in load_module
    dynamic_module = load_overrides(introspection_module)
  File "/usr/lib/python3.5/site-packages/gi/overrides/__init__.py", line 125, in load_overrides
    override_mod = importlib.import_module(override_package_name)
  File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3.5/site-packages/gi/overrides/Gtk.py", line 26, in <module>
    from gi.repository import GObject
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/usr/lib/python3.5/site-packages/gi/importer.py", line 115, in load_module
    dynamic_module = load_overrides(introspection_module)
  File "/usr/lib/python3.5/site-packages/gi/overrides/__init__.py", line 125, in load_overrides
    override_mod = importlib.import_module(override_package_name)
  File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3.5/site-packages/gi/overrides/GObject.py", line 31, in <module>
    from gi.repository import GLib
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/usr/lib/python3.5/site-packages/gi/importer.py", line 115, in load_module
    dynamic_module = load_overrides(introspection_module)
  File "/usr/lib/python3.5/site-packages/gi/overrides/__init__.py", line 125, in load_overrides
    override_mod = importlib.import_module(override_package_name)
  File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3.5/site-packages/gi/overrides/GLib.py", line 22, in <module>
    import signal
  File "/usr/lib/python3.5/signal.py", line 8, in <module>
    _IntEnum._convert(
  File "/usr/lib/python3.5/site-packages/enum34-1.0.4-py3.5.egg/enum/__init__.py", line 373, in __getattr__
AttributeError: _convert

ベストアンサー1

このコードはPython 3.5で実行されています。しかし、列挙型は3.4以下のバージョンでのみ実行されているようです。/usr/bin/python2.7インタプリタを実行してみてください。または初期のPython 3<= 3.4

おすすめ記事