fritz-astronomer commented on PR #58409:
URL: https://github.com/apache/airflow/pull/58409#issuecomment-3572485883

   `uv` does download an up-to-date python for you without a fuss, though 👍 
   So that'd help if the hypothetical user could **_at least_** do that.
   
   `uv` did make it really easy to run `airflowctl` on a brand-new windows VM 
without python or anything else, in only three commands:
   ```powershell
   C:\Users\Fritz>powershell -ExecutionPolicy ByPass -c "irm 
https://astral.sh/uv/install.ps1 | iex"    
   C:\Users\Fritz>uv tool install apache-airflow-ctl
   C:\Users\Fritz>airflowctl
   ```
   Though, we'll ignore for the moment that argparse appears to blow up on 
either windows, generally, or py3.14. 
   I'm sure there's other airflow-on-windows incompatibilities, to deal with - 
but that's not the specific point of this thought-thread
   
   ```logs
   C:\Users\Fritz>airflowctl
   Traceback (most recent call last):
     File "<frozen runpy>", line 198, in _run_module_as_main
     File "<frozen runpy>", line 88, in _run_code
     File "C:\Users\Fritz\.local\bin\airflowctl.exe\__main__.py", line 10, in 
<module>
       sys.exit(main())
                ~~~~^^
     File 
"C:\Users\Fritz\AppData\Roaming\uv\tools\apache-airflow-ctl\Lib\site-packages\airflowctl\ctl\cli_parser.py",
 line 161, in _add_action_command
       arg.add_to_parser(sub_proc)
       ~~~~~~~~~~~~~~~~~^^^^^^^^^^
     File 
"C:\Users\Fritz\AppData\Roaming\uv\tools\apache-airflow-ctl\Lib\site-packages\airflowctl\ctl\cli_config.py",
 line 155, in add_to_parser
       parser.add_argument(*self.flags, **self.kwargs)
       ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"C:\Users\Fritz\AppData\Roaming\uv\python\cpython-3.14.0-windows-x86_64-none\Lib\argparse.py",
 line 1538, in add_argument
       action = action_class(**kwargs)
   TypeError: BooleanOptionalAction.__init__() got an unexpected keyword 
argument 'type'
   ```
   I don't think `pyinstaller` would provide anything better, here. 
   It bundles python and all the deps into the `.exe`, but I don't think that 
fixes any windows-specific incompatibilities.


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