Sadless74 / googletransitdatafeed

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

Validation error/FeedValidator: Crash report "float is required" #222

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run FV 1.2.5
2.
3.

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

What version of the product are you using? On what operating system?
FV 1.2.5; windows XP & Chrome (which as crashed a few times, too)

Please provide any additional information below.

Original issue reported on code.google.com by action...@gmail.com on 11 Feb 2010 at 6:29

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the report. It looks like you have a bad stop_lat in 
    stop = <Stop [('stop_id', u'1555'), ('stop_lon', -122.760525), ('stop_name', 
u'Lawrence and Tyler (Community Center) ')....]>

By the way, if you run the feed validator with the command line option
--output=CONSOLE
it will stream problems to the console so you can see the problems it finds 
before 
crashing. This will help you work around these kinds of problems. But please 
continue 
to mail crash logs so we can fix them.

Here are the key points from the backtrace:
File "transitfeed\_transitfeed.pyc", line 3793, in Validate
File "transitfeed\_transitfeed.pyc", line 1958, in ValidateChildren
    stop = <Stop [('location_type', 0), ('parent_station', u''), ('stop_code', u''), 
('stop_desc', u''), ('stop_id', u'1555'), ('stop_lon', -122.760525), 
('stop_name', 
u'Lawrence and Tyler (Community Center) '), ('stop_url', u''), ('zone_id', 
u'1')]>

File "transitfeed\_transitfeed.pyc", line 722, in ApproximateDistance
    degree_lng2 = -122.781426
    degree_lng1 = -122.760525
    degree_lat1 = None
    degree_lat2 = 48.108835

TypeError: a float is required

Original comment by tom.brow...@gmail.com on 12 Feb 2010 at 7:14

GoogleCodeExporter commented 9 years ago
if helpful another crash report on float error, with Tom's hints above I found 
the offending data & resolved. It was invisible character in the feed. m

Original comment by view...@gmail.com on 27 Sep 2010 at 4:59

Attachments:

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

Original comment by tom.brow...@gmail.com on 7 Mar 2011 at 3:19

GoogleCodeExporter commented 9 years ago
float crash in 1.2.7

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.7

File "feedvalidator.py", line 641, in main
    feed = C:\Users\toy\Documents\GT_Data\GT_all data_111910\Lodi\feed\stop_times.zip
    options = {'check_duplicate_trips': False, 'manual_entry': True, 'extension': None, 'error_types_ignore_list': None, 'memory_db': False, 'service_gap_interval': 13, 'latest_version': '', 'limit_per_type': 5, 'performance': None, 'output': 'validation-results.html'}

File "feedvalidator.py", line 736, in RunValidationFromOptions
    feed = C:\Users\toy\Documents\GT_Data\GT_all data_111910\Lodi\feed\stop_times.zip
    options = {'check_duplicate_trips': False, 'manual_entry': True, 'extension': None, 'error_types_ignore_list': None, 'memory_db': False, 'service_gap_interval': 13, 'latest_version': '', 'limit_per_type': 5, 'performance': None, 'output': 'validation-results.html'}

File "feedvalidator.py", line 499, in RunValidationOutputFromOptions
    feed = C:\Users\toy\Documents\GT_Data\GT_all data_111910\Lodi\feed\stop_times.zip
    options = {'check_duplicate_trips': False, 'manual_entry': True, 'extension': None, 'error_types_ignore_list': None, 'memory_db': False, 'service_gap_interval': 13, 'latest_version': '', 'limit_per_type': 5, 'performance': None, 'output': 'validation-results.html'}

File "feedvalidator.py", line 506, in RunValidationOutputToFilename
    feed = C:\Users\toy\Documents\GT_Data\GT_all data_111910\Lodi\feed\stop_times.zip
    output_file = <open file 'validation-results.html', mode 'w' at 0x024DB9C0>
    options = {'check_duplicate_trips': False, 'manual_entry': True, 'extension': None, 'error_types_ignore_list': None, 'memory_db': False, 'service_gap_interval': 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 = C:\Users\toy\Documents\GT_Data\GT_all data_111910\Lodi\feed\stop_times.zip
    accumulator = <__main__.HTMLCountingProblemAccumulator object at 0x024F0AB0>
    output_file = <open file 'validation-results.html', mode 'w' at 0x024DB9C0>
    problems = <transitfeed.problems.ProblemReporter object at 0x024F06B0>
    options = {'check_duplicate_trips': False, 'manual_entry': True, 'extension': None, 'error_types_ignore_list': None, 'memory_db': False, 'service_gap_interval': 13, 'latest_version': '', 'limit_per_type': 5, 'performance': None, 'output': 'validation-results.html'}

File "feedvalidator.py", line 586, in RunValidation
    feed = C:\Users\toy\Documents\GT_Data\GT_all data_111910\Lodi\feed\stop_times.zip
    schedule = <transitfeed.schedule.Schedule object at 0x024F0E70>
    problems = <transitfeed.problems.ProblemReporter object at 0x024F06B0>
    loader = <transitfeed.loader.Loader instance at 0x02501D28>
    extension_module = <module 'transitfeed' from 'C:\Users\toy\Desktop\a\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_interval': 13, 'latest_version': '', 'limit_per_type': 5, 'performance': None, 'output': 'validation-results.html'}
    other_problems_string = None
    gtfs_factory = <transitfeed.gtfsfactory.GtfsFactory object at 0x024F0E30>

File "transitfeed\schedule.pyc", line 1228, in Validate
    problems = <transitfeed.problems.ProblemReporter object at 0x024F06B0>
    self = <transitfeed.schedule.Schedule object at 0x024F0E70>
    service_gap_interval = 13
    validate_children = False
    today = None

File "transitfeed\schedule.pyc", line 1174, in ValidateTripStopTimes
    self = <transitfeed.schedule.Schedule object at 0x024F0E70>
    problems = <transitfeed.problems.ProblemReporter object at 0x024F06B0>
    trip = <Trip [('block_id', u''), ('direction_id', u''), ('route_id', u'R33'), ('service_id', u'ss'), ('shape_id', u'rt33'), ('trip_headsign', u''), ('trip_id', u'R33_T02')]>

File "transitfeed\trip.pyc", line 676, in ValidateChildren
    self = <Trip [('block_id', u''), ('direction_id', u''), ('route_id', u'R33'), ('service_id', u'ss'), ('shape_id', u'rt33'), ('trip_headsign', u''), ('trip_id', u'R33_T02')]>
    stoptimes = [<transitfeed.stoptime.StopTime object at 0x025577B0>, <transitfeed.stoptime.StopTime object at 0x025E7BB0>, <transitfeed.stoptime.StopTime object at 0x025E7BF0>, <transitfeed.stoptime.StopTime object at 0x025E7C70>, <transitfeed.stoptime.StopTime object at 0x025E7CB0>, <transitfeed.stoptime.StopTime object at 0x025E7CF0>, <transitfeed.stoptime.StopTime object at 0x025E7D30>, <transitfeed.stoptime.StopTime object at 0x025E7D70>, <transitfeed.stoptime.StopTime object at 0x025E7E70>, <transitfeed...
    problems = <transitfeed.problems.ProblemReporter object at 0x024F06B0>

File "transitfeed\trip.pyc", line 646, in ValidateDistanceFromStopToShape
    distance = 17.0506488412
    pt = (38.115549000000001, -121.300798, 5.6070000000000002)
    max_shape_dist = 15.463
    problems = <transitfeed.problems.ProblemReporter object at 0x024F06B0>
    self = <Trip [('block_id', u''), ('direction_id', u''), ('route_id', u'R33'), ('service_id', u'ss'), ('shape_id', u'rt33'), ('trip_headsign', u''), ('trip_id', u'R33_T02')]>
    stoptimes = [<transitfeed.stoptime.StopTime object at 0x025577B0>, <transitfeed.stoptime.StopTime object at 0x025E7BB0>, <transitfeed.stoptime.StopTime object at 0x025E7BF0>, <transitfeed.stoptime.StopTime object at 0x025E7C70>, <transitfeed.stoptime.StopTime object at 0x025E7CB0>, <transitfeed.stoptime.StopTime object at 0x025E7CF0>, <transitfeed.stoptime.StopTime object at 0x025E7D30>, <transitfeed.stoptime.StopTime object at 0x025E7D70>, <transitfeed.stoptime.StopTime object at 0x025E7E70>, <transitfeed...
    stop = <Stop [('line', u''), ('location_type', 0), ('parent_station', u''), ('stop_code', u''), ('stop_desc', u'Kettleman by Vintage'), ('stop_id', u'P1392'), ('stop_lat', None), ('stop_lon', 38.115668322700003), ('stop_name', u'Kettleman at Sylvan '), ('stop_url', u''), ('zone_id', u'-121.300793427')]>
    st = <transitfeed.stoptime.StopTime object at 0x025E7F30>
    shape = <Shape {'distance': [0.0, 0.10199999999999999, 0.28999999999999998, 0.32500000000000001, 0.34699999999999998, 0.36899999999999999, 0.65200000000000002, 0.73499999999999999, 0.749, 0.95099999999999996, 1.0600000000000001, 1.337, 1.5309999999999999, 1.7729999999999999, 1.8899999999999999, 1.944, 2.202, 2.5350000000000001, 2.9329999999999998, 3.3439999999999999, 3.472, 3.7829999999999999, 4.048, 4.4349999999999996, 4.4950000000000001, 4.7220000000000004, 5.0890000000000004, 5.2599999999999998, 5.6...

File "transitfeed\util.pyc", line 429, in ApproximateDistance
    degree_lng2 = -121.300798
    degree_lng1 = 38.1156683227
    degree_lat1 = None
    degree_lat2 = 38.115549

TypeError: a float is required

Original comment by view...@gmail.com on 23 May 2011 at 5:04

GoogleCodeExporter commented 9 years ago

Original comment by n...@google.com on 23 May 2011 at 11:31

GoogleCodeExporter commented 9 years ago
bug fixed in http://code.google.com/p/googletransitdatafeed/source/detail?r=1544

Original comment by n...@google.com on 31 May 2011 at 10:38