Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gs_import_osm not tolerant to preexisting indices #14

Open
msoulier opened this issue Apr 27, 2010 · 0 comments
Open

gs_import_osm not tolerant to preexisting indices #14

msoulier opened this issue Apr 27, 2010 · 0 comments

Comments

@msoulier
Copy link

Following the instructions at http://bmander.github.com/graphserver/ I am trying to integrate GTFS and OSM data.

When running gs_import_osm on my osmdb file, it works for a while and then fails.

100201/103282 edges loaded
101234/103282 edges loaded
102267/103282 edges loaded
103300/103282 edges loaded
indexing vertices...
Traceback (most recent call last):
  File "/home/msoulier/envs/pathway/bin/gs_import_osm", line 8, in 
    load_entry_point('graphserver==0.1', 'console_scripts', 'gs_import_osm')()
  File "/home/msoulier/envs/pathway/lib/python2.6/site-packages/graphserver-0.1-py2.6.egg/graphserver/compiler/gdb_import_osm.py", line 87, in main
    gdb_import_osm(gdb, osmdb, options.namespace, slogs);
  File "/home/msoulier/envs/pathway/lib/python2.6/site-packages/graphserver-0.1-py2.6.egg/graphserver/compiler/gdb_import_osm.py", line 56, in gdb_import_osm
    gdb.index()
  File "/home/msoulier/envs/pathway/lib/python2.6/site-packages/graphserver-0.1-py2.6.egg/graphserver/graphdb.py", line 143, in index
    c.execute( "CREATE INDEX vertices_label ON vertices (label)" )
sqlite3.OperationalError: index vertices_label already exists

Seems like that exception should just be caught. Ok, it exists. Move on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant