Sadless74 / googletransitdatafeed

Automatically exported from code.google.com/p/googletransitdatafeed
0 stars 0 forks source link

validator crash in webbrowser.py #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In python2.5 running transitfeed.py 1.1.6 or 1.1.7 on my fairly bare vmware
WindowsXP I got the following crash if I run the validator while firefox 2,
my default browser, is closed. Likely a webbrowser bug. The browser window
still opens and the crash does not happen if firefox is already running.

transitfeed version 1.1.7

File "C:\Documents and Settings\thecap\My
Documents\transitfeed-1.1.7\python\feedvalidator.py", line 304, in main
       if manual_entry:
 -->     webbrowser.open('file://%s' % os.path.abspath(output_filename))

    feed = C:\Documents and Settings\thecap\My
Documents\transitfeed-1.1.7\python\test\data\good_feed.zip
    parser = <optparse.OptionParser instance at 0x00CF6FD0>
    manual_entry = True
    args = []
    schedule = <transitfeed.Schedule instance at 0x00D069E0>
    output_file = <closed file 'validation-results.html', mode 'w' at
0x00C81140>
    problems = <__main__.HTMLCountingProblemReporter instance at 0x00D06918>
    exit_code = 0
    output_filename = validation-results.html
    loader = <transitfeed.Loader instance at 0x00D069B8>
    options = {'performance': None, 'manual_entry': True, 'output':
'validation-results.html', 'memory_db': False}

File "c:\Python25\lib\webbrowser.py", line 61, in open
             browser = get(name)
 -->         if browser.open(url, new, autoraise):
                 return True
    url = file://C:\Documents and Settings\thecap\My
Documents\transitfeed-1.1.7\python\validation-results.html
    new = 0
    autoraise = 1
    name = windows-default
    browser = <webbrowser.WindowsDefault object at 0x00D9DAD0>

File "c:\Python25\lib\webbrowser.py", line 518, in open
             def open(self, url, new=0, autoraise=1):
 -->             os.startfile(url)
                 return True # Oh, my...
    url = file://C:\Documents and Settings\thecap\My
Documents\transitfeed-1.1.7\python\validation-results.html
    new = 0
    autoraise = 1
    self = <webbrowser.WindowsDefault object at 0x00D9DAD0>

WindowsError: [Error 2] The system cannot find the file specified:
'file://C:\\Documents and Settings\\thecap\\My
Documents\\transitfeed-1.1.7\\python\\validation-results.html'

Original issue reported on code.google.com by tom.brow...@gmail.com on 31 Oct 2008 at 2:02

GoogleCodeExporter commented 9 years ago
Issue 150 has been merged into this issue.

Original comment by tom.brow...@gmail.com on 10 Mar 2009 at 8:56

GoogleCodeExporter commented 9 years ago

Original comment by tom.brow...@gmail.com on 28 Oct 2009 at 10:51

GoogleCodeExporter commented 9 years ago
Moved to https://github.com/google/transitfeed/issues/103

Original comment by bdfer...@google.com on 7 Oct 2014 at 7:58