GitHub user potiuk added a comment to the discussion: Error on Moving from 
Sequential to LocalExecutor

> Thanks for you advice, I am using macOS so 3. might be the issue. 1. and 2. 
> should be fine since I installed Python via Homebrew and Airflow via PyPI 
> using the constraints file. I'll try on a Linux system.

Looking at the paths - you ARE using the built-in Python

`/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/spawn.py"`

This - very likely - is the system Python.

I guess even if you have installed Airflow with brew it might not be used by 
default. On top of it you are not using virtualenv - which is generaly a bad 
idea, - installng application in "python" without creating venv is generally 
very strongly discourage by the `pip` team and anyone from packaging team. It 
causes a LOT of problems when you mix system dependencies and `pip` installed 
packages. Latest version of `pip` even does not allow you to do it and you need 
to specigy `--allow-breaking-system-packages` or smth like that flag when you 
try to do it.

I strongly recommend using `uv` including `uv python`  and looking at setting 
up venv with it. It's lightning fast (comparing to brew managed python) and it 
has nice workflow with venv management



GitHub link: 
https://github.com/apache/airflow/discussions/44243#discussioncomment-11606945

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to