Pyinstaller packaged on python 3.13 shows DeprecationError #8920
-
Hi, I got this DeprecationWarning when packaging an application using the following -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['./src/shiinobi/cli.py'],
pathex=['./src/shiinobi'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=['./src/_pyinstaller'],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=True,
optimize=2,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='shiinobi',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
icon='./assets/shiinobi.png',
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
I was wondering if this can be addressed or can i help in any way? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
If anyone wants an executable, https://github.com/baseplate-admin/Shiinobi/actions/runs/12329900575 |
Beta Was this translation helpful? Give feedback.
-
That deprecation warning will be issued if your application contains |
Beta Was this translation helpful? Give feedback.
That deprecation warning will be issued if your application contains
pkg_resources
so if you want rid of the warning, then you need to get rid ofpkg_resources
. It might be thatpkg_resources
is getting picked up unnecessarily – you can try--exclude-module=pkg_resources
and either the warning will go away or you'll discover which part of your dependency tree is using deprecated functionality.