Bug 708546

Summary: [abrt] reinteract-0.5.0-7: notebook_info.py:59:__load:OSError: [Errno 2] No such file or directory: '/home/andrew/Documents/Reinteract/Main'
Product: [Fedora] Fedora Reporter: Andrew Stitcher <astitcher>
Component: reinteractAssignee: Owen Taylor <otaylor>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: michel, otaylor
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:cdf17d4d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-31 18:08:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace none

Description Andrew Stitcher 2011-05-27 22:30:31 UTC
abrt version: 1.1.18
architecture: x86_64
component: reinteract
executable: /usr/bin/reinteract
kernel: 2.6.35.13-91.fc14.x86_64
package: reinteract-0.5.0-7
reason: notebook_info.py:59:__load:OSError: [Errno 2] No such file or directory: '/home/andrew/Documents/Reinteract/Main'
release: Fedora release 14 (Laughlin)
time: 1306528403
uid: 500

backtrace
-----
notebook_info.py:59:__load:OSError: [Errno 2] No such file or directory: '/home/andrew/Documents/Reinteract/Main'

Traceback (most recent call last):
  File "/usr/bin/reinteract", line 25, in <module>
    reinteract.main.main()
  File "/usr/lib/python2.7/site-packages/reinteract/main.py", line 93, in main
    window = application.open_notebook(notebook_dir)
  File "/usr/lib/python2.7/site-packages/reinteract/application.py", line 99, in open_notebook
    notebook = Notebook(path)
  File "/usr/lib/python2.7/site-packages/reinteract/notebook.py", line 129, in __init__
    self.info = NotebookInfo(folder)
  File "/usr/lib/python2.7/site-packages/reinteract/notebook_info.py", line 53, in __init__
    self.__load()
  File "/usr/lib/python2.7/site-packages/reinteract/notebook_info.py", line 59, in __load
    st = os.stat(self.folder)
OSError: [Errno 2] No such file or directory: '/home/andrew/Documents/Reinteract/Main'

Local variables in innermost frame:
self: <reinteract.notebook_info.NotebookInfo object at 0x7fe48e0d4e10>

comment
-----
On the whole I'd say that if reinteract can't find the last opened workbook, it should just complain a bit to the user and startup with no workbook.

The current behaviour gives absolutely no indication that anything happened if you start from the menu bar after you have mistakenly removed the workbook/directory.

This gives a bad user experience as now as far as you can tell reinteract has stopped working completely.

How to reproduce
-----
1. Delete the directory containing the notebook you last used with reinteract
2. start reintereact

Comment 1 Andrew Stitcher 2011-05-27 22:30:33 UTC
Created attachment 501420 [details]
File: backtrace

Comment 2 Owen Taylor 2011-05-31 18:08:25 UTC
Thanks for the bug report! Unfortunately, I'm not finding much (any) time to work on reinteract upstream or update the Fedora package recently.

This particular issue was fixed upstream a while ago - https://bugzilla.gnome.org/show_bug.cgi?id=616423