I have a PyQt4 program that I froze with cx_freeze. The problem I am facing is that when I create a QGraphicsPixmapItem that gets its "pixmap" from the SVG file, the element gets no problems, but the Pixmap doesn’t load, so there’s no image only of the element in the scene, What confuses me is that this only happens when I run it on a different computer than the one that exe built. When I run exe on the computer that built it, the program works fine. Even when I try to run it on a computer with all the necessary python components and pyqt components installed on the computer, if this is not the computer that created it, pixmap does not load from the svg file. I'm not sure if this is a problem with my setup.py cx_freeze file, or if I need to change something in the main code, so any help or just pointing me in the right direction would be great. I feel like something gets messy when cx_freeze creates it, so I am pasting the contents of my setup.py file below. I also start Windows using Python v3.1.
from cx_Freeze import setup, Executable files = ['drawings\\FULL', 'drawings\\PANEL', 'data.csv', 'panelData.csv'] binIncludes = ['C:\\Python31\\Lib\\site-packages\\PyQt4\\bin\\QtSvg4.dll'] includes = ['main', 'PunchDialog', 'ArrayDialog', 'PricingDialog', 'FontAndInputDialog', 'PanelSelector', 'PyQt4', 'os', 'sys', 'ctypes', 'csv'] packages = ['drawings'] path = ['C:\\Users\\Brock\\Documents\\Programming\\PanelDesigner\\DrawingFirst', 'C:\\Python31\\Lib', 'C:\\Python31\\Lib\\site-packages', 'C:\\Python31\\DLLs'] setup( name = 'PanelBuilder', version = '1.0', description = 'Allows user to draw custom panel layouts.', author = 'Brock Seabaugh', options = {'build_exe': {'packages':packages, 'path':path, 'include_files':files, 'bin_includes':binIncludes, 'includes':includes}}, executables = [Executable('PanelBuilder.py')])
PS. Here is my file hierarchy (if that helps at all):
\DrawingFirst Main .py file All .py files for all custom dialogs used \drawings some modules used \FULL A bunch of SVG files used \PANEL More SVG files used