osm-wikidata icon indicating copy to clipboard operation
osm-wikidata copied to clipboard

sqlalchemy.exc.UnboundExecutionError: Could not locate a bind configured on mapper mapped class Place->place, SQL expression or this Session

Open heraclex12 opened this issue 4 years ago • 0 comments

URL: http://127.0.0.1:5000/search?q=dak+nong

Traceback (most recent call last): File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/flask_sockets.py", line 40, in call handler, values = adapter.match() File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/werkzeug/routing.py", line 1945, in match raise NotFound() werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception reraise(exc_type, exc_value, tb) File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise raise value File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request return self.view_functionsrule.endpoint File "/home/razent/sources/kiki/osm-wikidata/matcher/view.py", line 847, in search_results update_search_results(results) File "/home/razent/sources/kiki/osm-wikidata/matcher/view.py", line 791, in update_search_results osm_id=hit['osm_id']).one_or_none() File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3329, in one_or_none ret = list(self) File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3405, in iter return self._execute_and_instances(context) File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3427, in _execute_and_instances querycontext, self._connection_from_session, close_with_result=True File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3442, in _get_bind_args mapper=self._bind_mapper(), clause=querycontext.statement, **kw File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3420, in _connection_from_session conn = self.session.connection(**kw) File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 1128, in connection bind = self.get_bind(mapper, clause=clause, **kw) File "/home/razent/sources/kiki/osm-wikidata/venv/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 1551, in get_bind % (", ".join(context)) sqlalchemy.exc.UnboundExecutionError: Could not locate a bind configured on mapper mapped class Place->place, SQL expression or this Session

Hi,

I'm new in this project. Could you update the INSTALL.md file, I think my problem is the place table isn't exist.

Thanks!

heraclex12 avatar Apr 16 '20 08:04 heraclex12