Source: pyinstaller-hooks-contrib
Source-Version: 2025.9-1
Severity: serious

Hi!

This package FTBFS when setting the TZ variable using the abbreviated
timezone and offset format. Such as when calling it with:

,---
$ TZ=GMT+12 dpkg-buildpackage -j8 --no-sign --build=binary
`---

After a very long two runs (working baseline and failing one), it
produced the following trimmed and sanitized log errors:

,---
dpkg-buildpackage: info: source package pyinstaller-hooks-contrib
dpkg-buildpackage: info: source version 2025.9-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Soren Stoutner <[email protected]>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
[…]
tests/test_libraries.py::test_trimesh[onedir] SKIPPED (Can't import ...) [  4%]
tests/test_libraries.py::test_trimesh[onefile] SKIPPED (Can't import...) [  4%]
tests/test_libraries.py::test_apscheduler[onedir] FAILED                 [  5%]
tests/test_libraries.py::test_apscheduler[onefile] FAILED                [  5%]
tests/test_libraries.py::test_boto[onedir] SKIPPED (Can't import 'bo...) [  5%]
tests/test_libraries.py::test_boto[onefile] SKIPPED (Can't import 'b...) [  5%]
[…]
=================================== FAILURES ===================================
___________________________ test_apscheduler[onedir] ___________________________

pyi_builder = <PyInstaller.utils.conftest.AppBuilder object at 0x7f7ada4368b0>

    @importorskip('apscheduler')
    def test_apscheduler(pyi_builder):
>       pyi_builder.test_source(
            """
            import asyncio
            import datetime
            import random
            import time
    
            from apscheduler.schedulers.asyncio import AsyncIOScheduler
    
    
            def tick():
                now = datetime.datetime.now(tz=datetime.timezone.utc)
                value = random.randint(0, 100)
                print(f"Tick! Current time is: {now}, random value: {value}")
    
    
            async def main():
                scheduler = AsyncIOScheduler()
                scheduler.add_job(tick, "interval", seconds=1)
                scheduler.start()
    
                # Run for five seconds
                start_time = time.time()
                while time.time() - start_time < 5.0:
                    await asyncio.sleep(0.1)
    
    
            asyncio.run(main())
            """)
E       Failed: Running exe 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/test_source 
failed with return-code 1.

<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/tests/test_libraries.py:94:
 Failed
----------------------------- Captured stdout call -----------------------------
[APP-BUILDER:TEST-SCRIPT] Starting build...
[APP-BUILDER:TEST-SCRIPT] Build finished, now running executable...
[APP-BUILDER:RUN-EXE] Running 
'<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/test_source', 
args: ['./test_source']
[APP-BUILDER:RUN-EXE] Process exited on its own after 0.3 seconds with return 
code 1.
[APP-BUILDER:RUN-EXE] Done! Return code: 1
----------------------------- Captured stderr call -----------------------------
[APP-BUILDER:TEST-SCRIPT] Starting build...
[APP-BUILDER:TEST-SCRIPT] Build finished, now running executable...
[APP-BUILDER:RUN-EXE] Running 
'<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/test_source', 
args: ['./test_source']
[PYI-2397192:DEBUG] PyInstaller Bootloader 6.x
[PYI-2397192:DEBUG] LOADER: argv[0]: ./test_source
[PYI-2397192:DEBUG] LOADER: executable file: 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/test_source
[PYI-2397192:DEBUG] LOADER: trying to load executable-embedded archive...
[PYI-2397192:DEBUG] LOADER: attempting to open archive 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/test_source
[PYI-2397192:DEBUG] LOADER: cookie found at offset 0x593F03
[PYI-2397192:DEBUG] LOADER: archive file: 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/test_source
[PYI-2397192:DEBUG] LOADER: application has onedir semantics...
[PYI-2397192:DEBUG] LOADER: _PYI_ARCHIVE_FILE not defined...
[PYI-2397192:DEBUG] LOADER: parent process level = -2
[PYI-2397192:DEBUG] LOADER: process level = -1
[PYI-2397192:DEBUG] LOADER: storing process name: test_source
[PYI-2397192:DEBUG] LOADER: application's top-level directory: 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/_internal
[PYI-2397192:DEBUG] LOADER: setting 
LD_LIBRARY_PATH=<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/_internal
[PYI-2397192:DEBUG] LOADER: process needs to restart itself to apply 
modifications to library search path.
[PYI-2397192:DEBUG] LOADER: restarting process via execvp
[PYI-2397192:DEBUG] PyInstaller Bootloader 6.x
[PYI-2397192:DEBUG] LOADER: argv[0]: ./test_source
[PYI-2397192:DEBUG] LOADER: executable file: 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/test_source
[PYI-2397192:DEBUG] LOADER: trying to load executable-embedded archive...
[PYI-2397192:DEBUG] LOADER: attempting to open archive 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/test_source
[PYI-2397192:DEBUG] LOADER: cookie found at offset 0x593F03
[PYI-2397192:DEBUG] LOADER: archive file: 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/test_source
[PYI-2397192:DEBUG] LOADER: application has onedir semantics...
[PYI-2397192:DEBUG] LOADER: _PYI_ARCHIVE_FILE already defined: 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/test_source
[PYI-2397192:DEBUG] LOADER: using same archive file as parent environment!
[PYI-2397192:DEBUG] LOADER: parent process level = -1
[PYI-2397192:DEBUG] LOADER: process level = 1
[PYI-2397192:DEBUG] LOADER: restoring process name: test_source
[PYI-2397192:DEBUG] LOADER: application's top-level directory: 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/_internal
[PYI-2397192:DEBUG] LOADER: splash screen is unavailable.
[PYI-2397192:DEBUG] DYLIB: loading Python shared library: 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist/test_source/_internal/libpython3.13.so.1.0
[PYI-2397192:DEBUG] DYLIB: loaded Python shared library.
[PYI-2397192:DEBUG] DYLIB: imported symbols from Python shared library.
[PYI-2397192:DEBUG] LOADER: pre-initializing embedded python interpreter...
[PYI-2397192:DEBUG] LOADER: using PEP-587 API...
[PYI-2397192:DEBUG] LOADER: creating PyConfig structure...
[PYI-2397192:DEBUG] LOADER: initializing interpreter configuration...
[PYI-2397192:DEBUG] LOADER: setting program name...
[PYI-2397192:DEBUG] LOADER: setting python home path...
[PYI-2397192:DEBUG] LOADER: setting module search paths...
[PYI-2397192:DEBUG] LOADER: setting sys.argv...
[PYI-2397192:DEBUG] LOADER: applying run-time options...
[PYI-2397192:DEBUG] LOADER: starting embedded python interpreter...
[PYI-2397192:DEBUG] LOADER: setting sys._MEIPASS
[PYI-2397192:DEBUG] LOADER: importing modules from PKG/CArchive
[PYI-2397192:DEBUG] LOADER: extracted struct
[PYI-2397192:DEBUG] LOADER: running unmarshalled code object for module 
struct...
[PYI-2397192:DEBUG] LOADER: extracted pyimod01_archive
[PYI-2397192:DEBUG] LOADER: running unmarshalled code object for module 
pyimod01_archive...
[PYI-2397192:DEBUG] LOADER: extracted pyimod02_importers
[PYI-2397192:DEBUG] LOADER: running unmarshalled code object for module 
pyimod02_importers...
[PYI-2397192:DEBUG] LOADER: extracted pyimod03_ctypes
[PYI-2397192:DEBUG] LOADER: running unmarshalled code object for module 
pyimod03_ctypes...
[PYI-2397192:DEBUG] LOADER: looking for PYZ archive TOC entry...
[PYI-2397192:DEBUG] LOADER: path to PYZ archive stored into 
sys._pyinstaller_pyz...
[PYI-2397192:DEBUG] LOADER: running pyiboot01_bootstrap.py
[PYI-2397192:DEBUG] LOADER: running pyi_rth_inspect.py
[PYI-2397192:DEBUG] LOADER: running pyi_rth_setuptools.py
[PYI-2397192:DEBUG] LOADER: running pyi_rth_pkgutil.py
[PYI-2397192:DEBUG] LOADER: running pyi_rth_multiprocessing.py
[PYI-2397192:DEBUG] LOADER: running pyi_rth_pkgres.py
[PYI-2397192:DEBUG] LOADER: running pyi_rth_cryptography_openssl.py
[PYI-2397192:DEBUG] LOADER: running test_source.py
Traceback (most recent call last):
  File "test_source.py", line 27, in <module>
  File "asyncio/runners.py", line 195, in run
  File "asyncio/runners.py", line 118, in run
  File "asyncio/base_events.py", line 725, in run_until_complete
  File "test_source.py", line 17, in main
  File "apscheduler/schedulers/base.py", line 125, in __init__
  File "apscheduler/schedulers/base.py", line 174, in configure
  File "apscheduler/schedulers/asyncio.py", line 46, in _configure
  File "apscheduler/schedulers/base.py", line 903, in _configure
  File "tzlocal/unix.py", line 237, in get_localzone
  File "tzlocal/unix.py", line 190, in _get_localzone
  File "tzlocal/utils.py", line 105, in _tz_from_env
zoneinfo._common.ZoneInfoNotFoundError: 'tzlocal() does not support 
non-zoneinfo timezones like GMT+12. \nPlease use a timezone in the form of 
Continent/City'
[PYI-2397192:ERROR] Failed to execute script 'test_source' due to unhandled 
exception!
[PYI-2397192:DEBUG] LOADER: ERROR.
[PYI-2397192:DEBUG] LOADER: manually flushing stdout and stderr...
[PYI-2397192:DEBUG] LOADER: cleaning up Python interpreter...
[PYI-2397192:DEBUG] DYLIB: unloading Python shared library...
[PYI-2397192:DEBUG] DYLIB: unloaded Python shared library.
[PYI-2397192:DEBUG] LOADER: end of process reached!
[APP-BUILDER:RUN-EXE] Process exited on its own after 0.3 seconds with return 
code 1.
[APP-BUILDER:RUN-EXE] Done! Return code: 1
------------------------------ Captured log call -------------------------------
INFO     PyInstaller.__main__:__main__.py:191 PyInstaller: 6.16.0, contrib 
hooks: 2025.9
INFO     PyInstaller.__main__:__main__.py:192 Python: 3.13.7
INFO     PyInstaller.__main__:__main__.py:193 Platform: 
Linux-6.16.8+deb14-amd64-x86_64-with-glibc2.41
INFO     PyInstaller.__main__:__main__.py:194 Python environment: /usr
INFO     PyInstaller.__main__:__main__.py:64 wrote 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/test_source.spec
INFO     PyInstaller.building.build_main:build_main.py:510 Module search paths 
(PYTHONPATH):
['None',
 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/tests',
 '<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build',
 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/debian/tmp/usr/lib/python3.13/dist-packages',
 '<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build',
 '/usr/lib/python313.zip',
 '/usr/lib/python3.13',
 '/usr/lib/python3.13/lib-dynload',
 '/usr/local/lib/python3.13/dist-packages',
 '/usr/lib/python3/dist-packages',
 '/usr/lib/python3.13/dist-packages',
 '<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0',
 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/tests/modules']
INFO     PyInstaller.building.datastruct:datastruct.py:169 checking Analysis
INFO     PyInstaller.building.datastruct:datastruct.py:173 Building Analysis 
because Analysis-06.toc is non existent
INFO     PyInstaller.building.build_main:build_main.py:667 Looking for Python 
shared library...
INFO     PyInstaller.building.build_main:build_main.py:669 Using Python shared 
library: /usr/lib/x86_64-linux-gnu/libpython3.13.so.1.0
INFO     PyInstaller.building.build_main:build_main.py:671 Running Analysis 
Analysis-06.toc
INFO     PyInstaller.building.build_main:build_main.py:672 Target bytecode 
optimization level: 0
INFO     PyInstaller.depend.analysis:analysis.py:962 Reusing cached module 
dependency graph...
INFO     PyInstaller.depend.analysis:analysis.py:135 Initializing module graph 
hook caches...
INFO     PyInstaller.building.build_main:build_main.py:715 Analyzing 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/test_source.py
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-heapq.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-multiprocessing.util.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-xml.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-pickle.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-_ctypes.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-apscheduler.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/stdhooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-zoneinfo.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/stdhooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-sysconfig.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-platform.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.analysis:analysis.py:319 Processing module hooks 
(post-graph stage)...
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-difflib.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-typing_extensions.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-distutils.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-setuptools.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-jaraco.functools.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-more_itertools.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-packaging.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-jaraco.text.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-jaraco.text.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/stdhooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-importlib_resources.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-importlib_resources.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-zipp.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-jaraco.context.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-importlib_metadata.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.utils.hooks.setuptools:setuptools.py:250 Setuptools: 
'importlib_metadata' appears to be a setuptools-vendored copy - creating alias 
to 'setuptools._vendor.importlib_metadata'!
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-setuptools._vendor.importlib_metadata.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-tomli.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.utils.hooks.setuptools:setuptools.py:250 Setuptools: 
'tomli' appears to be a setuptools-vendored copy - creating alias to 
'setuptools._vendor.tomli'!
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-pkg_resources.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-platformdirs.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-platformdirs.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/stdhooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-wheel.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-zope.interface.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-cryptography.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/stdhooks'
INFO     PyInstaller.utils.hooks:hook-cryptography.py:111 hook-cryptography: 
cryptography uses dynamically-linked OpenSSL: 
'/usr/lib/x86_64-linux-gnu/libssl.so.3'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-bcrypt.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/stdhooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-encodings.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
WARNING  PyInstaller.depend.imphook:imphook.py:551 Hidden import 
"importlib_resources.trees" not found!
INFO     PyInstaller.building.build_main:build_main.py:747 Performing binary 
vs. data reclassification (19 entries)
INFO     PyInstaller.building.build_main:build_main.py:770 Looking for ctypes 
DLLs
INFO     PyInstaller.depend.analysis:analysis.py:729 Analyzing run-time hooks 
...
INFO     PyInstaller.depend.analysis:analysis.py:750 Including run-time hook 
'pyi_rth_inspect.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/rthooks'
INFO     PyInstaller.depend.analysis:analysis.py:750 Including run-time hook 
'pyi_rth_setuptools.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/rthooks'
INFO     PyInstaller.depend.analysis:analysis.py:750 Including run-time hook 
'pyi_rth_pkgutil.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/rthooks'
INFO     PyInstaller.depend.analysis:analysis.py:750 Including run-time hook 
'pyi_rth_multiprocessing.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/rthooks'
INFO     PyInstaller.depend.analysis:analysis.py:750 Including run-time hook 
'pyi_rth_pkgres.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/rthooks'
INFO     PyInstaller.depend.analysis:analysis.py:750 Including run-time hook 
'pyi_rth_cryptography_openssl.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/rthooks'
INFO     PyInstaller.building.build_main:build_main.py:938 Creating 
base_library.zip...
INFO     PyInstaller.building.build_main:build_main.py:963 Looking for dynamic 
libraries
INFO     PyInstaller.building.build_main:build_main.py:1087 Warnings written to 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/build/test_source/warn-test_source.txt
INFO     PyInstaller.building.build_main:build_main.py:1096 Graph 
cross-reference written to 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/build/test_source/xref-test_source.html
INFO     PyInstaller.building.datastruct:datastruct.py:169 checking PYZ
INFO     PyInstaller.building.datastruct:datastruct.py:173 Building PYZ because 
PYZ-06.toc is non existent
INFO     PyInstaller.building.api:api.py:138 Building PYZ (ZlibArchive) 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/build/test_source/PYZ-06.pyz
INFO     PyInstaller.building.api:api.py:158 Building PYZ (ZlibArchive) 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/build/test_source/PYZ-06.pyz 
completed successfully.
INFO     PyInstaller.building.datastruct:datastruct.py:169 checking PKG
INFO     PyInstaller.building.datastruct:datastruct.py:173 Building PKG because 
PKG-06.toc is non existent
INFO     PyInstaller.building.api:api.py:270 Building PKG (CArchive) 
test_source.pkg
INFO     PyInstaller.building.api:api.py:360 Building PKG (CArchive) 
test_source.pkg completed successfully.
INFO     PyInstaller.building.api:api.py:753 Bootloader 
/usr/lib/python3/dist-packages/PyInstaller/bootloader/Linux-64bit-intel/run_d
INFO     PyInstaller.building.datastruct:datastruct.py:169 checking EXE
INFO     PyInstaller.building.datastruct:datastruct.py:173 Building EXE because 
EXE-06.toc is non existent
INFO     PyInstaller.building.api:api.py:764 Building EXE from EXE-06.toc
INFO     PyInstaller.building.api:api.py:777 Copying bootloader EXE to 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/build/test_source/test_source
INFO     PyInstaller.building.api:api.py:835 Appending PKG archive to custom 
ELF section in EXE
INFO     PyInstaller.building.api:api.py:913 Building EXE from EXE-06.toc 
completed successfully.
INFO     PyInstaller.building.datastruct:datastruct.py:169 checking COLLECT
INFO     PyInstaller.building.datastruct:datastruct.py:173 Building COLLECT 
because COLLECT-03.toc is non existent
INFO     PyInstaller.building.api:api.py:1160 Building COLLECT COLLECT-03.toc
INFO     PyInstaller.building.api:api.py:1230 Building COLLECT COLLECT-03.toc 
completed successfully.
INFO     PyInstaller.building.build_main:build_main.py:1212 Build complete! The 
results are available in: <PYTESTPATH>/pytest-2/test_apscheduler_onedir_0/dist
__________________________ test_apscheduler[onefile] ___________________________

pyi_builder = <PyInstaller.utils.conftest.AppBuilder object at 0x7f7add5599d0>

    @importorskip('apscheduler')
    def test_apscheduler(pyi_builder):
>       pyi_builder.test_source(
            """
            import asyncio
            import datetime
            import random
            import time
    
            from apscheduler.schedulers.asyncio import AsyncIOScheduler
    
    
            def tick():
                now = datetime.datetime.now(tz=datetime.timezone.utc)
                value = random.randint(0, 100)
                print(f"Tick! Current time is: {now}, random value: {value}")
    
    
            async def main():
                scheduler = AsyncIOScheduler()
                scheduler.add_job(tick, "interval", seconds=1)
                scheduler.start()
    
                # Run for five seconds
                start_time = time.time()
                while time.time() - start_time < 5.0:
                    await asyncio.sleep(0.1)
    
    
            asyncio.run(main())
            """)
E       Failed: Running exe 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/dist/test_source failed with 
return-code 1.

<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/tests/test_libraries.py:94:
 Failed
----------------------------- Captured stdout call -----------------------------
[APP-BUILDER:TEST-SCRIPT] Starting build...
[APP-BUILDER:TEST-SCRIPT] Build finished, now running executable...
[APP-BUILDER:RUN-EXE] Running 
'<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/dist/test_source', args: 
['./test_source']
[APP-BUILDER:RUN-EXE] Process exited on its own after 0.4 seconds with return 
code 1.
[APP-BUILDER:RUN-EXE] Done! Return code: 1
----------------------------- Captured stderr call -----------------------------
[APP-BUILDER:TEST-SCRIPT] Starting build...
[APP-BUILDER:TEST-SCRIPT] Build finished, now running executable...
[APP-BUILDER:RUN-EXE] Running 
'<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/dist/test_source', args: 
['./test_source']
[PYI-2397619:DEBUG] PyInstaller Bootloader 6.x
[PYI-2397619:DEBUG] LOADER: argv[0]: ./test_source
[PYI-2397619:DEBUG] LOADER: executable file: 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/dist/test_source
[PYI-2397619:DEBUG] LOADER: trying to load executable-embedded archive...
[PYI-2397619:DEBUG] LOADER: attempting to open archive 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/dist/test_source
[PYI-2397619:DEBUG] LOADER: cookie found at offset 0xEB24BF
[PYI-2397619:DEBUG] LOADER: archive file: 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/dist/test_source
[PYI-2397619:DEBUG] LOADER: application has onefile semantics...
[PYI-2397619:DEBUG] LOADER: _PYI_ARCHIVE_FILE not defined...
[PYI-2397619:DEBUG] LOADER: parent process level = -2
[PYI-2397619:DEBUG] LOADER: process level = 0
[PYI-2397619:DEBUG] LOADER: storing process name: test_source
[PYI-2397619:DEBUG] LOADER: this is parent process of onefile application.
[PYI-2397619:DEBUG] LOADER: creating temporary directory 
(runtime_tmpdir=(null))...
[PYI-2397619:DEBUG] LOADER: created temporary directory: /tmp/_MEICisthz
[PYI-2397619:DEBUG] LOADER: setting _PYI_APPLICATION_HOME_DIR to /tmp/_MEICisthz
[PYI-2397619:DEBUG] LOADER: application's top-level directory: /tmp/_MEICisthz
[PYI-2397619:DEBUG] LOADER: setting LD_LIBRARY_PATH=/tmp/_MEICisthz
[PYI-2397619:DEBUG] LOADER: splash screen is unavailable.
[PYI-2397619:DEBUG] LOADER: extracting files to temporary directory...
[PYI-2397619:DEBUG] LOADER: starting the child process...
[PYI-2397619:DEBUG] LOADER: creating sync semaphore...
[PYI-2397619:DEBUG] LOADER: forked child process with PID: 2397620
[PYI-2397619:DEBUG] LOADER: registering signal handlers to forward received 
signals to child.
[PYI-2397619:DEBUG] LOADER: signalling the sync semaphore...
[PYI-2397620:DEBUG] LOADER: waiting on sync semaphore...
[PYI-2397620:DEBUG] LOADER: starting child process via execvp
[PYI-2397620:DEBUG] PyInstaller Bootloader 6.x
[PYI-2397620:DEBUG] LOADER: argv[0]: ./test_source
[PYI-2397620:DEBUG] LOADER: executable file: 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/dist/test_source
[PYI-2397620:DEBUG] LOADER: trying to load executable-embedded archive...
[PYI-2397620:DEBUG] LOADER: attempting to open archive 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/dist/test_source
[PYI-2397620:DEBUG] LOADER: cookie found at offset 0xEB24BF
[PYI-2397620:DEBUG] LOADER: archive file: 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/dist/test_source
[PYI-2397620:DEBUG] LOADER: application has onefile semantics...
[PYI-2397620:DEBUG] LOADER: _PYI_ARCHIVE_FILE already defined: 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/dist/test_source
[PYI-2397620:DEBUG] LOADER: using same archive file as parent environment!
[PYI-2397620:DEBUG] LOADER: parent process level = 0
[PYI-2397620:DEBUG] LOADER: process level = 1
[PYI-2397620:DEBUG] LOADER: restoring process name: test_source
[PYI-2397620:DEBUG] LOADER: this is child process of onefile application (main 
application process).
[PYI-2397620:DEBUG] LOADER: application's top-level directory: /tmp/_MEICisthz
[PYI-2397620:DEBUG] LOADER: splash screen is unavailable.
[PYI-2397620:DEBUG] DYLIB: loading Python shared library: 
/tmp/_MEICisthz/libpython3.13.so.1.0
[PYI-2397620:DEBUG] DYLIB: loaded Python shared library.
[PYI-2397620:DEBUG] DYLIB: imported symbols from Python shared library.
[PYI-2397620:DEBUG] LOADER: pre-initializing embedded python interpreter...
[PYI-2397620:DEBUG] LOADER: using PEP-587 API...
[PYI-2397620:DEBUG] LOADER: creating PyConfig structure...
[PYI-2397620:DEBUG] LOADER: initializing interpreter configuration...
[PYI-2397620:DEBUG] LOADER: setting program name...
[PYI-2397620:DEBUG] LOADER: setting python home path...
[PYI-2397620:DEBUG] LOADER: setting module search paths...
[PYI-2397620:DEBUG] LOADER: setting sys.argv...
[PYI-2397620:DEBUG] LOADER: applying run-time options...
[PYI-2397620:DEBUG] LOADER: starting embedded python interpreter...
[PYI-2397620:DEBUG] LOADER: setting sys._MEIPASS
[PYI-2397620:DEBUG] LOADER: importing modules from PKG/CArchive
[PYI-2397620:DEBUG] LOADER: extracted struct
[PYI-2397620:DEBUG] LOADER: running unmarshalled code object for module 
struct...
[PYI-2397620:DEBUG] LOADER: extracted pyimod01_archive
[PYI-2397620:DEBUG] LOADER: running unmarshalled code object for module 
pyimod01_archive...
[PYI-2397620:DEBUG] LOADER: extracted pyimod02_importers
[PYI-2397620:DEBUG] LOADER: running unmarshalled code object for module 
pyimod02_importers...
[PYI-2397620:DEBUG] LOADER: extracted pyimod03_ctypes
[PYI-2397620:DEBUG] LOADER: running unmarshalled code object for module 
pyimod03_ctypes...
[PYI-2397620:DEBUG] LOADER: looking for PYZ archive TOC entry...
[PYI-2397620:DEBUG] LOADER: path to PYZ archive stored into 
sys._pyinstaller_pyz...
[PYI-2397620:DEBUG] LOADER: running pyiboot01_bootstrap.py
[PYI-2397620:DEBUG] LOADER: running pyi_rth_inspect.py
[PYI-2397620:DEBUG] LOADER: running pyi_rth_setuptools.py
[PYI-2397620:DEBUG] LOADER: running pyi_rth_pkgutil.py
[PYI-2397620:DEBUG] LOADER: running pyi_rth_multiprocessing.py
[PYI-2397620:DEBUG] LOADER: running pyi_rth_pkgres.py
[PYI-2397620:DEBUG] LOADER: running pyi_rth_cryptography_openssl.py
[PYI-2397620:DEBUG] LOADER: running test_source.py
Traceback (most recent call last):
  File "test_source.py", line 27, in <module>
  File "asyncio/runners.py", line 195, in run
  File "asyncio/runners.py", line 118, in run
  File "asyncio/base_events.py", line 725, in run_until_complete
  File "test_source.py", line 17, in main
  File "apscheduler/schedulers/base.py", line 125, in __init__
  File "apscheduler/schedulers/base.py", line 174, in configure
  File "apscheduler/schedulers/asyncio.py", line 46, in _configure
  File "apscheduler/schedulers/base.py", line 903, in _configure
  File "tzlocal/unix.py", line 237, in get_localzone
  File "tzlocal/unix.py", line 190, in _get_localzone
  File "tzlocal/utils.py", line 105, in _tz_from_env
zoneinfo._common.ZoneInfoNotFoundError: 'tzlocal() does not support 
non-zoneinfo timezones like GMT+12. \nPlease use a timezone in the form of 
Continent/City'
[PYI-2397620:ERROR] Failed to execute script 'test_source' due to unhandled 
exception!
[PYI-2397620:DEBUG] LOADER: ERROR.
[PYI-2397620:DEBUG] LOADER: manually flushing stdout and stderr...
[PYI-2397620:DEBUG] LOADER: cleaning up Python interpreter...
[PYI-2397620:DEBUG] DYLIB: unloading Python shared library...
[PYI-2397620:DEBUG] DYLIB: unloaded Python shared library.
[PYI-2397620:DEBUG] LOADER: end of process reached!
[PYI-2397619:DEBUG] LOADER: restoring signal handlers
[PYI-2397619:DEBUG] LOADER: signal forwarding statistics: all=0, ok=0, err=0, 
noop=0
[PYI-2397619:DEBUG] LOADER: returning child exit status 1
[PYI-2397619:DEBUG] LOADER: child process exited (return code: 1)
[PYI-2397619:DEBUG] LOADER: performing cleanup...
[PYI-2397619:DEBUG] LOADER: removing temporary directory: /tmp/_MEICisthz
[PYI-2397619:DEBUG] LOADER: temporary directory /tmp/_MEICisthz was 
successfully removed.
[PYI-2397619:DEBUG] LOADER: end of process reached!
[APP-BUILDER:RUN-EXE] Process exited on its own after 0.4 seconds with return 
code 1.
[APP-BUILDER:RUN-EXE] Done! Return code: 1
------------------------------ Captured log call -------------------------------
INFO     PyInstaller.__main__:__main__.py:191 PyInstaller: 6.16.0, contrib 
hooks: 2025.9
INFO     PyInstaller.__main__:__main__.py:192 Python: 3.13.7
INFO     PyInstaller.__main__:__main__.py:193 Platform: 
Linux-6.16.8+deb14-amd64-x86_64-with-glibc2.41
INFO     PyInstaller.__main__:__main__.py:194 Python environment: /usr
INFO     PyInstaller.__main__:__main__.py:64 wrote 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/test_source.spec
INFO     PyInstaller.building.build_main:build_main.py:510 Module search paths 
(PYTHONPATH):
['None',
 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/tests',
 '<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build',
 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/debian/tmp/usr/lib/python3.13/dist-packages',
 '<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build',
 '/usr/lib/python313.zip',
 '/usr/lib/python3.13',
 '/usr/lib/python3.13/lib-dynload',
 '/usr/local/lib/python3.13/dist-packages',
 '/usr/lib/python3/dist-packages',
 '/usr/lib/python3.13/dist-packages',
 '<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0',
 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/tests/modules']
INFO     PyInstaller.building.datastruct:datastruct.py:169 checking Analysis
INFO     PyInstaller.building.datastruct:datastruct.py:173 Building Analysis 
because Analysis-07.toc is non existent
INFO     PyInstaller.building.build_main:build_main.py:667 Looking for Python 
shared library...
INFO     PyInstaller.building.build_main:build_main.py:669 Using Python shared 
library: /usr/lib/x86_64-linux-gnu/libpython3.13.so.1.0
INFO     PyInstaller.building.build_main:build_main.py:671 Running Analysis 
Analysis-07.toc
INFO     PyInstaller.building.build_main:build_main.py:672 Target bytecode 
optimization level: 0
INFO     PyInstaller.depend.analysis:analysis.py:962 Reusing cached module 
dependency graph...
INFO     PyInstaller.depend.analysis:analysis.py:135 Initializing module graph 
hook caches...
INFO     PyInstaller.building.build_main:build_main.py:715 Analyzing 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/test_source.py
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-heapq.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-multiprocessing.util.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-xml.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-pickle.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-_ctypes.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-apscheduler.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/stdhooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-zoneinfo.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/stdhooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-sysconfig.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-platform.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.analysis:analysis.py:319 Processing module hooks 
(post-graph stage)...
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-difflib.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-typing_extensions.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-distutils.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-setuptools.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-jaraco.functools.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-more_itertools.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-packaging.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-jaraco.text.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-jaraco.text.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/stdhooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-importlib_resources.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-importlib_resources.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-zipp.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-jaraco.context.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-importlib_metadata.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.utils.hooks.setuptools:setuptools.py:250 Setuptools: 
'importlib_metadata' appears to be a setuptools-vendored copy - creating alias 
to 'setuptools._vendor.importlib_metadata'!
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-setuptools._vendor.importlib_metadata.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-tomli.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.utils.hooks.setuptools:setuptools.py:250 Setuptools: 
'tomli' appears to be a setuptools-vendored copy - creating alias to 
'setuptools._vendor.tomli'!
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-pkg_resources.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-platformdirs.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-platformdirs.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/stdhooks'
INFO     PyInstaller.depend.analysis:analysis.py:517 Processing 
pre-safe-import-module hook 'hook-wheel.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/pre_safe_import_module'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-zope.interface.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-cryptography.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/stdhooks'
INFO     PyInstaller.utils.hooks:hook-cryptography.py:111 hook-cryptography: 
cryptography uses dynamically-linked OpenSSL: 
'/usr/lib/x86_64-linux-gnu/libssl.so.3'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-bcrypt.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/stdhooks'
INFO     PyInstaller.depend.imphook:imphook.py:420 Processing standard module 
hook 'hook-encodings.py' from '/usr/lib/python3/dist-packages/PyInstaller/hooks'
WARNING  PyInstaller.depend.imphook:imphook.py:551 Hidden import 
"importlib_resources.trees" not found!
INFO     PyInstaller.building.build_main:build_main.py:747 Performing binary 
vs. data reclassification (19 entries)
INFO     PyInstaller.building.build_main:build_main.py:770 Looking for ctypes 
DLLs
INFO     PyInstaller.depend.analysis:analysis.py:729 Analyzing run-time hooks 
...
INFO     PyInstaller.depend.analysis:analysis.py:750 Including run-time hook 
'pyi_rth_inspect.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/rthooks'
INFO     PyInstaller.depend.analysis:analysis.py:750 Including run-time hook 
'pyi_rth_setuptools.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/rthooks'
INFO     PyInstaller.depend.analysis:analysis.py:750 Including run-time hook 
'pyi_rth_pkgutil.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/rthooks'
INFO     PyInstaller.depend.analysis:analysis.py:750 Including run-time hook 
'pyi_rth_multiprocessing.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/rthooks'
INFO     PyInstaller.depend.analysis:analysis.py:750 Including run-time hook 
'pyi_rth_pkgres.py' from 
'/usr/lib/python3/dist-packages/PyInstaller/hooks/rthooks'
INFO     PyInstaller.depend.analysis:analysis.py:750 Including run-time hook 
'pyi_rth_cryptography_openssl.py' from 
'<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/_pyinstaller_hooks_contrib/rthooks'
INFO     PyInstaller.building.build_main:build_main.py:938 Creating 
base_library.zip...
INFO     PyInstaller.building.build_main:build_main.py:963 Looking for dynamic 
libraries
INFO     PyInstaller.building.build_main:build_main.py:1087 Warnings written to 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/build/test_source/warn-test_source.txt
INFO     PyInstaller.building.build_main:build_main.py:1096 Graph 
cross-reference written to 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/build/test_source/xref-test_source.html
INFO     PyInstaller.building.datastruct:datastruct.py:169 checking PYZ
INFO     PyInstaller.building.datastruct:datastruct.py:173 Building PYZ because 
PYZ-07.toc is non existent
INFO     PyInstaller.building.api:api.py:138 Building PYZ (ZlibArchive) 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/build/test_source/PYZ-07.pyz
INFO     PyInstaller.building.api:api.py:158 Building PYZ (ZlibArchive) 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/build/test_source/PYZ-07.pyz 
completed successfully.
INFO     PyInstaller.building.datastruct:datastruct.py:169 checking PKG
INFO     PyInstaller.building.datastruct:datastruct.py:173 Building PKG because 
PKG-07.toc is non existent
INFO     PyInstaller.building.api:api.py:270 Building PKG (CArchive) 
test_source.pkg
INFO     PyInstaller.building.api:api.py:360 Building PKG (CArchive) 
test_source.pkg completed successfully.
INFO     PyInstaller.building.api:api.py:753 Bootloader 
/usr/lib/python3/dist-packages/PyInstaller/bootloader/Linux-64bit-intel/run_d
INFO     PyInstaller.building.datastruct:datastruct.py:169 checking EXE
INFO     PyInstaller.building.datastruct:datastruct.py:173 Building EXE because 
EXE-07.toc is non existent
INFO     PyInstaller.building.api:api.py:764 Building EXE from EXE-07.toc
INFO     PyInstaller.building.api:api.py:777 Copying bootloader EXE to 
<PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/dist/test_source
INFO     PyInstaller.building.api:api.py:835 Appending PKG archive to custom 
ELF section in EXE
INFO     PyInstaller.building.api:api.py:913 Building EXE from EXE-07.toc 
completed successfully.
INFO     PyInstaller.building.build_main:build_main.py:1212 Build complete! The 
results are available in: <PYTESTPATH>/pytest-2/test_apscheduler_onefile_0/dist
=============================== warnings summary ===============================
tests/test_libraries.py:574
  
<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build/tests/test_libraries.py:574:
 PytestUnknownMarkWarning: Unknown pytest.mark.timeout - is this a typo?  You 
can register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.timeout(600)

.pybuild/cpython3_3.13/build/tests/test_libraries.py: 42 warnings
.pybuild/cpython3_3.13/build/tests/test_pytorch.py: 1 warning
.pybuild/cpython3_3.13/build/tests/test_scikit_image.py: 2 warnings
  /usr/lib/python3/dist-packages/jieba/__init__.py:44: SyntaxWarning: invalid 
escape sequence '\.'
    re_han_default = re.compile("([\u4E00-\u9FD5a-zA-Z0-9+#&\._%\-]+)", re.U)

.pybuild/cpython3_3.13/build/tests/test_libraries.py: 42 warnings
.pybuild/cpython3_3.13/build/tests/test_pytorch.py: 1 warning
.pybuild/cpython3_3.13/build/tests/test_scikit_image.py: 2 warnings
  /usr/lib/python3/dist-packages/jieba/__init__.py:46: SyntaxWarning: invalid 
escape sequence '\s'
    re_skip_default = re.compile("(\r\n|\s)", re.U)

.pybuild/cpython3_3.13/build/tests/test_libraries.py: 42 warnings
.pybuild/cpython3_3.13/build/tests/test_pytorch.py: 1 warning
.pybuild/cpython3_3.13/build/tests/test_scikit_image.py: 2 warnings
  /usr/lib/python3/dist-packages/jieba/finalseg/__init__.py:78: SyntaxWarning: 
invalid escape sequence '\.'
    re_skip = re.compile("([a-zA-Z0-9]+(?:\.\d+)?%?)")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
[…]
FAILED tests/test_libraries.py::test_apscheduler[onedir] - Failed: Running exe 
<PYTESTPATH>/pytest-2/test_apscheduler_onedir...
FAILED tests/test_libraries.py::test_apscheduler[onefile] - Failed: Running exe 
<PYTESTPATH>/pytest-2/test_apscheduler_onefil...
= 2 failed, 207 passed, 353 skipped, 57 deselected, 4 xfailed, 2 xpassed, 136 
warnings in 12994.06s (3:36:34) =
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
<BUILDPATH>/pyinstaller-hooks-contrib-2025.9/.pybuild/cpython3_3.13/build; 
python3.13 -m
`---

Given that such TZ specifications are legal, and can be set on
systems, and the package fails to build with them, the test suite
should be fixed to either set TZ to a value known to work, or the
code improved to not fail on such cases.

Thanks,
Guillem

Reply via email to