Routeserver (or RTree?) problems

189 views
Skip to first unread message

Jacqueline

unread,
Apr 23, 2011, 2:16:52 PM4/23/11
to Graphserver
Hi,

I'm having problems producing a route narrative. Returning a raw route
narrative works fine, but when I run
http://localhost:82/path?origin=%22osm-92011649%22&dest=%22sta-3803%22&currtime=1260839444
from the quick start guide, I get this error:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/
python2.7/site-packages/servable-2009c-py2.7.egg/servable.py", line
107, in myapp
rr = xstr( pfunc(self,**args) )
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/
python2.7/site-packages/graphserver-0.1-py2.7.egg/graphserver/ext/
routeserver/routeserver.py", line 143, in path
narrative = list(postprocess_path(vertices, edges,
self.vertex_events, self.edge_events))
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/
python2.7/site-packages/graphserver-0.1-py2.7.egg/graphserver/ext/
routeserver/routeserver.py", line 52, in postprocess_path
event = handler( edge1, vertex1, edge2, context=context )
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/
python2.7/site-packages/graphserver-0.1-py2.7.egg/graphserver/ext/
routeserver/events.py", line 281, in __call__
street_name2 = self.osmdb.way( osm_way2 ).tags.get('name',
"unnamed")
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/
python2.7/site-packages/graphserver-0.1-py2.7.egg/graphserver/ext/osm/
osmdb.py", line 389, in way
c.execute( "SELECT id, tags, nds FROM ways WHERE id = ?", (id,) )
OperationalError: no such table: ways

I took a look at both the OSMDB and the GDB to see what might have
gone wrong. It looks like there is a ways table in the OSMDB, but it
doesn't get imported into the GDB. However, the build/import/link
steps don't return errors, so it's unclear what's going wrong.

As well, when I first attempt to start gs_routeserver, I get this
error:
File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/
site-packages/Rtree-0.6.0-py2.7.egg/rtree/core.py", line 25, in
check_void
raise RTreeError(msg)
rtree.core.RTreeError: Error in "Index_Create": Spatial Index Error:
IllegalStateException: SpatialIndex::DiskStorageManager: Failed
reading pageSize.

I've successfully used Graphserver in the past, but after a reinstall
I've kept getting these errors. I'm running Python 2.7 (the 32-bit
Enthought distribution) on OS X 10.5.8. I've downgraded Graphserver
from 1.0, and it hasn't made a difference. These errors occur not only
with the Redding example, but with a couple other cities/transit
agencies I've tried looking at (Guelph Transit, Grand River Transit).
Any thoughts?

Glen

unread,
May 19, 2011, 1:31:51 AM5/19/11
to Graphserver
Did you manage to find a fix to this? I'm experiencing the same set of
issues but I'm on CentOS 5.5 running Python 2.6.

Thanks

Glen

On Apr 24, 3:16 am, Jacqueline <jaxmc...@gmail.com> wrote:
> Hi,
>
> I'm having problems producing a route narrative. Returning a raw route
> narrative works fine, but when I runhttp://localhost:82/path?origin=%22osm-92011649%22&dest=%22sta-3803%2...

Jacqueline

unread,
May 29, 2011, 8:18:13 AM5/29/11
to Graphserver
It was a simple fix -- check that the names of your OSMDB and GTFSDB
are correct in your handlers.yaml file.

Best,
Jacqueline
Reply all
Reply to author
Forward
0 new messages