akireserrano86 / googletransitdatafeed

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

The google transit feed I am testing in the feed validator threw an unexpected exception. #259

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run the feed validator (version 1.2.6)
2. enter feed location (feed zip file is attached) 
3. hit enter

What is the expected output? What do you see instead?
I expected to see a html report with the results of the feed.

What version of the product are you using? On what operating system?
version 1.2.6.  The operating system is Windows XP Professional, Version 2002, 
service pack 2

Please provide any additional information below.
I used the feed validator today at least a half dozen times today and it seemed 
to be working properly.

Original issue reported on code.google.com by ridebigb...@gmail.com on 13 Oct 2010 at 5:31

Attachments:

GoogleCodeExporter commented 8 years ago
Your last stop is missing a quotation mark around Market Plaza Shaws:

1714,"Market Plaza Shaws,"",42.753335,-71.459447

Original comment by devin.br...@gmail.com on 13 Oct 2010 at 6:02

GoogleCodeExporter commented 8 years ago
Thank you so much for your help with this!!!!

Original comment by ridebigb...@gmail.com on 13 Oct 2010 at 7:09

GoogleCodeExporter commented 8 years ago
I ran the validator in linux and got backtrace ending with

File "transitfeed/loader.py", line 220, in _ReadCsvDict
         line_num = 1  # First line read by reader.next() above
 -->     for raw_row in reader:
           line_num += 1
    unicode_error_columns = []
    missing_cols = set([])
    raw_row = ['1715', 'Dearborn - Bowers', '', '42.755455', '-71.460699']
    header = ['stop_id', 'stop_name', 'stop_desc', 'stop_lat', 'stop_lon', 'location_type']
    valid_values = [u'1715', u'Dearborn - Bowers', u'', u'42.755455', u'-71.460699']
    contents = stop_id,stop_name,stop_desc,stop_lat,stop_lon
1500,"TRANSIT CENTER","The Transit Center is located on Elm Street behind City 
Hall",42.758408,-71.465515
1501,"100 Main","",42.762177,-71.465763
1502,"Main - Pearson Ave","",42.763205,-71.466206
1503,"7 Concord","",42.766343,-71.467271
1504,"Manchester - Mt Pleasant St","",42.768542,-71.468003
1505,"Manchester - Courtland","",42.771577,-71.470004
1506,"Manchester - Monadnock","",42.774303,-71.474267
1507,"Charlotte Ave - Manchester","",42.7...
    line_num = 372
    unknown_cols = set([])
    self = <transitfeed.loader.Loader instance at 0x2917c20>
    all_cols = ['stop_id', 'stop_name', 'stop_lat', 'stop_lon', 'stop_desc', 'zone_id', 'stop_url', 'stop_code', 'location_type', 'parent_station']
    header_occurrences = defaultdict(<function <lambda> at 0x2916d70>, {'stop_desc': 1, 'stop_lat': 1, 'stop_name': 1, 'stop_lon': 1, 'stop_id': 1})
    file_name = stops.txt
    reader = <_csv.reader object at 0x292c4b0>
    raw_header = ['stop_id', 'stop_name', 'stop_desc', 'stop_lat', 'stop_lon']
    valid_columns = [0, 1, 2, 3, 4]
    name = stop_id
    count = 1
    d = {'stop_desc': u'', 'stop_lat': u'42.755455', 'stop_name': u'Dearborn - Bowers', 'stop_lon': u'-71.460699', 'stop_id': u'1715'}
    i = 4
    h = stop_lon
    required = ['stop_id', 'stop_name', 'stop_lat', 'stop_lon']
    h_stripped = stop_lon
    table_name = stops
    eol_checker = <transitfeed.util.EndOfLineChecker instance at 0x2918d88>

Error: newline inside string

Original comment by tom.brow...@gmail.com on 9 Nov 2010 at 1:48