내 응용 프로그램에서 QGraphicsPixmapItem을 사용하고 'dist'디렉토리의 'imageformats'하위 디렉토리에 qjpeg4.dll을 놓은 jpeg 파일을로드 할 수있게합니다.
'bundle_files'옵션이 3으로 설정된 경우에만 작동합니다.
1 또는 2로 설정하면 qt4 (pyqt4)가 더 이상 필요한 dll을 찾을 수 없어 QGraphicsPixmapItems가 표시되지 않습니다.py2exe bundle_files = 1 또는 2가 실패했습니다.
setup.py :
from distutils.core import setup
import py2exe
setup(
options = {'py2exe': {'bundle_files': 1}},
description = "",
name = "name",
windows = ["mainwindow.py"],
zipfile=None,
)
복제본 – ras
나는 py2exe가 data_files를 사용하여 dist/imageformats 디렉토리에 자동으로 dll을 추가하도록 설득 할 수있었습니다. 슬프게도 qt4는 어쨌든 그것을 보지 못합니다. – ras
오류 메시지를 게시 할 수 있습니까? – William