mamilov opened a new issue #8172: Cannot import DAG => Expected in: flat namespace URL: https://github.com/apache/airflow/issues/8172 **Apache Airflow version**: `1.10.9` **Environment**: Cloud provider or hardware configuration: Hardware: MacBook Pro 16-inch OS (e.g. from /etc/os-release): MacOS 10.15.2 Kernel (e.g. uname -a): Darwin Kernel Version 19.2.0 Install tools: Pyenv & Pipenv Others: None Database: PostgreSQL **What happened**: I cannot import DAG into my project. When running `from airflow import DAG` I get an error. **What you expected to happen**: The expected behavior is that I'm able to import the DAG. The error seems to come from the setproctitle lib. Just importing that with ` import setproctitle` throws the same error. **How to reproduce it**: Just import the DAG with `from airflow import DAG`. **Anything else we need to know**: How often does this problem occur? Every time Any relevant logs to include? Put them here in side a detail tag: <details><summary>airflow_import_dag_error.log</summary>Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/milov/.local/share/virtualenvs/dags-dwx8ai-u/lib/python3.7/site-packages/airflow/__init__.py", line 42, in <module> from airflow.models import DAG File "/Users/milov/.local/share/virtualenvs/dags-dwx8ai-u/lib/python3.7/site-packages/airflow/models/__init__.py", line 21, in <module> from airflow.models.baseoperator import BaseOperator, BaseOperatorLink # noqa: F401 File "/Users/milov/.local/share/virtualenvs/dags-dwx8ai-u/lib/python3.7/site-packages/airflow/models/baseoperator.py", line 43, in <module> from airflow.models.dag import DAG File "/Users/milov/.local/share/virtualenvs/dags-dwx8ai-u/lib/python3.7/site-packages/airflow/models/dag.py", line 46, in <module> from airflow.executors import LocalExecutor, get_default_executor File "/Users/milov/.local/share/virtualenvs/dags-dwx8ai-u/lib/python3.7/site-packages/airflow/executors/__init__.py", line 24, in <module> from airflow.executors.base_executor import BaseExecutor # noqa File "/Users/milov/.local/share/virtualenvs/dags-dwx8ai-u/lib/python3.7/site-packages/airflow/executors/base_executor.py", line 24, in <module> import airflow.utils.dag_processing File "/Users/milov/.local/share/virtualenvs/dags-dwx8ai-u/lib/python3.7/site-packages/airflow/utils/dag_processing.py", line 40, in <module> from setproctitle import setproctitle ImportError: dlopen(/Users/milov/.local/share/virtualenvs/dags-dwx8ai-u/lib/python3.7/site-packages/setproctitle.cpython-37m-darwin.so, 2): Symbol not found: _Py_GetArgcArgv Referenced from: /Users/milov/.local/share/virtualenvs/dags-dwx8ai-u/lib/python3.7/site-packages/setproctitle.cpython-37m-darwin.so Expected in: flat namespace in /Users/milov/.local/share/virtualenvs/dags-dwx8ai-u/lib/python3.7/site-packages/setproctitle.cpython-37m-darwin.so</details> <details><summary>setproctitle_import_error.log</summary>Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: dlopen(/Users/milov/.local/share/virtualenvs/dags-dwx8ai-u/lib/python3.7/site-packages/setproctitle.cpython-37m-darwin.so, 2): Symbol not found: _Py_GetArgcArgv Referenced from: /Users/milov/.local/share/virtualenvs/dags-dwx8ai-u/lib/python3.7/site-packages/setproctitle.cpython-37m-darwin.so Expected in: flat namespace in /Users/milov/.local/share/virtualenvs/dags-dwx8ai-u/lib/python3.7/site-packages/setproctitle.cpython-37m-darwin.so</details>
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
