Skip to content

import airbyte not working on Windows #715

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions