Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-2668

Missing cryptogrpahy dependency on airflow initdb call

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.10.0
    • Component/s: dependencies
    • Labels:
      None

      Description

      The cryptography packages looks to be required now for `airflow initdb` calls on a fresh install from master as of commit 702a57ec5a96d159105c4f5ca76ddd2229eb2f44.

      $ airflow initdb
      Traceback (most recent call last):
      File "/home/n/git/airflow_testing/env/bin/airflow", line 6, in <module>
      exec(compile(open(_file).read(), __file_, 'exec'))
      File "/home/n/git/incubator-airflow/airflow/bin/airflow", line 21, in <module>
      from airflow import configuration
      File "/home/n/git/incubator-airflow/airflow/_init_.py", line 37, in <module>
      from airflow.models import DAG
      File "/home/n/git/incubator-airflow/airflow/models.py", line 31, in <module>
      import cryptography
      ImportError: No module named cryptography

       

      Steps to reproduce:

      git clone https://github.com/apache/incubator-airflow
      virtualenv env
      . env/bin/activate
      pip install -e .[s3]
      airflow initdb
      

        Attachments

          Activity

            People

            • Assignee:
              ash Ash Berlin-Taylor
              Reporter:
              npezolano Nicholas Pezolano
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: