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

sqlalchemy.exc.ObjectNotExecutableError: Not an executable object: 'SELECT * from orders' #1

Open
prameelareddi opened this issue Jul 12, 2023 · 0 comments

Comments

@prameelareddi
Copy link

[2023-07-12 15:04:09 +0530] [78652] [ERROR] Error handling request /api/data?q=SELECT+*+from+orders
Traceback (most recent call last):
File "/home/prameela/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1408, in execute
meth = statement._execute_on_connection
AttributeError: 'str' object has no attribute '_execute_on_connection'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/prameela/.local/lib/python3.10/site-packages/gunicorn/workers/sync.py", line 135, in handle
self.handle_request(listener, req, client, addr)
File "/home/prameela/.local/lib/python3.10/site-packages/gunicorn/workers/sync.py", line 176, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/home/prameela/.local/lib/python3.10/site-packages/falcon/api.py", line 244, in call
responder(req, resp, **params)
File "/home/prameela/PycharmProjects/text_to_chart/sql-chart/server.py", line 17, in on_get
result = conn.execute(sql)
File "/home/prameela/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1410, in execute
raise exc.ObjectNotExecutableError(statement) from err
sqlalchemy.exc.ObjectNotExecutableError: Not an executable object: 'SELECT * from orders'

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