exceção do Python

0

Estou recebendo esses erros ao executar, por exemplo, lightdm-gtk-greeter-settings ou compilando aplicativos python.

Eu posso ver que é relacionado ao python, mas não tenho certeza sobre quais etapas são necessárias para resolver. instalado padrão Python 3.5 (também tem 2.7 instalado)

OS Manjaro XFCE (baseado no Arch 64)

Alguém pode aconselhar qual é o problema?

obrigado

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
    
por Daniel 16.11.2015 / 18:40

2 respostas

0

Você está executando este código em relação ao python 3.5 - no entanto, parece que o enum é executado apenas em relação a 3.4 ou anterior. Tente executar contra /usr/bin/python2.7 intérprete. ou um Python anterior a 3 <= 3.4

    
por 16.11.2015 / 19:34
0

Com uma excelente ajuda do The-Compiler no #python no freenode agora está corrigido.

cd /usr/lib/python3.5/site-packages; pacman -Qo * 2>&1 | grep '^error:'

Remova todos os pacotes listados no diretório site-packages.

    
por 17.11.2015 / 09:00