Bug 1129003

Summary: [abrt] bpython-0.12-4.fc20: args.py:106:exec_code:IOError: [Errno 2] No such file or directory: 'a.py'
Product: [Fedora] Fedora Reporter: lnie <lnie>
Component: bpythonAssignee: Terje Røsten <terje.rosten>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: terje.rosten
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/0e26de23116dea2069ca2ac6148ed4da43d5ad7a
Whiteboard: abrt_hash:d2f6dbb58100251cdfa7337b4b501bcd7a57bc6d
Fixed In Version: bpython-0.13.2-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-27 03:05: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 lnie 2014-08-12 04:21:46 UTC
Description of problem:
Just run bpython a.py 

Version-Release number of selected component:
bpython-0.12-4.fc20

Additional info:
reporter:       libreport-2.1.9
cmdline:        /usr/bin/python2 /usr/bin/bpython a.py
executable:     /usr/bin/bpython
kernel:         3.11.10-301.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
args.py:106:exec_code:IOError: [Errno 2] No such file or directory: 'a.py'

Traceback (most recent call last):
  File "/usr/bin/bpython", line 9, in <module>
    load_entry_point('bpython==0.12', 'console_scripts', 'bpython')()
  File "/usr/lib/python2.7/site-packages/bpython/cli.py", line 1921, in main
    banner=banner)
  File "/usr/lib/python2.7/site-packages/bpython/cli.py", line 1818, in curses_wrapper
    return func(stdscr, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bpython/cli.py", line 1880, in main_curses
    bpython.args.exec_code(interpreter, args)
  File "/usr/lib/python2.7/site-packages/bpython/args.py", line 106, in exec_code
    with open(args[0], 'r') as sourcefile:
IOError: [Errno 2] No such file or directory: 'a.py'

Local variables in innermost frame:
interpreter: <bpython.repl.Interpreter instance at 0x2b2fea8>
args: ['a.py']

Comment 1 lnie 2014-08-12 04:21:50 UTC
Created attachment 925905 [details]
File: backtrace

Comment 2 lnie 2014-08-12 04:21:51 UTC
Created attachment 925906 [details]
File: environ

Comment 3 lnie 2014-08-12 04:29:46 UTC
From my point of view,the crash is unexpected there,and a message like"No such file or directory: 'a.py'" is clear enough to tell the user what's wrong .

Comment 4 Fedora Update System 2015-01-19 19:51:06 UTC
bpython-0.13.2-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/FEDORA-2015-0553/bpython-0.13.2-1.fc20

Comment 5 Fedora Update System 2015-01-19 19:53:47 UTC
bpython-0.13.2-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/bpython-0.13.2-1.fc21

Comment 6 Fedora Update System 2015-01-20 21:03:01 UTC
Package bpython-0.13.2-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing bpython-0.13.2-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-0920/bpython-0.13.2-1.fc21
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-01-27 03:05:22 UTC
bpython-0.13.2-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-01-30 04:43:53 UTC
bpython-0.13.2-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.