You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Python 2.7.15
I looked at the stackoverflow, and found this answer: TypeError: super() argument 1 must be type, not classobj
As per the answers, super() and all subclass/superclass stuff only works with new-style classes. Old-style classes (also known as "classic" classes) are always of type classobj; new-style classes are of type type
To get rid of this error, we can use multiple inheritance as per the 2nd answer
So I changed the class definition of the class TDDataTypeConverter in data_type_converter.py as below, and it resolved the issue:
Hi Team,
I was trying to create SQLAlchemy engine as per below sample code.
Executing this statement gave me the following error:
I am using
Python 2.7.15
I looked at the stackoverflow, and found this answer: TypeError: super() argument 1 must be type, not classobj
As per the answers,
super()
and all subclass/superclass stuff only works with new-style classes. Old-style classes (also known as "classic" classes) are always of type classobj; new-style classes are of type typeTo get rid of this error, we can use multiple inheritance as per the 2nd answer
So I changed the class definition of the class
TDDataTypeConverter
indata_type_converter.py
as below, and it resolved the issue:So can you please integrate these changes to the code base, so no one faces any such issues with python 2.7?
Let me know if you need any further details.
Thank you,
Nishant
The text was updated successfully, but these errors were encountered: