Hello everyone,
I try to use a gtfs zip file
When I do th gs_import_gtfs_command to build the gdb file: I get this message:
constructing service calendar for timezone 'Europe/Paris'
Traceback (most recent call last):
File "/usr/local/bin/gs_import_gtfs", line 9, in <module>
load_entry_point('graphserver==1.0.0', 'console_scripts', 'gs_import_gtfs')()
File "/usr/local/lib/python2.7/dist-packages/graphserver-1.0.0-py2.7.egg/graphserver/compiler/gdb_import_gtf
s.py", line 268, in main
gdb_load_gtfsdb( gdb, options.namespace, gtfsdb, gdb.get_cursor(), agency_id, maxtrips=maxtrips, sample_da
te=options.sample_date)
File "/usr/local/lib/python2.7/dist-packages/graphserver-1.0.0-py2.7.egg/graphserver/compiler/gdb_import_gtf
s.py", line 221, in gdb_load_gtfsdb
compiler = GTFSGraphCompiler( gtfsdb, agency_namespace, agency_id, reporter )
File "/usr/local/lib/python2.7/dist-packages/graphserver-1.0.0-py2.7.egg/graphserver/compiler/gdb_import_gtf
s.py", line 24, in __init__
self.sc = service_calendar_from_timezone(gtfsdb, timezone_name )
File "/usr/local/lib/python2.7/dist-packages/graphserver-1.0.0-py2.7.egg/graphserver/compiler/tools.py", lin
e 41, in service_calendar_from_timezone
cal.add_period( TimeHelpers.datetime_to_unix(service_period_begins), TimeHelpers.datetime_to_unix(service_
period_ends), service_ids )
File "/usr/local/lib/python2.7/dist-packages/graphserver-1.0.0-py2.7.egg/graphserver/core.py", line 889, in
add_period
sp = ServicePeriod( begin_time, end_time, [self.get_service_id_int(x) for x in service_ids] )
File "/usr/local/lib/python2.7/dist-packages/graphserver-1.0.0-py2.7.egg/graphserver/core.py", line 800, in
__init__
n, sids = ServicePeriod._py2c_service_ids(service_ids)
File "/usr/local/lib/python2.7/dist-packages/graphserver-1.0.0-py2.7.egg/graphserver/core.py", line 856, in
_py2c_service_ids
asids = (ServiceIdType * ns)()
SystemError: ../Objects/dictobject.c:803: bad argument to internal function
Erreur de segmentation (core dumped)
Does anyone has an idea to fix that?
Ubuntu Quantal, python 2.7.