martintalero commented on issue #43973:
URL: https://github.com/apache/airflow/issues/43973#issuecomment-2502066387

   Problem is in file: airflow/utils/timezone.py
   
   $ python
   Python 3.11.10 (main, Sep  7 2024, 18:35:41) [GCC 13.2.0] on linux
   Type "help", "copyright", "credits" or "license" for more information.
   >>> from airflow.utils import timezone
   >>> import pendulum
   >>> s=timezone
   >>> s.local_timezone()
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File 
"/opt/airflow/venv/lib/python3.11/site-packages/airflow/utils/timezone.py", 
line 301, in local_timezone
       return pendulum.tz.local_timezone()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/opt/airflow/venv/lib/python3.11/site-packages/pendulum/tz/__init__.py", line 
51, in local_timezone
       return get_local_timezone()
              ^^^^^^^^^^^^^^^^^^^^
     File 
"/opt/airflow/venv/lib/python3.11/site-packages/pendulum/tz/local_timezone.py", 
line 33, in get_local_timezone
       tz = _get_system_timezone()
            ^^^^^^^^^^^^^^^^^^^^^^
     File 
"/opt/airflow/venv/lib/python3.11/site-packages/pendulum/tz/local_timezone.py", 
line 61, in _get_system_timezone
       return _get_unix_timezone()
              ^^^^^^^^^^^^^^^^^^^^
     File 
"/opt/airflow/venv/lib/python3.11/site-packages/pendulum/tz/local_timezone.py", 
line 179, in _get_unix_timezone
       return Timezone(etctz.replace(" ", "_"))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/opt/airflow/venv/lib/python3.11/site-packages/pendulum/tz/timezone.py", line 
65, in __new__
       return super().__new__(cls, key)  # type: ignore[call-arg]
              ^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/lib/python3.11/zoneinfo/_tzpath.py", line 67, in find_tzfile
       _validate_tzfile_path(key)
     File "/usr/lib/python3.11/zoneinfo/_tzpath.py", line 81, in 
_validate_tzfile_path
       raise ValueError(
   ValueError: ZoneInfo keys may not be absolute paths, got: /UTC


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