RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1025961 - crash with pydoc -k
Summary: crash with pydoc -k
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Bohuslav "Slavek" Kabrda
QA Contact: Branislav Náter
URL:
Whiteboard:
Depends On: 1026209
Blocks: 1026329
TreeView+ depends on / blocked
 
Reported: 2013-11-02 13:38 UTC by Matěj Cepl
Modified: 2014-06-18 04:23 UTC (History)
2 users (show)

Fixed In Version: PyQt4-4.10.1-8.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1026329 (view as bug list)
Environment:
Last Closed: 2014-06-13 12:22:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Matěj Cepl 2013-11-02 13:38:06 UTC
Description of problem:
matej@wycliff: ~$ pydoc -k wraps
Traceback (most recent call last):
  File "/usr/bin/pydoc", line 5, in <module>
    pydoc.cli()
  File "/usr/lib64/python2.7/pydoc.py", line 2292, in cli
    apropos(val)
  File "/usr/lib64/python2.7/pydoc.py", line 1992, in apropos
    ModuleScanner().run(callback, key, onerror=onerror)
  File "/usr/lib64/python2.7/pydoc.py", line 1973, in run
    module = loader.load_module(modname)
AttributeError: 'NoneType' object has no attribute 'load_module'

Version-Release number of selected component (if applicable):
python-libs-2.7.5-8.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.see above
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Bohuslav "Slavek" Kabrda 2013-11-04 08:18:19 UTC
The problem:
- This only happens when PyQt4 is installed.
- On line 1962, loader is instantiated by importer.find_module. For "PyQt4.uic.pyuic", importer.find_module returns None, which then causes the AttributeError.
- File /usr/lib64/python2.7/site-packages/PyQt4/uic/pyuic.py is a symlink to /usr/bin/pyuic4, which lives in PyQt4-devel.
- If PyQt4-devel is not installed, pyuic.py is unimportable, which makes pydoc fail.

IMO this is a problem in packaging of PyQt4, since pyuic.py file should be in PyQt4-devel package, not in the main PyQt4 package where it's unusable. I'll open a bug for PyQt4.

Comment 3 Bohuslav "Slavek" Kabrda 2014-01-14 13:50:09 UTC
Fixed in PyQt4 => moving to MODIFIED.

Comment 5 Branislav Náter 2014-04-03 21:24:08 UTC
Root cause has been solved by bz#1026209.

Now, traceback doesn't occur if PyQt4-devel is not installed:

# rpm -qa | grep PyQt4
PyQt4-dbus-4.10.1-12.el7.noarch
PyQt4-4.10.1-12.el7.x86_64

# pydoc -k wraps
ldap.functions - functions.py - wraps functions of module _ldap
ldap.ldapobject - ldapobject.py - wraps class _ldap.LDAPObject
#

Comment 6 Ludek Smid 2014-06-13 12:22:01 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.