-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Troubleshooting moved to the installation page (#12533)
- Loading branch information
Showing
2 changed files
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -228,29 +228,3 @@ If pausing or unpausing a dag fails for any reason, the dag toggle will | |
revert to its previous state and turn red. If you observe this behavior, | ||
try pausing the dag again, or check the console or server logs if the | ||
issue recurs. | ||
|
||
Why do I see error when importing or running airflow: ``Symbol not found: _Py_GetArgcArgv``? | ||
-------------------------------------------------------------------------------------------- | ||
|
||
If you are using a homebrew installed version of Python, this is generally caused by | ||
using python in ``/usr/local/opt/bin`` rather than the Frameworks installation (e.g. for ``python 3.7``: ``/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.7``). | ||
|
||
The crux of the issue is that a library Airflow depends on, ``setproctitle``, uses a non-public Python API | ||
which is not available from the standard installation ``/usr/local/opt/`` (which symlinks to a path under ``/usr/local/Cellar``). | ||
|
||
An easy fix is just to ensure you use a version of Python that has a dylib of the python library available. For example: | ||
|
||
.. code-block:: bash | ||
:linenos: | ||
# Note: these instructions are for python3.7 but can be loosely modified for other versions | ||
brew install [email protected] | ||
virtualenv -p /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.7/bin/python3 .toy-venv | ||
source .toy-venv/bin/activate | ||
pip install apache-airflow | ||
python | ||
>>> import setproctitle | ||
# Success! | ||
Alternatively, you can download and install Python directly from the [Python website](https://www.python.org/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,3 +159,32 @@ Docker image | |
'''''''''''' | ||
|
||
Airflow is also distributed as a Docker image (OCI Image). For more information, see: :doc:`production-deployment` | ||
|
||
Troubleshooting | ||
''''''''''''''' | ||
|
||
This section describes how to troubleshoot installation issues. | ||
|
||
``Symbol not found: _Py_GetArgcArgv`` | ||
""""""""""""""""""""""""""""""""""""" | ||
|
||
If you see ``Symbol not found: _Py_GetArgcArgv`` while starting or importing Airflow, this may mean that you are using an incompatible version of Python. | ||
For a homebrew installed version of Python, this is generally caused by using Python in ``/usr/local/opt/bin`` rather than the Frameworks installation (e.g. for ``python 3.7``: ``/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.7``). | ||
|
||
The crux of the issue is that a library Airflow depends on, ``setproctitle``, uses a non-public Python API | ||
which is not available from the standard installation ``/usr/local/opt/`` (which symlinks to a path under ``/usr/local/Cellar``). | ||
|
||
An easy fix is just to ensure you use a version of Python that has a dylib of the Python library available. For example: | ||
|
||
.. code-block:: bash | ||
# Note: these instructions are for python3.7 but can be loosely modified for other versions | ||
brew install [email protected] | ||
virtualenv -p /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.7/bin/python3 .toy-venv | ||
source .toy-venv/bin/activate | ||
pip install apache-airflow | ||
python | ||
>>> import setproctitle | ||
# Success! | ||
Alternatively, you can download and install Python directly from the `Python website <https://www.python.org/>`__. |