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

   ### Apache Airflow version
   
   3.0.2
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   I am encountering an error when running Airflow 3.0.2 with Python 3.9. The 
stack trace indicates that there is an issue with the resource module, 
specifically regarding the absence of the getrlimit attribute. Below is the 
detailed error message:
   
   [dag-processor]
   
   ```
   Traceback (most recent call last):
     File "/home/airflow/.local/bin/airflow", line 8, in <module>
       sys.exit(main())
     File 
"/home/airflow/.local/lib/python3.9/site-packages/airflow/__main__.py", line 
55, in main
       args.func(args)
     File 
"/home/airflow/.local/lib/python3.9/site-packages/airflow/cli/cli_config.py", 
line 47, in command
       func = import_string(import_path)
     File 
"/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/module_loading.py",
 line 39, in import_string
       module = import_module(module_path)
     File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in 
import_module
       return _bootstrap._gcd_import(name[level:], package, level)
     File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
     File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
     File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
     File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
     File "<frozen importlib._bootstrap_external>", line 850, in exec_module
     File "<frozen importlib._bootstrap>", line 228, in 
_call_with_frames_removed
     File 
"/home/airflow/.local/lib/python3.9/site-packages/airflow/cli/commands/dag_processor_command.py",
 line 24, in <module>
       from airflow.cli.commands.daemon_utils import 
run_command_with_daemon_option
     File 
"/home/airflow/.local/lib/python3.9/site-packages/airflow/cli/commands/daemon_utils.py",
 line 23, in <module>
       from daemon import daemon
     File 
"/home/airflow/.local/lib/python3.9/site-packages/daemon/__init__.py", line 33, 
in <module>
       from .daemon import DaemonContext
     File "/home/airflow/.local/lib/python3.9/site-packages/daemon/daemon.py", 
line 867, in <module>
       _total_file_descriptor_range = range(0, get_maximum_file_descriptors())
     File "/home/airflow/.local/lib/python3.9/site-packages/daemon/daemon.py", 
line 858, in get_maximum_file_descriptors
       (__, hard_limit) = resource.getrlimit(resource.RLIMIT_NOFILE)
   AttributeError: module 'resource' has no attribute 'getrlimit'
   ```
   
   Environment:
   Kubernetes: 1.30
   Airflow Version: 3.0.2
   Python Version: 3.9
   OS: al2023
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   1. Use the Helm chart version 1.17.0 for Airflow deployment.
   2. Modify the image in the Helm chart to use apache/airflow:3.0.2-python3.9
   3. Deploy Airflow using the Helm chart in Kubernetes environment.
   
   ### Operating System
   
   Amazon Linux 2023.7.20250414
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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