Bug 674014 - /usr/share/doc/python-nss-0.10/test/setup_certs.py uses invalid module mypty
Summary: /usr/share/doc/python-nss-0.10/test/setup_certs.py uses invalid module mypty
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-nss
Version: 6.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: John Dennis
QA Contact: Aleš Mareček
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-31 10:36 UTC by Ondrej Moriš
Modified: 2011-05-19 13:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
This field is the basis of the errata or release note for this bug. It can also be used for change logs. The Technical Note template, known as CCFR, is as follows: Cause What actions or circumstances cause this bug to present. Consequence What happens when the bug presents. Fix What was done to fix the bug.
Clone Of:
Environment:
Last Closed: 2011-05-19 13:35:21 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0607 0 normal SHIPPED_LIVE python-nss bug fix and enhancement update 2011-05-18 17:56:27 UTC

Description Ondrej Moriš 2011-01-31 10:36:40 UTC
Description of problem:

There is an invalid module imported in /usr/share/doc/python-nss-0.10/test/setup_certs.py.

Version-Release number of selected component (if applicable):

python-nss-doc-0.10-3.el6

How reproducible:

Always

Steps to Reproduce:

1. python /usr/share/doc/python-nss-0.10/test/setup_certs.py
  
Actual results:

Traceback (most recent call last):
  File "/usr/share/doc/python-nss-0.10/test/setup_certs.py", line 11, in <module>
    import mypty as pty
ImportError: No module named mypty

Expected results:

certifcate database password="passwd"
CA nickname="test_ca", CA subject="CN=Test CA"
server nickname="test_server", server subject="CN=ibm-x3650-04.ovirt.rhts.eng.bos.redhat.com"
client nickname="test_user", client subject="CN=test_user"

Additional info:

Why mypty is used instead of pty? Script works fine with pty module (from python-2.6.5-3.el6) is used.

Comment 1 John Dennis 2011-01-31 14:45:48 UTC
Sorry, mpty was a local edit used to test the pty module (copied pty.py to ./mpty.py), it should not have been checked in. import pty is the correct import as you point out. I'll fix the import in the upstream source.

Comment 10 Florian Nadge 2011-05-11 12:24:16 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
This field is the basis of the errata or release note for this bug. It can also be used for change logs.

The Technical Note template, known as CCFR, is as follows:

Cause
    What actions or circumstances cause this bug to present.
Consequence
    What happens when the bug presents.
Fix
    What was done to fix the bug.

Comment 11 John Dennis 2011-05-11 12:38:23 UTC
Cause:

Run setup_certs.py

Consequence:

setup_certs.py fails to execute due to missing module mypty.

Fix:

Replace mypty with pty.

Result:

setup_certs.py executes successfully.

Comment 12 errata-xmlrpc 2011-05-19 13:35:21 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0607.html


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