You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/06/09 03:58:31 UTC

[GitHub] [airflow] keep-forward opened a new issue #16346: What Can I Do If Error AttributeError: module 'airflow' has no attribute 'startswith' Is Reported After the command 'airflow db init' is executed

keep-forward opened a new issue #16346:
URL: https://github.com/apache/airflow/issues/16346


   The procedure is as follows:
   1. export AIRFLOW_HOME=~/airflow
   2. pip install apache-airflow
   3. airflow db init
   the error is as follows:
   Traceback (most recent call last):
     File "~/python3.6/site-packages/pep562/__init__.py", line 238, in __getattr__
       return getattr(self._module, name)
   AttributeError: module 'airflow' has no attribute 'startswith'
   
   Ask for help. Thank you.


-- 
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:
users@infra.apache.org



[GitHub] [airflow] keep-forward commented on issue #16346: What Can I Do If Error AttributeError: module 'airflow' has no attribute 'startswith' Is Reported After the command 'airflow db init' is executed

Posted by GitBox <gi...@apache.org>.
keep-forward commented on issue #16346:
URL: https://github.com/apache/airflow/issues/16346#issuecomment-858343280


   I switched a new environment and installed airflow, now it works. Thank you for your answer.


-- 
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:
users@infra.apache.org



[GitHub] [airflow] keep-forward closed issue #16346: What Can I Do If Error AttributeError: module 'airflow' has no attribute 'startswith' Is Reported After the command 'airflow db init' is executed

Posted by GitBox <gi...@apache.org>.
keep-forward closed issue #16346:
URL: https://github.com/apache/airflow/issues/16346


   


-- 
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:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #16346: What Can I Do If Error AttributeError: module 'airflow' has no attribute 'startswith' Is Reported After the command 'airflow db init' is executed

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #16346:
URL: https://github.com/apache/airflow/issues/16346#issuecomment-857352592


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
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:
users@infra.apache.org



[GitHub] [airflow] kaxil commented on issue #16346: What Can I Do If Error AttributeError: module 'airflow' has no attribute 'startswith' Is Reported After the command 'airflow db init' is executed

Posted by GitBox <gi...@apache.org>.
kaxil commented on issue #16346:
URL: https://github.com/apache/airflow/issues/16346#issuecomment-857594505


   What version of `pep562` are you using?
   
   ```
   pip show pep562
   ```
   
   Using the following command to install `apache-airflow`:
   
   ```shell
   AIRFLOW_VERSION=2.1.0
   PYTHON_VERSION="$(python --version | cut -d " " -f 2 | cut -d "." -f 1-2)"
   CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
   pip install "apache-airflow[async,postgres,google]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
   ```


-- 
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:
users@infra.apache.org



[GitHub] [airflow] keep-forward commented on issue #16346: What Can I Do If Error AttributeError: module 'airflow' has no attribute 'startswith' Is Reported After the command 'airflow db init' is executed

Posted by GitBox <gi...@apache.org>.
keep-forward commented on issue #16346:
URL: https://github.com/apache/airflow/issues/16346#issuecomment-858340013


    version of pep562 is 1.0


-- 
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:
users@infra.apache.org