https://dagster.io/ logo
#integration-dbt
Title
# integration-dbt
p

Punyawee Chananan

12/16/2022, 2:00 AM
Hello, I was following this tutorial every step and encounter weird error. Every module install i try to pip install on my local also it should be no problem not sure what is going on.
Copy code
dagster._core.errors.DagsterImportError: Encountered ImportError: `cannot import name 'duckdb_pandas_io_manager' from 'dagster_duckdb_pandas' (C:\Users\Punyawee\AppData\Local\Programs\Python\Python39\lib\site-packages\dagster_duckdb_pandas\__init__.py)` while importing module tutorial_dbt_dagster. Local modules were resolved using the working directory `D:\Playground\testest\my-dagster-project\tutorial_finished`. If another working directory should be used, please explicitly specify the appropriate path using the `-d` or `--working-directory` for CLI based targets or the `working_directory` configuration option for workspace targets.
  File "C:\Users\Punyawee\AppData\Local\Programs\Python\Python39\lib\site-packages\dagster\_grpc\server.py", line 230, in __init__
    self._loaded_repositories: Optional[LoadedRepositories] = LoadedRepositories(
  File "C:\Users\Punyawee\AppData\Local\Programs\Python\Python39\lib\site-packages\dagster\_grpc\server.py", line 104, in __init__
    loadable_targets = get_loadable_targets(
  File "C:\Users\Punyawee\AppData\Local\Programs\Python\Python39\lib\site-packages\dagster\_grpc\utils.py", line 53, in get_loadable_targets
    else loadable_targets_from_python_package(package_name, working_directory)
  File "C:\Users\Punyawee\AppData\Local\Programs\Python\Python39\lib\site-packages\dagster\_core\workspace\autodiscovery.py", line 49, in loadable_targets_from_python_package
    module = load_python_module(
  File "C:\Users\Punyawee\AppData\Local\Programs\Python\Python39\lib\site-packages\dagster\_core\code_pointer.py", line 141, in load_python_module
    raise DagsterImportError(
The above exception was caused by the following exception:
ImportError: cannot import name 'duckdb_pandas_io_manager' from 'dagster_duckdb_pandas' (C:\Users\Punyawee\AppData\Local\Programs\Python\Python39\lib\site-packages\dagster_duckdb_pandas\__init__.py)
  File "C:\Users\Punyawee\AppData\Local\Programs\Python\Python39\lib\site-packages\dagster\_core\code_pointer.py", line 136, in load_python_module
    return importlib.import_module(module_name)
  File "C:\Users\Punyawee\AppData\Local\Programs\Python\Python39\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "D:\Playground\testest\my-dagster-project\tutorial_finished\tutorial_dbt_dagster\__init__.py", line 1, in <module>
    from .repository import tutorial_dbt_dagster
  File "D:\Playground\testest\my-dagster-project\tutorial_finished\tutorial_dbt_dagster\repository.py", line 4, in <module>
    from dagster_duckdb_pandas import duckdb_pandas_io_manager
https://github.com/dagster-io/dagster/tree/master/examples/tutorial_dbt_dagster
5 Views