I'm on Windows and I've tried the following with Python 3.10, 3.11, and 3.12.
I run the following simple script:
print("before import")
import airbyte as ab
print("after import")
Running from the terminal or command line, it never gets to "after import" and doesn't throw any errors. If I run using the debugger in VS Code it runs just fine.
If I run airbyte\contants.py I get:
ImportError: cannot import name 'GenericAlias' from partially initialized module 'types' (most likely due to a circular import) (c:\Python\airbyte.venv\Lib\site-packages\airbyte\types.py)
Similarly with airbyte\caches\duckdb.py:
ImportError: cannot import name 'DuckDBEngineWarning' from partially initialized module 'duckdb_engine' (most likely due to a circular import) (c:\Python\airbyte.venv\lib\site-packages\duckdb_engine_init_.py)
My guess is the debugger runs slow enough to avoid the circular imports. Any tips on how to get this to work without digging into the library?
I'm on Windows and I've tried the following with Python 3.10, 3.11, and 3.12.
I run the following simple script:
Running from the terminal or command line, it never gets to "after import" and doesn't throw any errors. If I run using the debugger in VS Code it runs just fine.
If I run
airbyte\contants.pyI get:Similarly with
airbyte\caches\duckdb.py:My guess is the debugger runs slow enough to avoid the circular imports. Any tips on how to get this to work without digging into the library?