Bowrna opened a new issue #19045:
URL: https://github.com/apache/airflow/issues/19045


   ### Describe the issue with documentation
   
   I am following the steps in this link to set up the breeze in my machine
   https://github.com/apache/airflow/blob/main/CONTRIBUTORS_QUICK_START.rst
   Under the title `Installing airflow in the local virtual environment 
airflow-env with breeze.`
   
   i am running the below command :
   ```$ ./breeze initialize-local-virtualenv --python 3.8```
   
   I get the following error:
   ```(airflow-env) sathishkannan@Sathishs-MacBook-Air airflow % ./breeze 
initialize-local-virtualenv --python 3.8
   Good version of docker 20.10.7.
   Python version: 3.8
   
   Initializing local virtualenv
   
   
      CI image.
   
      Branch name:             main
      Docker image:            ghcr.io/apache/airflow/main/ci/python3.8
   
   
      Airflow source version:  2.3.0.dev0
      Python version:          3.8
      Backend:                 mysql 5.7
   
   ./breeze: line 241: python3.8: command not found
   
   ERROR: Initializing local virtualenv only works when you have virtualenv 
activated
   
   Please enter your local virtualenv before (for example using 'pyenv 
activate' or 'workon')
   
   
   ERROR: The previous step completed with error. Please take a look at output 
above
   ```
   
   it says enter your local virtualenv. but i have my virtualenv activated. 
   
   ### How to solve the problem
   
   I solved this issue by following the instruction in the below link:
   
   https://github.com/pyenv/pyenv/issues/1948
   
   It's a pyenv related issue in macOS. I tried the fix mentioned in the above 
link, which asks to add the below commands in ~/.zshrc file.
   
   eval "$(pyenv init --path)"
   eval "$(pyenv init -)"
   
   Adding this information in docs, could be helpful for setting up the env in 
macOS
   
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to