Replies: 1 comment
-
Access violation at Some quick checks:
If you're on Windows, PyInstaller sometimes fails to hook C++ bindings cleanly. Let me know if you want a minimal working setup. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I need to write a desktop application for Windows OS that implements an interface for communicating with LLM. When running as "python script_name.py" everything works fine, but after compiling in exe file using pyinstaller, when running this exe file at the stage of loading the model I get an error: OSError('exception: access violation reading 0x0000000000000000').
Please tell me what the problem could be?
app tree:
chat_app/
models/
venv/
chat_app.py
chat_app.spec
icon.ico
Pyinstaller spec:
from PyInstaller.utils.hooks import collect_dynamic_libs, collect_data_files
binaries = collect_dynamic_libs('llama_cpp')
data_files = collect_data_files('llama_cpp')
block_cipher = None
a = Analysis(['chat_app.py'],
pathex=['C:\DS_Chat'],
binaries=binaries,
datas=[
('models', 'models'),
*data_files
],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher,
debug=True)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='chat_app',
debug=True,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
icon=['icon.ico'],
)
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='chat_app',
)
Beta Was this translation helpful? Give feedback.
All reactions