Skip to content

'str' object has no attribute '_execute_on_connection' #102

Open
@posidonius

Description

@posidonius

A few days ago I started getting these error messages when trying to run sqldf :

AttributeError: 'str' object has no attribute '_execute_on_connection'

sqlalchemy.exc.ObjectNotExecutableError: Not an executable object

The error message prints out the query string I'm trying to use. It doesn't want to execute the query because it's a string, but that's how I've been using sqldf now for over a year.

There's nothing wrong with the query itself. And I didn't change any code as far as I know, so I'm not sure why this broke.

I tried upgrading some packages and that didn't help. Versions installed:

Python 3.10.9
pandasql==0.7.3
 - pandas [required: Any, installed: 1.5.3]
 - sqlalchemy [required: Any, installed: 2.0.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions