Bug 1311009

Summary: [abrt] wallpapoz: xml_processing.py:77:__init__:AttributeError: 'module' object has no attribute 'parsers'
Product: [Fedora] Fedora Reporter: Kerry <mothlight>
Component: pythonAssignee: Charalampos Stratakis <cstratak>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: bkabrda, cstratak, dmalcolm, ivazqueznet, jberan, jonathansteffan, mothlight, mstuchli, mtasaka, ncoghlan, pviktori, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/01a530adc596ec588d9d584dddfbe740af9b25be
Whiteboard: abrt_hash:201bfd322659d1eb0b2dc715e6527f42fd64431c;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-20 18:57:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Kerry 2016-02-23 07:51:58 UTC
Version-Release number of selected component:
wallpapoz-0.6.2-7.fc23.2

Additional info:
reporter:       libreport-2.6.4
executable:     /usr/bin/wallpapoz
kernel:         4.3.5-300.fc23.x86_64
runlevel:       N 3
type:           Python
uid:            500

Truncated backtrace:
xml_processing.py:77:__init__:AttributeError: 'module' object has no attribute 'parsers'

Traceback (most recent call last):
  File "/usr/bin/wallpapoz", line 1365, in <module>
    wallpapozgui = Wallpapoz()
  File "/usr/bin/wallpapoz", line 75, in __init__
    self.wallpapozxml = XMLProcessing()
  File "../share/wallpapoz/lib/xml_processing.py", line 77, in __init__
    except xml.parsers.expat.ExpatError:
AttributeError: 'module' object has no attribute 'parsers'

Local variables in innermost frame:
wallpapoz_system: <wallpapoz_system.WallpapozSystem instance at 0x7f520c9aaa70>
home: '/home/nice'
self: <xml_processing.XMLProcessing instance at 0x7f520d719f38>

Comment 1 Kerry 2016-02-23 07:52:03 UTC
Created attachment 1129645 [details]
File: backtrace

Comment 2 Kerry 2016-02-23 07:52:04 UTC
Created attachment 1129646 [details]
File: environ

Comment 3 Mamoru TASAKA 2016-02-23 10:02:46 UTC
Would you write in detail how to reproduce this issue?

Comment 4 Kerry 2016-02-24 06:47:41 UTC
Just trying to run it:

[nice@politemadness Desktop]$ wallpapoz 
Traceback (most recent call last):
  File "/usr/bin/wallpapoz", line 1365, in <module>
    wallpapozgui = Wallpapoz()
  File "/usr/bin/wallpapoz", line 75, in __init__
    self.wallpapozxml = XMLProcessing()
  File "../share/wallpapoz/lib/xml_processing.py", line 77, in __init__
    except xml.parsers.expat.ExpatError:
AttributeError: 'module' object has no attribute 'parsers'
[nice@politemadness Desktop]$ 

or:

[nice@politemadness Desktop]$ cd /usr/bin
[nice@politemadness bin]$ python wallpapoz 
Traceback (most recent call last):
  File "wallpapoz", line 1365, in <module>
    wallpapozgui = Wallpapoz()
  File "wallpapoz", line 75, in __init__
    self.wallpapozxml = XMLProcessing()
  File "../share/wallpapoz/lib/xml_processing.py", line 77, in __init__
    except xml.parsers.expat.ExpatError:
AttributeError: 'module' object has no attribute 'parsers'

Comment 5 Mamoru TASAKA 2016-02-24 07:45:04 UTC
Would you attach the result of

$ python -v -c "import xml.parsers.expat"
?

Also would you attach the result of
$ ldd -r /usr/lib64/python2.7/lib-dynload/pyexpat.so
?

Comment 6 Kerry 2016-02-24 20:38:59 UTC
[nice@politemadness Desktop]$ python -v -c "import xml.parsers.expat"
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib64/python2.7/site.pyc matches /usr/lib64/python2.7/site.py
import site # precompiled from /usr/lib64/python2.7/site.pyc
# /usr/lib64/python2.7/os.pyc matches /usr/lib64/python2.7/os.py
import os # precompiled from /usr/lib64/python2.7/os.pyc
import errno # builtin
import posix # builtin
# /usr/lib64/python2.7/posixpath.pyc matches /usr/lib64/python2.7/posixpath.py
import posixpath # precompiled from /usr/lib64/python2.7/posixpath.pyc
# /usr/lib64/python2.7/stat.pyc matches /usr/lib64/python2.7/stat.py
import stat # precompiled from /usr/lib64/python2.7/stat.pyc
# /usr/lib64/python2.7/genericpath.pyc matches /usr/lib64/python2.7/genericpath.py
import genericpath # precompiled from /usr/lib64/python2.7/genericpath.pyc
# /usr/lib64/python2.7/warnings.pyc matches /usr/lib64/python2.7/warnings.py
import warnings # precompiled from /usr/lib64/python2.7/warnings.pyc
# /usr/lib64/python2.7/linecache.pyc matches /usr/lib64/python2.7/linecache.py
import linecache # precompiled from /usr/lib64/python2.7/linecache.pyc
# /usr/lib64/python2.7/types.pyc matches /usr/lib64/python2.7/types.py
import types # precompiled from /usr/lib64/python2.7/types.pyc
# /usr/lib64/python2.7/UserDict.pyc matches /usr/lib64/python2.7/UserDict.py
import UserDict # precompiled from /usr/lib64/python2.7/UserDict.pyc
# /usr/lib64/python2.7/_abcoll.pyc matches /usr/lib64/python2.7/_abcoll.py
import _abcoll # precompiled from /usr/lib64/python2.7/_abcoll.pyc
# /usr/lib64/python2.7/abc.pyc matches /usr/lib64/python2.7/abc.py
import abc # precompiled from /usr/lib64/python2.7/abc.pyc
# /usr/lib64/python2.7/_weakrefset.pyc matches /usr/lib64/python2.7/_weakrefset.py
import _weakrefset # precompiled from /usr/lib64/python2.7/_weakrefset.pyc
import _weakref # builtin
# /usr/lib64/python2.7/copy_reg.pyc matches /usr/lib64/python2.7/copy_reg.py
import copy_reg # precompiled from /usr/lib64/python2.7/copy_reg.pyc
# /usr/lib64/python2.7/traceback.pyc matches /usr/lib64/python2.7/traceback.py
import traceback # precompiled from /usr/lib64/python2.7/traceback.pyc
# /usr/lib64/python2.7/sysconfig.pyc matches /usr/lib64/python2.7/sysconfig.py
import sysconfig # precompiled from /usr/lib64/python2.7/sysconfig.pyc
# /usr/lib64/python2.7/re.pyc matches /usr/lib64/python2.7/re.py
import re # precompiled from /usr/lib64/python2.7/re.pyc
# /usr/lib64/python2.7/sre_compile.pyc matches /usr/lib64/python2.7/sre_compile.py
import sre_compile # precompiled from /usr/lib64/python2.7/sre_compile.pyc
import _sre # builtin
# /usr/lib64/python2.7/sre_parse.pyc matches /usr/lib64/python2.7/sre_parse.py
import sre_parse # precompiled from /usr/lib64/python2.7/sre_parse.pyc
# /usr/lib64/python2.7/sre_constants.pyc matches /usr/lib64/python2.7/sre_constants.py
import sre_constants # precompiled from /usr/lib64/python2.7/sre_constants.pyc
dlopen("/usr/lib64/python2.7/lib-dynload/_localemodule.so", 2);
import _locale # dynamically loaded from /usr/lib64/python2.7/lib-dynload/_localemodule.so
# /usr/lib64/python2.7/_sysconfigdata.pyc matches /usr/lib64/python2.7/_sysconfigdata.py
import _sysconfigdata # precompiled from /usr/lib64/python2.7/_sysconfigdata.pyc
# /usr/lib64/python2.7/site-packages/abrt_exception_handler.pyc matches /usr/lib64/python2.7/site-packages/abrt_exception_handler.py
import abrt_exception_handler # precompiled from /usr/lib64/python2.7/site-packages/abrt_exception_handler.pyc
# zipimport: found 7 names in /usr/lib/python2.7/site-packages/gcalcli-3.1-py2.7.egg
# zipimport: found 26 names in /usr/lib/python2.7/site-packages/google_api_python_client-1.3.1-py2.7.egg
# zipimport: found 8 names in /usr/lib/python2.7/site-packages/uritemplate-0.6-py2.7.egg
# zipimport: found 42 names in /usr/lib/python2.7/site-packages/oauth2client-1.3.2-py2.7.egg
import encodings # directory /usr/lib64/python2.7/encodings
# /usr/lib64/python2.7/encodings/__init__.pyc matches /usr/lib64/python2.7/encodings/__init__.py
import encodings # precompiled from /usr/lib64/python2.7/encodings/__init__.pyc
# /usr/lib64/python2.7/codecs.pyc matches /usr/lib64/python2.7/codecs.py
import codecs # precompiled from /usr/lib64/python2.7/codecs.pyc
import _codecs # builtin
# /usr/lib64/python2.7/encodings/aliases.pyc matches /usr/lib64/python2.7/encodings/aliases.py
import encodings.aliases # precompiled from /usr/lib64/python2.7/encodings/aliases.pyc
# /usr/lib64/python2.7/encodings/utf_8.pyc matches /usr/lib64/python2.7/encodings/utf_8.py
import encodings.utf_8 # precompiled from /usr/lib64/python2.7/encodings/utf_8.pyc
Python 2.7.10 (default, Sep  8 2015, 17:20:17) 
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import xml # directory /usr/lib64/python2.7/xml
# /usr/lib64/python2.7/xml/__init__.pyc matches /usr/lib64/python2.7/xml/__init__.py
import xml # precompiled from /usr/lib64/python2.7/xml/__init__.pyc
import systemd # directory /usr/lib64/python2.7/site-packages/systemd
# /usr/lib64/python2.7/site-packages/systemd/__init__.pyc matches /usr/lib64/python2.7/site-packages/systemd/__init__.py
import systemd # precompiled from /usr/lib64/python2.7/site-packages/systemd/__init__.pyc
# /usr/lib64/python2.7/site-packages/systemd/journal.pyc matches /usr/lib64/python2.7/site-packages/systemd/journal.py
import systemd.journal # precompiled from /usr/lib64/python2.7/site-packages/systemd/journal.pyc
# /usr/lib64/python2.7/__future__.pyc matches /usr/lib64/python2.7/__future__.py
import __future__ # precompiled from /usr/lib64/python2.7/__future__.pyc
dlopen("/usr/lib64/python2.7/lib-dynload/datetime.so", 2);
import datetime # dynamically loaded from /usr/lib64/python2.7/lib-dynload/datetime.so
# /usr/lib64/python2.7/uuid.pyc matches /usr/lib64/python2.7/uuid.py
import uuid # precompiled from /usr/lib64/python2.7/uuid.pyc
import ctypes # directory /usr/lib64/python2.7/ctypes
# /usr/lib64/python2.7/ctypes/__init__.pyc matches /usr/lib64/python2.7/ctypes/__init__.py
import ctypes # precompiled from /usr/lib64/python2.7/ctypes/__init__.pyc
dlopen("/usr/lib64/python2.7/lib-dynload/_ctypes.so", 2);
import _ctypes # dynamically loaded from /usr/lib64/python2.7/lib-dynload/_ctypes.so
# /usr/lib64/python2.7/struct.pyc matches /usr/lib64/python2.7/struct.py
import struct # precompiled from /usr/lib64/python2.7/struct.pyc
dlopen("/usr/lib64/python2.7/lib-dynload/_struct.so", 2);
import _struct # dynamically loaded from /usr/lib64/python2.7/lib-dynload/_struct.so
# /usr/lib64/python2.7/ctypes/_endian.pyc matches /usr/lib64/python2.7/ctypes/_endian.py
import ctypes._endian # precompiled from /usr/lib64/python2.7/ctypes/_endian.pyc
# /usr/lib64/python2.7/ctypes/util.pyc matches /usr/lib64/python2.7/ctypes/util.py
import ctypes.util # precompiled from /usr/lib64/python2.7/ctypes/util.pyc
# /usr/lib64/python2.7/tempfile.pyc matches /usr/lib64/python2.7/tempfile.py
import tempfile # precompiled from /usr/lib64/python2.7/tempfile.pyc
# /usr/lib64/python2.7/io.pyc matches /usr/lib64/python2.7/io.py
import io # precompiled from /usr/lib64/python2.7/io.pyc
dlopen("/usr/lib64/python2.7/lib-dynload/_io.so", 2);
import _io # dynamically loaded from /usr/lib64/python2.7/lib-dynload/_io.so
# /usr/lib64/python2.7/random.pyc matches /usr/lib64/python2.7/random.py
import random # precompiled from /usr/lib64/python2.7/random.pyc
dlopen("/usr/lib64/python2.7/lib-dynload/math.so", 2);
import math # dynamically loaded from /usr/lib64/python2.7/lib-dynload/math.so
dlopen("/usr/lib64/python2.7/lib-dynload/binascii.so", 2);
import binascii # dynamically loaded from /usr/lib64/python2.7/lib-dynload/binascii.so
# /usr/lib64/python2.7/hashlib.pyc matches /usr/lib64/python2.7/hashlib.py
import hashlib # precompiled from /usr/lib64/python2.7/hashlib.pyc
dlopen("/usr/lib64/python2.7/lib-dynload/_hashlib.so", 2);
import _hashlib # dynamically loaded from /usr/lib64/python2.7/lib-dynload/_hashlib.so
dlopen("/usr/lib64/python2.7/lib-dynload/_randommodule.so", 2);
import _random # dynamically loaded from /usr/lib64/python2.7/lib-dynload/_randommodule.so
dlopen("/usr/lib64/python2.7/lib-dynload/cStringIO.so", 2);
import cStringIO # dynamically loaded from /usr/lib64/python2.7/lib-dynload/cStringIO.so
dlopen("/usr/lib64/python2.7/lib-dynload/fcntlmodule.so", 2);
import fcntl # dynamically loaded from /usr/lib64/python2.7/lib-dynload/fcntlmodule.so
import thread # builtin
import logging # directory /usr/lib64/python2.7/logging
# /usr/lib64/python2.7/logging/__init__.pyc matches /usr/lib64/python2.7/logging/__init__.py
import logging # precompiled from /usr/lib64/python2.7/logging/__init__.pyc
dlopen("/usr/lib64/python2.7/lib-dynload/timemodule.so", 2);
import time # dynamically loaded from /usr/lib64/python2.7/lib-dynload/timemodule.so
# /usr/lib64/python2.7/weakref.pyc matches /usr/lib64/python2.7/weakref.py
import weakref # precompiled from /usr/lib64/python2.7/weakref.pyc
# /usr/lib64/python2.7/collections.pyc matches /usr/lib64/python2.7/collections.py
import collections # precompiled from /usr/lib64/python2.7/collections.pyc
dlopen("/usr/lib64/python2.7/lib-dynload/_collectionsmodule.so", 2);
import _collections # dynamically loaded from /usr/lib64/python2.7/lib-dynload/_collectionsmodule.so
dlopen("/usr/lib64/python2.7/lib-dynload/operator.so", 2);
import operator # dynamically loaded from /usr/lib64/python2.7/lib-dynload/operator.so
# /usr/lib64/python2.7/keyword.pyc matches /usr/lib64/python2.7/keyword.py
import keyword # precompiled from /usr/lib64/python2.7/keyword.pyc
# /usr/lib64/python2.7/heapq.pyc matches /usr/lib64/python2.7/heapq.py
import heapq # precompiled from /usr/lib64/python2.7/heapq.pyc
dlopen("/usr/lib64/python2.7/lib-dynload/itertoolsmodule.so", 2);
import itertools # dynamically loaded from /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so
dlopen("/usr/lib64/python2.7/lib-dynload/_heapq.so", 2);
import _heapq # dynamically loaded from /usr/lib64/python2.7/lib-dynload/_heapq.so
# /usr/lib64/python2.7/threading.pyc matches /usr/lib64/python2.7/threading.py
import threading # precompiled from /usr/lib64/python2.7/threading.pyc
# /usr/lib64/python2.7/atexit.pyc matches /usr/lib64/python2.7/atexit.py
import atexit # precompiled from /usr/lib64/python2.7/atexit.pyc
dlopen("/usr/lib64/python2.7/lib-dynload/syslog.so", 2);
import syslog # dynamically loaded from /usr/lib64/python2.7/lib-dynload/syslog.so
dlopen("/usr/lib64/python2.7/site-packages/systemd/_journal.so", 2);
import systemd._journal # dynamically loaded from /usr/lib64/python2.7/site-packages/systemd/_journal.so
dlopen("/usr/lib64/python2.7/site-packages/systemd/_reader.so", 2);
import systemd._reader # dynamically loaded from /usr/lib64/python2.7/site-packages/systemd/_reader.so
dlopen("/usr/lib64/python2.7/site-packages/systemd/id128.so", 2);
import systemd.id128 # dynamically loaded from /usr/lib64/python2.7/site-packages/systemd/id128.so
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named parsers.expat
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.flags
# clear sys.float_info
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] random
# cleanup[1] sysconfig
# cleanup[1] __future__
# cleanup[1] xml
# cleanup[1] systemd
# cleanup[1] struct
# cleanup[1] zipimport
# cleanup[1] signal
# cleanup[1] syslog
# cleanup[1] operator
# cleanup[1] encodings
# cleanup[1] math
# cleanup[1] pydap
# cleanup[1] mpl_toolkits
# cleanup[1] _ctypes
# cleanup[1] paste
# cleanup[1] ndg
# cleanup[1] itertools
# cleanup[1] systemd.journal
# cleanup[1] _collections
# cleanup[1] _heapq
# cleanup[1] binascii
# cleanup[1] sre_constants
# cleanup[1] _warnings
# cleanup[1] _codecs
# cleanup[1] systemd.id128
# cleanup[1] _sysconfigdata
# cleanup[1] _struct
# cleanup[1] hashlib
# cleanup[1] keyword
# cleanup[1] posix
# cleanup[1] encodings.aliases
# cleanup[1] exceptions
# cleanup[1] abrt_exception_handler
# cleanup[1] _hashlib
# cleanup[1] _random
# cleanup[1] site
# cleanup[1] zope
# cleanup[1] peak
# cleanup[1] _weakref
# cleanup[1] _weakrefset
# cleanup[1] systemd._reader
# cleanup[1] datetime
# cleanup[1] systemd._journal
# cleanup[1] pydap.handlers
# cleanup[1] pydap.responses
# cleanup[1] encodings.utf_8
# cleanup[1] pydap.wsgi
# cleanup[1] uuid
# cleanup[1] logging
# cleanup[1] traceback
# cleanup[1] weakref
# cleanup[1] peak.util
# cleanup[1] atexit
# cleanup[1] time
# cleanup[1] collections
# cleanup[1] threading
# cleanup[1] cStringIO
# cleanup[1] ctypes
# cleanup[1] codecs
# cleanup[1] ctypes.util
# cleanup[1] heapq
# cleanup[1] ctypes._endian
# cleanup[1] tempfile
# cleanup[1] re
# cleanup[1] fcntl
# cleanup[1] _locale
# cleanup[1] thread
# cleanup[1] sre_compile
# cleanup[1] io
# cleanup[1] _io
# cleanup[1] abc
# cleanup[1] _sre
# cleanup[1] sre_parse
# cleanup[2] warnings
# cleanup[2] UserDict
# cleanup[2] os
# cleanup[2] posixpath
# cleanup[2] errno
# cleanup[2] os.path
# cleanup[2] copy_reg
# cleanup[2] linecache
# cleanup[2] _abcoll
# cleanup[2] genericpath
# cleanup[2] stat
# cleanup[2] types
# cleanup sys
# cleanup __builtin__
# cleanup ints: 536 unfreed ints
# cleanup floats: 31 unfreed floats
[nice@politemadness Desktop]$

Comment 7 Kerry 2016-02-24 20:39:28 UTC
[nice@politemadness Desktop]$ ldd -r /usr/lib64/python2.7/lib-dynload/pyexpat.so
        linux-vdso.so.1 (0x00007ffdf90ba000)
        libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007fe018c63000)
        libpython2.7.so.1.0 => /usr/lib64/libpython2.7.so.1.0 (0x00007fe018899000)
        libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fe01867c000)
        libc.so.6 => /usr/lib64/libc.so.6 (0x00007fe0182bb000)
        libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007fe0180b6000)
        libutil.so.1 => /usr/lib64/libutil.so.1 (0x00007fe017eb3000)
        libm.so.6 => /usr/lib64/libm.so.6 (0x00007fe017bb1000)
        /lib64/ld-linux-x86-64.so.2 (0x0000563a188f0000)

Comment 8 Mamoru TASAKA 2016-02-25 05:50:41 UTC
The failure of $ python -v -c "import xml.parsers.expat" is python problem and not related to wallpapoz.

Once switching to python.

Comment 9 Fedora End Of Life 2016-11-24 15:42:50 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 10 Fedora End Of Life 2016-12-20 18:57:22 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.