LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-17-2015, 12:00 AM   #1
alleyoopster
Member
 
Registered: Jul 2008
Location: Cape Town
Distribution: Debian testing / unstable
Posts: 38

Rep: Reputation: 0
Exception with python apps


I'm running Manjaro and having problems running any python app. When I do it generates at exception as shown in

Code:
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
I have tried downgrading to 3.3 and 3.4 but then I get errors
Code:
 ImportError: No module named 'gi'
Back to 3.5 and the program fails with the exception.

Any pointers how to fix this please

Last edited by alleyoopster; 11-17-2015 at 12:23 AM. Reason: Added traceback
 
Old 11-17-2015, 01:57 AM   #2
alleyoopster
Member
 
Registered: Jul 2008
Location: Cape Town
Distribution: Debian testing / unstable
Posts: 38

Original Poster
Rep: Reputation: 0
With some excellent help from The-Compiler on #python at freenode it is now fixed.

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


Reply

Tags
exception, python



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Django / Python exception description stateless Programming 1 05-18-2013 12:10 AM
Why do we need Python installed if we use Python apps in Linux? Mr. Alex Linux - Software 3 07-29-2011 06:05 AM
python exception like structure with a timer shanenin Programming 4 08-20-2005 10:44 AM
eric3 QT python editor exception... cuboidz Linux - Software 0 02-08-2004 11:16 AM
python; exception handling TheLinuxDuck Programming 2 08-20-2003 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration