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

   ### Apache Airflow version
   
   3.0.6
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   Hi dear colleagues, I was setting up my development environment following 
the contributor guidelines when I stumbled upon a step that is not working due 
to recent changes in recommended tools using UV. The development helper script 
at scripts/tools/initialize_virtualenv.py probably needs to be updated.
   
   - Python version: 3.12
   
   ### What you think should happen instead?
   
   The script should install dev dependencies without errors using uv sync 
--group devel
   
   ### How to reproduce
   
   1. Clone main branch
   2. Follow all steps on `contributing-docs/03_contributors_quick_start.rst` 
until line 670
   3. Run that line `./scripts/tools/initialize_virtualenv.py`
   
   ### Operating System
   
   Ubuntu 24.04.3 LTS
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   Occurs everytime
   
   ```bash
   <details>
   <summary>
   <user>@<host>:~/airflow$ sudo apt-get install sqlite3 libsqlite3-dev 
default-libmysqlclient-dev postgresql
   </summary>
   Reading package lists... Done
   Building dependency tree... Done
   Reading state information... Done
   sqlite3 is already the newest version (3.45.1-1ubuntu2.4).
   libsqlite3-dev is already the newest version (3.45.1-1ubuntu2.4).
   default-libmysqlclient-dev is already the newest version (1.1.0build1).
   postgresql is already the newest version (16+257build1.1).
   0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
   
   <user>@<host>:~/airflow$ ./scripts/tools/initialize_virtualenv.py
   Using CPython 3.12.3 interpreter at: /usr/bin/python3.12
   Creating virtual environment at: .venv
   ✔ A virtual environment already exists at `.venv`. Do you want to replace 
it? · yes
   Activate with: source .venv/bin/activate
   Initializing environment...
   This will remove the folder /home/<user>/airflow-home and reset all the 
databases!
   Are you sure? (y/N/q)y
   
   Wiping and recreating /home/<user>/airflow-home
   
   Installing requirements.
   
   Airflow is installed with "devel" extra.
   
   
----------------------------------------------------------------------------------------
   
   IMPORTANT NOTE ABOUT EXTRAS !!!
   
   You can specify extras as single coma-separated parameter to install. For 
example
   
   * devel - to have all development dependencies required to test core.
   * devel-* - to selectively install tools that we use to run scripts, tests, 
static checks etc.
   * google,amazon,microsoft_azure - to install dependencies needed at runtime 
by specified providers
   * devel-all-dbs - to have all development dependencies required for all DB 
providers
   * devel-all - to have all development dependencies required for all providers
   
   Note that "devel-all" installs all possible dependencies and we have > 600 
of them,
   which might not be possible to install cleanly on your host because of lack 
of
   system packages. It's easier to install extras one-by-one as needed.
   
   
----------------------------------------------------------------------------------------
   
   
   
   Running command: 
      uv sync --extra devel
   
   Resolved 875 packages in 264ms
   <summary>
   error: Extra `devel` is not defined in the project's `optional-dependencies` 
table
   To solve persisting issues with the installation, you might need the 
prerequisites installed on your system.
    Try running the command below and rerun virtualenv installation
   
   sudo apt install build-essential python3-dev libsqlite3-dev openssl sqlite 
default-libmysqlclient-dev libmysqlclient-dev postgresql
   </summary>
   </details>
   ```
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to