Eric Sexton
07/28/2023, 7:17 PMMarvin
07/28/2023, 7:18 PMTypeError
that's being raised when Python tries to check if one class is a subclass of another. The issubclass()
function is complaining because its first argument is not a class.
This error is coming from the pydantic
package, which is a data validation library. It's trying to perform some type analysis on your SnowflakeCredentials
class, which is a subclass of Block
.
The error might be due to a circular import or it could be that the class Block
is not yet fully defined when SnowflakeCredentials
is being imported. It's also possible that there's a problem with the Block
class itself.
Without more information about your code and its structure, it's hard to say exactly what the problem is. But I'd suggest starting by checking the import statements in your prefect_snowflake/credentials.py
and prefect_snowflake/__init__.py
files. Make sure there are no circular imports and that all classes are fully defined before they're imported.
If that doesn't help, you might want to look into how Block
is defined and make sure there's nothing unusual there that could be causing this issue.
Remember, Python is a dynamic language and things like the order of import statements can sometimes have unexpected effects. So, keep calm and debug on.Nate
07/28/2023, 7:19 PMEric Sexton
07/28/2023, 7:30 PMNate
07/28/2023, 8:25 PMEric Sexton
07/28/2023, 8:42 PMNate
08/01/2023, 8:48 PM