Bug 588846

Summary: [abrt] crash in python-pep8-0.4.2-2.fc12: pep8.py:703:__init__:IOError: [Errno 2] No such file or directory: 'translate/lang/th.py'
Product: [Fedora] Fedora Reporter: Dwayne Bailey <dwayne>
Component: python-pep8Assignee: Ian Weller <ian>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: ian
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard: abrt_hash:a421e00a
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-04 20:14:39 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

Description Dwayne Bailey 2010-05-04 17:39:48 UTC
abrt 1.0.9 detected a crash.

architecture: i686
cmdline: /usr/bin/python /usr/bin/pep8 --repeat translate/lang/th.py
comment: The program should probably exit more elegantly when it is asked to run over a non-existant file.
component: python-pep8
executable: /usr/bin/pep8
kernel: 2.6.32.11-99.fc12.i686.PAE
package: python-pep8-0.4.2-2.fc12
reason: pep8.py:703:__init__:IOError: [Errno 2] No such file or directory: 'translate/lang/th.py'
release: Fedora release 12 (Constantine)

backtrace
-----
pep8.py:703:__init__:IOError: [Errno 2] No such file or directory: 'translate/lang/th.py'

Traceback (most recent call last):
  File "/usr/bin/pep8", line 8, in <module>
    load_entry_point('pep8==0.4.2', 'console_scripts', 'pep8')()
  File "/usr/lib/python2.6/site-packages/pep8.py", line 1149, in _main
    input_file(path)
  File "/usr/lib/python2.6/site-packages/pep8.py", line 906, in input_file
    errors = Checker(filename).check_all()
  File "/usr/lib/python2.6/site-packages/pep8.py", line 703, in __init__
    self.lines = open(filename).readlines()
IOError: [Errno 2] No such file or directory: 'translate/lang/th.py'

Local variables in innermost frame:
self: <pep8.Checker instance at 0x928c36c>
filename: 'translate/lang/th.py'

How to reproduce
-----
1. Try to run pep8 against any non-existant file

Comment 1 Dwayne Bailey 2010-05-04 17:39:55 UTC
Created attachment 411346 [details]
File: backtrace

Comment 2 Ian Weller 2010-05-04 20:14:39 UTC
This is not a bug -- pylint isn't written to have a nice error message when you run it on a file that doesn't exist; a traceback is expected.