Skip to content

sqlalchemy: TypeError: cannot create weak reference to 'pyodbc.Cursor' object #460

@jomasti

Description

@jomasti

Describe your environment
See the repo provided below for a simple reproduction environment. I was using Python 3.8.8 when running it locally.

Steps to reproduce
Provided a reproduction repo: https://github.com/jomasti/opentelemetry-instrumentation-sqlalchemy-pyodbc-bug

What is the expected behavior?
I expected the query to work successfully when the engine is instrumented. The code in the repo above works fine with 0.18b1.

What is the actual behavior?
Ran into TypeError: cannot create weak reference to 'pyodbc.Cursor' object.

Additional context
#315 appears to be the culprit.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions