- changed status to open
TypeError with MS SQL Server and django-pyodbc-azure
Issue #83
resolved
I'm new to python, but when trying to install Postman for the first time, using django-pyodbc, I received the following error (full log attached):
Exception Value:
super(type, obj): obj must be an instance or subtype of type
Exception Location: C:\Projects\OnlineCommunities\env\lib\site-packages\sql_server\pyodbc\compiler.py in compile, line 213
The solution I found was to change the class Proxy in file query.py, from this:
class Proxy(object):
to this:
from django.db.models.sql.compiler import SQLCompiler
class Proxy(SQLCompiler):
Comments (5)
-
repo owner -
repo owner - changed title to TypeError with MS SQL Server and django-pyodbc-azure
-
assigned issue to
-
repo owner Instead of your solution, please try this one:
class CompilerProxy(Proxy, SQLCompiler):
, and confirm that it works as well. -
reporter @psam it also works. Thank you!
-
repo owner - changed status to resolved
Fixed in release 3.4.0.
- Log in to comment
I confirm the issue, in relation with a MS SQL Server backend. Analysis is in progress.