tonny2v / googletransitdatafeed

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

Validation Tools crash with error #351

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Validation Tool crash with error message

What is the expected output? What do you see instead?

Enter Feed Location: "E:\MMS\GoogleExport\Exports\Working Feeds\exported Nov-12-
2012\merged 12-07 & 12-08 (Nov5-Jan6)"
validating E:\MMS\GoogleExport\Exports\Working Feeds\exported Nov-12-2012\merged
 12-07 & 12-08 (Nov5-Jan6)
FeedValidator extension used: None
Yikes, the program threw an unexpected exception!

Hopefully a complete report has been saved to transitfeedcrash.txt,
though if you are seeing this message we've already disappointed you once
today. Please include the report in a new issue at
http://code.google.com/p/googletransitdatafeed/issues/entry
or an email to the public group googletransitdatafeed@googlegroups.com. Sorry!

------------------------------------------------------------
transitfeed version 1.2.12

File "feedvalidator.py", line 641, in main
    feed = E:\MMS\GoogleExport\Exports\Working Feeds\exported Nov-12-2012\merged
 12-07 & 12-08 (Nov5-Jan6)
    options = {'check_duplicate_trips': False, 'manual_entry': True, 'extension'
: None, 'error_types_ignore_list': None, 'memory_db': False, 'service_gap_interv
al': 13, 'latest_version': '', 'limit_per_type': 5, 'performance': None, 'output
': 'validation-results.html'}

File "feedvalidator.py", line 736, in RunValidationFromOptions
    feed = E:\MMS\GoogleExport\Exports\Working Feeds\exported Nov-12-2012\merged
 12-07 & 12-08 (Nov5-Jan6)
    options = {'check_duplicate_trips': False, 'manual_entry': True, 'extension'
: None, 'error_types_ignore_list': None, 'memory_db': False, 'service_gap_interv
al': 13, 'latest_version': '', 'limit_per_type': 5, 'performance': None, 'output
': 'validation-results.html'}

File "feedvalidator.py", line 499, in RunValidationOutputFromOptions
    feed = E:\MMS\GoogleExport\Exports\Working Feeds\exported Nov-12-2012\merged
 12-07 & 12-08 (Nov5-Jan6)
    options = {'check_duplicate_trips': False, 'manual_entry': True, 'extension'
: None, 'error_types_ignore_list': None, 'memory_db': False, 'service_gap_interv
al': 13, 'latest_version': '', 'limit_per_type': 5, 'performance': None, 'output
': 'validation-results.html'}

File "feedvalidator.py", line 506, in RunValidationOutputToFilename
    feed = E:\MMS\GoogleExport\Exports\Working Feeds\exported Nov-12-2012\merged
 12-07 & 12-08 (Nov5-Jan6)
    output_file = <open file 'validation-results.html', mode 'w' at 0x026C5CD8>
    options = {'check_duplicate_trips': False, 'manual_entry': True, 'extension'
: None, 'error_types_ignore_list': None, 'memory_db': False, 'service_gap_interv
al': 13, 'latest_version': '', 'limit_per_type': 5, 'performance': None, 'output
': 'validation-results.html'}
    output_filename = validation-results.html

File "feedvalidator.py", line 525, in RunValidationOutputToFile
    feed = E:\MMS\GoogleExport\Exports\Working Feeds\exported Nov-12-2012\merged
 12-07 & 12-08 (Nov5-Jan6)
    accumulator = <__main__.HTMLCountingProblemAccumulator object at 0x0264AC70>

    output_file = <open file 'validation-results.html', mode 'w' at 0x026C5CD8>
    problems = <transitfeed.problems.ProblemReporter object at 0x026E6330>
    options = {'check_duplicate_trips': False, 'manual_entry': True, 'extension'
: None, 'error_types_ignore_list': None, 'memory_db': False, 'service_gap_interv
al': 13, 'latest_version': '', 'limit_per_type': 5, 'performance': None, 'output
': 'validation-results.html'}

File "feedvalidator.py", line 583, in RunValidation
    feed = E:\MMS\GoogleExport\Exports\Working Feeds\exported Nov-12-2012\merged
 12-07 & 12-08 (Nov5-Jan6)
    problems = <transitfeed.problems.ProblemReporter object at 0x026E6330>
    loader = <transitfeed.loader.Loader instance at 0x02729350>
    extension_module = <module 'transitfeed' from 'E:\MMS\GoogleExport\Validatio
n Tools\library.zip\transitfeed\__init__.pyc'>
    options = {'check_duplicate_trips': False, 'manual_entry': True, 'extension'
: None, 'error_types_ignore_list': None, 'memory_db': False, 'service_gap_interv
al': 13, 'latest_version': '', 'limit_per_type': 5, 'performance': None, 'output
': 'validation-results.html'}
    other_problems_string = None
    gtfs_factory = <transitfeed.gtfsfactory.GtfsFactory object at 0x026E6C50>

File "transitfeed\loader.pyc", line 582, in Load
    self = <transitfeed.loader.Loader instance at 0x02729350>

File "transitfeed\loader.pyc", line 412, in _LoadFeed
    row_num = 12
    d = {'route_long_name': u"WILLIAMSTON-WEBBERVILLE,3,3,,6264,834392,3,,48D'TO
WN LANSING - MERIDIAN MALL", 'route_type': u'3', 'route_text_color': u'3', 'rout
e_id': u'', 'route_color': u'6262', 'route_desc': u'000000', 'route_url': u'3',
'route_short_name': u''}
    header = ['route_long_name', 'route_type', 'route_text_color', 'route_id', '
route_color', 'route_desc', 'route_url', 'route_short_name']
    self = <transitfeed.loader.Loader instance at 0x02729350>
    filename = routes.txt
    instance = <Route [('route_color', None), ('route_desc', u'000000'), ('route
_id', u''), ('route_long_name', u"WILLIAMSTON-WEBBERVILLE,3,3,,6264,834392,3,,48
D'TOWN LANSING - MERIDIAN MALL"), ('route_short_name', u''), ('route_text_color'
, None), ('route_type', 3), ('route_url', u'3')]>
    loading_order = ['agency.txt', 'stops.txt', 'routes.txt', 'transfers.txt', '
trips.txt', 'fare_attributes.txt', 'fare_rules.txt', 'frequencies.txt', 'feed_in
fo.txt']
    object_class = <class 'transitfeed.route.Route'>
    row = [u"WILLIAMSTON-WEBBERVILLE,3,3,,6264,834392,3,,48D'TOWN LANSING - MERI
DIAN MALL", u'3', u'3', u'', u'6262', u'000000', u'3', u'']

File "transitfeed\loader.pyc", line 227, in _ReadCsvDict
    unicode_error_columns = []
    missing_cols = set([])
    raw_row = ["WILLIAMSTON-WEBBERVILLE,3,3,,6264,834392,3,,48D'TOWN LANSING - M
ERIDIAN MALL", '3', '3', '', '6262', '000000', '3', '', '41']
    cols = ['route_id', 'route_short_name', 'route_long_name', 'route_type', 'ag
ency_id', 'route_desc', 'route_url', 'route_color', 'route_text_color']
    header = ['route_long_name', 'route_type', 'route_text_color', 'route_id', '
route_color', 'route_desc', 'route_url', 'route_short_name']
    valid_values = [u"WILLIAMSTON-WEBBERVILLE,3,3,,6264,834392,3,,48D'TOWN LANSI
NG - MERIDIAN MALL", u'3', u'3', u'', u'6262', u'000000', u'3', u'']
    contents = route_long_name,route_type,route_text_color,route_id,route_color,
route_desc,route_url,route_short_name
SOUTH MLK-MILLER,3,FFFFFF,6316,CE4093,,,09
SOUTH WASHINGTON-PLEASANT GROVE,3,FFFFFF,6233,838EBE,,,02
KALAMAZOO-FRANDOR,3,FFFFFF,6322,D49FBD,,,15
DOWNTOWN LANSING-MERIDIAN MALL,3,FFFFFF,6232,0000FF,,,01
EAST LANSING-LAKE LANSING ROAD,3,FFFFFF,6328,68B153,,,24
HASLETT-MERIDIAN MALL-MSU,3,FFFFFF,6326,671213,,,22
NORTH HARRISON,3,FFFFFF,6329,522A80,,,25
NORTH LANSING-TURNER,3,FFFFFF,6317,4...
    valid_cols = ['route_id', 'route_short_name', 'route_long_name', 'route_type
', 'agency_id', 'route_desc', 'route_url', 'route_color', 'route_text_color']
    line_num = 12
    unknown_cols = set([])
    self = <transitfeed.loader.Loader instance at 0x02729350>
    header_occurrences = defaultdict(<function <lambda> at 0x0273BB30>, {'route_
long_name': 1, 'route_type': 1, 'route_text_color': 1, 'route_id': 1, 'route_col
or': 1, 'route_desc': 1, 'route_url': 1, 'route_short_name': 1})
    file_name = routes.txt
    reader = <_csv.reader object at 0x0273BA70>
    header_context = ('routes.txt', 1, ['', '', '', '', '', '', '', ''], ['route
_long_name', 'route_type', 'route_text_color', 'route_id', 'route_color', 'route
_desc', 'route_url', 'route_short_name'])
    raw_header = ['route_long_name', 'route_type', 'route_text_color', 'route_id
', 'route_color', 'route_desc', 'route_url', 'route_short_name']
    valid_columns = [0, 1, 2, 3, 4, 5, 6, 7]
    name = route_short_name
    count = 1
    d = {'route_long_name': u"WILLIAMSTON-WEBBERVILLE,3,3,,6264,834392,3,,48D'TO
WN LANSING - MERIDIAN MALL", 'route_type': u'3', 'route_text_color': u'3', 'rout
e_id': u'', 'route_color': u'6262', 'route_desc': u'000000', 'route_url': u'3',
'route_short_name': u''}
    i = 7
    h = route_short_name
    required = ['route_id', 'route_short_name', 'route_long_name', 'route_type']

    h_stripped = route_short_name
    table_name = routes
    deprecated = []
    eol_checker = <transitfeed.util.EndOfLineChecker instance at 0x037EE670>

Error: newline inside string

------------------------------------------------------------

Yikes, the program threw an unexpected exception!

Hopefully a complete report has been saved to transitfeedcrash.txt,
though if you are seeing this message we've already disappointed you once
today. Please include the report in a new issue at
http://code.google.com/p/googletransitdatafeed/issues/entry
or an email to the public group googletransitdatafeed@googlegroups.com. Sorry!

Press enter to continue...

What version of the product are you using? On what operating system?

transitfeed version 1.2.12
Windows Server 2008 R2

Please provide any additional information below.

Original issue reported on code.google.com by catait48...@gmail.com on 12 Nov 2012 at 3:42

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by bdfer...@google.com on 26 Sep 2014 at 4:51

GoogleCodeExporter commented 8 years ago
Moved to https://github.com/google/transitfeed/issues/351

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