rkarish opened a new issue, #27338:
URL: https://github.com/apache/airflow/issues/27338

   ### Apache Airflow version
   
   main (development)
   
   ### What happened
   
   While setting up a local development environment I went to use the 
`scripts/tools/initialize_virtualenv.py ` script and received an exception. I 
believe this should be `os.path.exists(airflow_home)` instead.
   
   ```
   Traceback (most recent call last):
     File 
"/Users/rkarish/Projects/airflow/scripts/tools/initialize_virtualenv.py", line 
187, in <module>
       main()
     File 
"/Users/rkarish/Projects/airflow/scripts/tools/initialize_virtualenv.py", line 
142, in main
       clean_up_airflow_home(airflow_home_dir)
     File 
"/Users/rkarish/Projects/airflow/scripts/tools/initialize_virtualenv.py", line 
36, in clean_up_airflow_home
       if airflow_home.exists():
   AttributeError: 'str' object has no attribute 'exists'
   ```
   
   Also `LOCAL_VIRTUALENV.rst` has an incorrect path to this file.
   
   ### What you think should happen instead
   
   _No response_
   
   ### How to reproduce
   
   _No response_
   
   ### Operating System
   
   macOS 13.0
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   _No response_
   
   ### 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.apache.org

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

Reply via email to