Hi, is your need to have newer tools on older systems?
There are three possible solutions: 1) compile all by hand on older machine - cons: you can use only tools which will compile with older compilers - for qt it is reccomended to use gcc 4.2 - had to use older versions of some tools 2) use tool myppy to create self contained python (something like portable python for linux) - it includes support for pyside (similar to pyqt) and wxwindows - http://pypi.python.org/pypi/myppy/0.1.0 - contains python 2.6.6 - for now supported only for i686 architecture - easy to create but harder to install other modules - even when created on a newer distribution it should work on older 3) create something like linux environment in linux - use gentoo prefix - this is the hardest to create (takes a lot of time to build) but should be most robust solution - the easiest to update and maintain - http://www.gentoo.org/proj/en/gentoo-alt/prefix/ sushant píše v Čt 10. 02. 2011 v 04:27 -0800: > Hi > > I need some help in getting started with PyInstaller for PyQt based > applications. > I am a new-bee at using pyinstaller and facing trouble in creating > even a simplest PyQt application package. > I am compiling Python-2.6.1, sip-4.7.9, PyQt-4.4.4 and Qt-4.3.5 on a > Red Hat 5 machine. (Due to some other requirements, > I can't use the installed versions and need to compile these on my > own.) > > I was testing the example pyqt application 'tabdialog.py' given in > PyQt area. Package creation runs fine but the executable generated > doesn't do anything and silently comes out. (The original tabdialog.py > works just fine.) > > I have narrowed it down to loading of PyQt modules. Even a simple > hello-world.py comes out silently if I put the 'from PyQt import > QtCore' in it. I am copying below the verbose output. > > The test.py is: > from PyQt import QtCore > print "Hello World" > > The test.spec file is: > # -*- mode: python -*- > a = Analysis([os.path.join(HOMEPATH,'support/_mountzlib.py'), > os.path.join(HOMEPATH,'support/useUnicode.py'), '../test.py'], > pathex=['/home.local/sushant.saurav/igc-test/newCompile/ > pyinstaller-1.4']) > pyz = PYZ(a.pure) > exe = EXE(pyz, > a.scripts + [('v','','OPTION')], > exclude_binaries=1, > name=os.path.join('build/pyi.linux2/test', 'test'), > debug=True, > strip=False, > upx=True, > console=1 ) > coll = COLLECT( exe, > a.binaries, > a.zipfiles, > a.datas, > strip=False, > upx=True, > name=os.path.join('dist', 'test')) > > > And the log generated is: > > sushant@clust6] pyinstaller-1.4 $ ./test/dist/test/test > thisfile is ./test/dist/test/test > _MEIPASS2 (workpath) is NULL > homepath is ./test/dist/test/ > Extracting binaries > Executing self as child with ./test/dist/test/:/home.local/sushant/igc- > test/newCompile/Tri/ThirdParty-3.0/linux-x86-x64/bin/Python-2.6.1/lib:/ > home.local/sushant/igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86- > x64/bin/VTK/bin:/home.local/sushant/igc-test/newCompile/Tri/ > ThirdParty-3.0/linux-x86-x64/bin/VTK/lib/vtk-5.4::/home.local/sushant/ > igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86-x64/bin/OpenFOAM/ > OpenFOAM-1.5/lib/linux64GccDPOpt/openmpi-1.2.6:/home.local/ > sushant.saurav/igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86-x64/ > bin/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linux64GccDPOpt/lib:/ > home.local/sushant/igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86- > x64/bin/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib64:/ > home.local/sushant/igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86- > x64/bin/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/lib:/home/ > sushant/OpenFOAM/sushant-1.5/lib/linux64GccDPOpt:/home.local/sushant/ > igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86-x64/bin/OpenFOAM/ > OpenFOAM-1.5/lib/linux64GccDPOpt > thisfile is ./test/dist/test/test > _MEIPASS2 (workpath) is ./test/dist/test/ > homepath is ./test/dist/test/ > Already have a workpath - running! > ./test/dist/test/libpython2.6.so.1.0 > Manipulating evironment > PYTHONPATH=./test/dist/test > v > # installing zipimport hook > import zipimport # builtin > # installed zipimport hook > import encodings # directory /home.local/sushant/igc-test/newCompile/ > Tri/ThirdParty-3.0/linux-x86-x64/bin/Python-2.6.1/lib/python2.6/ > encodings > # /home.local/sushant/igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86- > x64/bin/Python-2.6.1/lib/python2.6/encodings/__init__.pyc matches / > home.local/sushant/igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86- > x64/bin/Python-2.6.1/lib/python2.6/encodings/__init__.py > import encodings # precompiled from /home.local/sushant/igc-test/ > newCompile/Tri/ThirdParty-3.0/linux-x86-x64/bin/Python-2.6.1/lib/ > python2.6/encodings/__init__.pyc > # /home.local/sushant/igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86- > x64/bin/Python-2.6.1/lib/python2.6/codecs.pyc matches /home.local/ > sushant/igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86-x64/bin/ > Python-2.6.1/lib/python2.6/codecs.py > import codecs # precompiled from /home.local/sushant/igc-test/ > newCompile/Tri/ThirdParty-3.0/linux-x86-x64/bin/Python-2.6.1/lib/ > python2.6/codecs.pyc > import _codecs # builtin > # /home.local/sushant/igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86- > x64/bin/Python-2.6.1/lib/python2.6/encodings/aliases.pyc matches / > home.local/sushant/igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86- > x64/bin/Python-2.6.1/lib/python2.6/encodings/aliases.py > import encodings.aliases # precompiled from /home.local/sushant/igc- > test/newCompile/Tri/ThirdParty-3.0/linux-x86-x64/bin/Python-2.6.1/lib/ > python2.6/encodings/aliases.pyc > # /home.local/sushant/igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86- > x64/bin/Python-2.6.1/lib/python2.6/encodings/utf_8.pyc matches / > home.local/sushant/igc-test/newCompile/Tri/ThirdParty-3.0/linux-x86- > x64/bin/Python-2.6.1/lib/python2.6/encodings/utf_8.py > import encodings.utf_8 # precompiled from /home.local/sushant/igc-test/ > newCompile/Tri/ThirdParty-3.0/linux-x86-x64/bin/Python-2.6.1/lib/ > python2.6/encodings/utf_8.pyc > importing modules from CArchive > import marshal # builtin > extracted iu > import imp # builtin > import posix # builtin > extracted struct > dlopen("./test/dist/test/_struct.so", 2); > import _struct # dynamically loaded from ./test/dist/test/_struct.so > extracted archive > Installing import hooks > outPYZ1.pyz > Running scripts > dlopen("./test/dist/test/zlib.so", 2); > import zlib # dynamically loaded from ./test/dist/test/zlib.so > import errno # builtin > dlopen("./test/dist/test/PyQt4.QtCore.so", 2); > dlopen("./test/dist/test/sip.so", 2); > import sip # dynamically loaded from ./test/dist/test/sip.so > import PyQt4.QtCore # dynamically loaded from ./test/dist/test/ > PyQt4.QtCore.so > Back to parent... > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
