timezone error in macos arm

Bug #2103478 reported by Daeho Ro
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Breezy
Fix Released
Critical
Jelmer Vernooij
breezy (Debian)
Fix Released
Unknown

Bug Description

```
==> /opt/homebrew/Cellar/breezy/3.3.10/bin/brz whoami Homebrew <email address hidden>
Error: PyErr { type: <class 'zoneinfo._common.ZoneInfoNotFoundError'>, value: ZoneInfoNotFoundError('No time zone found with key EDT'), traceback: Some(<traceback object at 0x105883640>) }
::error::breezy: failed
```

During the version bump on homebrew, I've got the error only in the arm machine.

https://github.com/Homebrew/homebrew-core/pull/210924

Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
James Simpson (jsimpso) wrote :
Download full text (4.3 KiB)

This appears to affect more than macOS arm, I'm seeing the same issue after updating to the development release of Ubuntu Plucky (amd64):

```
jsimpso@nautilus:~$ sudo apt-cache policy brz
brz:
  Installed: 3.3.10-1
  Candidate: 3.3.10-1
  Version table:
 *** 3.3.10-1 500
        500 http://au.archive.ubuntu.com/ubuntu plucky/universe amd64 Packages
        100 /var/lib/dpkg/status
```

Trying to run any breezy command fails as so:
```
jsimpso@nautilus:~$ brz version
Error: PyErr { type: <class 'zoneinfo._common.ZoneInfoNotFoundError'>, value: ZoneInfoNotFoundError('No time zone found with key AWST'), traceback: Some(<traceback object at 0x780e6abe9140>) }
```

Trying to run `breezy.initialize` in a python shell raises the following traceback:
```
>>> import breezy
>>> breezy.version_info
(3, 3, 10, 'final', 0)
>>> breezy.initialize()
Traceback (most recent call last):
  File "/usr/lib/python3.13/zoneinfo/_common.py", line 12, in load_tzdata
    return resources.files(package_name).joinpath(resource_name).open("rb")
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/importlib/resources/_common.py", line 46, in wrapper
    return func(anchor)
  File "/usr/lib/python3.13/importlib/resources/_common.py", line 56, in files
    return from_package(resolve(anchor))
                        ~~~~~~~^^^^^^^^
  File "/usr/lib/python3.13/functools.py", line 934, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib/python3.13/importlib/resources/_common.py", line 82, in _
    return importlib.import_module(cand)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'tzdata'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<python-input-25>", line 1, in <module>
    breezy.initialize()
    ~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/breezy/__init__.py", line 216, in initialize
    state._start()
    ~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/breezy/library_state.py", line 103, in _start
    self._trace.__enter__()
    ~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/breezy/trace.py", line 665, in __enter__
    self._original_state = enable_default_logging()
                           ~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/breezy/trace.py", line 290, in enable_default_logging
    start_time = osutils.format_local_d...

Read more...

Revision history for this message
James Simpson (jsimpso) wrote :

Happy to report that I just received a package update which seems to have fixed this on Plucky:

```
jsimpso@nautilus:~$ sudo apt-cache policy brz
brz:
  Installed: 3.3.10-1ubuntu1
  Candidate: 3.3.10-1ubuntu1
  Version table:
 *** 3.3.10-1ubuntu1 500
        500 http://au.archive.ubuntu.com/ubuntu plucky/universe amd64 Packages
        100 /var/lib/dpkg/status
jsimpso@nautilus:~$ brz version
Breezy (brz) 3.3.10
```

Thanks!

Changed in breezy (Debian):
status: Unknown → Incomplete
Jelmer Vernooij (jelmer)
Changed in brz:
status: Triaged → Fix Committed
Jelmer Vernooij (jelmer)
Changed in brz:
status: Fix Committed → Fix Released
Changed in breezy (Debian):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.