Your message dated Mon, 20 Nov 2023 03:04:51 -0800
with message-id 
<CACZd_tCzF4Tom_+2AhDjUHNze_C+nzGnw6+D=xuw_shyuaw...@mail.gmail.com>
and subject line Re: pelican-quickstart crashes if python3-tzlocal is installed
has caused the Debian Bug report #1037161,
regarding pelican-quickstart crashes if python3-tzlocal is installed
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1037161: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1037161
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pelican
Version: 4.8.0+dfsg-1
Severity: normal
Tags: upstream

Running pelican-quickstart fails with the exception below if
python3-tzlocal is installed. Otherwise the ImportError for tzlocal is
caught and the buggy code avoided.

The buggy code is still present upstream:
https://github.com/getpelican/pelican/blob/1f6b344f7d7b7e8dd0271cc333a257faca566c15/pelican/tools/pelican_quickstart.py#L17-L21

The problem is that zoneinfo.ZoneInfo (part of the standard library)
does not have a "zone" attibute, I assume "key" would be the correct one.

$ pelican-quickstart
Traceback (most recent call last):
  File "/usr/bin/pelican-quickstart", line 33, in <module>
    sys.exit(load_entry_point('pelican==4.8.0', 'console_scripts',
'pelican-quickstart')())

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/pelican-quickstart", line 25, in
importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202,
in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in
import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in
_find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in
_call_with_frames_removed
  File
"/usr/lib/python3/dist-packages/pelican/tools/pelican_quickstart.py",
line 19, in <module>
    _DEFAULT_TIMEZONE = tzlocal.get_localzone().zone
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'zone'


-- System Information:
Debian Release: 12.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-9-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pelican depends on:
ii  python3                3.11.2-1+b1
ii  python3-blinker        1.5-1
ii  python3-dateutil       2.8.2-2
ii  python3-docutils       0.19+dfsg-6
ii  python3-feedgenerator  2.0.0-1
ii  python3-jinja2         3.1.2-1
ii  python3-markdown       3.4.1-2
ii  python3-pkg-resources  66.1.1-1
ii  python3-pygments       2.15.1+dfsg-1
ii  python3-rich           13.3.1-1
ii  python3-tz             2022.7.1-4
ii  python3-unidecode      1.3.6-1

pelican recommends no packages.

Versions of packages pelican suggests:
ii  pandoc       2.17.1.1-1.1
pn  pelican-doc  <none>
ii  python3-bs4  4.11.2-2

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 4.9.1+dfsg-1

Fixed with the latest upstream release. Thanks for the bug report!

Regards,
Vincent

--- End Message ---

Reply via email to