Skip to content

ModuleNotFoundError: No module named 'aircan.dependencies.google_cloud' #101

@leomrocha

Description

@leomrocha

When starting AirFlow or checking dags with airflow list_dags in a clean Python 3.7 environment the following trace appears:

{dagbag.py:239} ERROR - Failed to import: /home/leo/Freelancing/Datopian/aircan/aircan/dags/api_ckan_import_to_bq.py
Traceback (most recent call last):
  File "/home/leo/.pyenv/versions/3.7.0/lib/python3.7/site-packages/airflow/models/dagbag.py", line 236, in process_file
    m = imp.load_source(mod_name, filepath)
  File "/home/leo/.pyenv/versions/3.7.0/lib/python3.7/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/leo/Freelancing/Datopian/aircan/aircan/dags/api_ckan_import_to_bq.py", line 9, in <module>
    from aircan.dependencies.google_cloud.bigquery_handler import bq_import_csv
ModuleNotFoundError: No module named 'aircan.dependencies.google_cloud'

Steps to reproduce:

Set a clean python 3.7 environment
Install Airflow Dependencies
Install Airflow
Install aircan dependencies
Install aircan from repo (python setup.py install)
Set environment variables and airflow configurations as per this repository's README.md file
Execute airflow list_dags or launch airflow webserver

Desired behaviour:

aircan.dependencies.google_cloud should be installed correctly when installing aircan and no error message should appear.

@cuducos @hannelita

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions