You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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').
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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