Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leomrocha opened this issue Nov 12, 2020 · 0 comments
Open

Comments

@leomrocha
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant