[PyQt] Fwd: VendorId issue

Vicent Mas uvemas at gmail.com
Tue Jan 11 19:30:06 GMT 2011


Hi,

Thanks for your reply.
I've found the module causing problems. It is the tables module from
the PyTables package. What I've done is to write a very simple python
script, launcher_script.py, which imports QtGui and tables modules.
They both live under the site-packages directory. Then I've created an
executable from this script using the MingW capable version of sib.py.
As you can see in the attached output.txt, sib can deal properly with
PyQt4 but not with the tables module. Importing the tables module from
a python console works fine so it seems that the problem is in the sib
program but I don't know how to fix it. I've attached the script used
for this test, the MingW capable sib.py I use for generating the
executable and the output produced for the executable script created
with sib.py. The executable has been created with:

$ python sib.py -M -c -v -u ./launcher_script.py

and the output with

$ launcher_script.exe -w -v

Could you provide some more help for solving this problem, please?

Thanks in advance.

Vicent

PS: Ulli, sorry for my previous sending as a personal mail.

2011/1/11 Ulrich Berning <ulrich.berning at denviso.de>:
> Try to build it as a console application (-c) with support for the verbose
> flag (-v). Then start it with -vv and look at the output. This may identify
> the problems.
>
> Ulli
>
> -----Ursprüngliche Nachricht-----
> Von: pyqt-bounces at riverbankcomputing.com
> [mailto:pyqt-bounces at riverbankcomputing.com] Im Auftrag von Vicent Mas
> Gesendet: Montag, 10. Januar 2011 18:03
> An: pyqt at riverbankcomputing.com
> Betreff: [PyQt] VendorId issue
>
> Hi,
>
> I'm trying to make an executable for the launcher script of my pyqt
> application. I'm using the mingw version of sib.py (from the VendorId
> package) but I've found some problems when importing modules that I
> don't know how to fix. This used to work fine in the past, when my
> application only supported python 2.5 and PyQt 4.6 (IIRC). Now I've
> moved to python 2.6 and pyqt 4.8.2 and the executable built via sib.py
> is unable to import my application modules (although they are
> installed in the standard c:/python26/lib/site-packages directory and
> I can import them with no problems from a python console). I've just
> realized that the VendorID package is rather old so maybe it doesn't
> support python2.6 and/or current versions of PyQt. Could someone tell
> me if I'm right?
>
> Thanks in advance,
>
> Vicent
>
> --
> Share what you know, learn what you don't.
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>

-- 
Share what you know, learn what you don't.
-------------- next part --------------
C:\Documents and Settings\vmas\Mis documentos\vitables_tip\mswindows>launcher_script.exe -w -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# C:\Python26\Lib\site.pyc matches C:\Python26\Lib\site.py
import site # precompiled from C:\Python26\Lib\site.pyc
# C:\Python26\Lib\os.pyc matches C:\Python26\Lib\os.py
import os # precompiled from C:\Python26\Lib\os.pyc
import errno # builtin
import nt # builtin
# C:\Python26\Lib\ntpath.pyc matches C:\Python26\Lib\ntpath.py
import ntpath # precompiled from C:\Python26\Lib\ntpath.pyc
# C:\Python26\Lib\stat.pyc matches C:\Python26\Lib\stat.py
import stat # precompiled from C:\Python26\Lib\stat.pyc
# C:\Python26\Lib\genericpath.pyc matches C:\Python26\Lib\genericpath.py
import genericpath # precompiled from C:\Python26\Lib\genericpath.pyc
# C:\Python26\Lib\warnings.pyc matches C:\Python26\Lib\warnings.py
import warnings # precompiled from C:\Python26\Lib\warnings.pyc
# C:\Python26\Lib\linecache.pyc matches C:\Python26\Lib\linecache.py
import linecache # precompiled from C:\Python26\Lib\linecache.pyc
# C:\Python26\Lib\types.pyc matches C:\Python26\Lib\types.py
import types # precompiled from C:\Python26\Lib\types.pyc
# C:\Python26\Lib\UserDict.pyc matches C:\Python26\Lib\UserDict.py
import UserDict # precompiled from C:\Python26\Lib\UserDict.pyc
# C:\Python26\Lib\_abcoll.pyc matches C:\Python26\Lib\_abcoll.py
import _abcoll # precompiled from C:\Python26\Lib\_abcoll.pyc
# C:\Python26\Lib\abc.pyc matches C:\Python26\Lib\abc.py
import abc # precompiled from C:\Python26\Lib\abc.pyc
# C:\Python26\Lib\copy_reg.pyc matches C:\Python26\Lib\copy_reg.py
import copy_reg # precompiled from C:\Python26\Lib\copy_reg.pyc
# C:\Python26\Lib\new.pyc matches C:\Python26\Lib\new.py
import new # precompiled from C:\Python26\Lib\new.pyc
# C:\Python26\Lib\locale.pyc matches C:\Python26\Lib\locale.py
import locale # precompiled from C:\Python26\Lib\locale.pyc
import encodings # directory C:\Python26\Lib\encodings
# C:\Python26\Lib\encodings\__init__.pyc matches C:\Python26\Lib\encodings\__init__.py
import encodings # precompiled from C:\Python26\Lib\encodings\__init__.pyc
# C:\Python26\Lib\codecs.pyc matches C:\Python26\Lib\codecs.py
import codecs # precompiled from C:\Python26\Lib\codecs.pyc
import _codecs # builtin
# C:\Python26\Lib\encodings\aliases.pyc matches C:\Python26\Lib\encodings\aliases.py
import encodings.aliases # precompiled from C:\Python26\Lib\encodings\aliases.pyc
# C:\Python26\Lib\functools.pyc matches C:\Python26\Lib\functools.py
import functools # precompiled from C:\Python26\Lib\functools.pyc
import _functools # builtin
import _locale # builtin
# C:\Python26\Lib\re.pyc matches C:\Python26\Lib\re.py
import re # precompiled from C:\Python26\Lib\re.pyc
# C:\Python26\Lib\sre_compile.pyc matches C:\Python26\Lib\sre_compile.py
import sre_compile # precompiled from C:\Python26\Lib\sre_compile.pyc
import _sre # builtin
# C:\Python26\Lib\sre_parse.pyc matches C:\Python26\Lib\sre_parse.py
import sre_parse # precompiled from C:\Python26\Lib\sre_parse.pyc
# C:\Python26\Lib\sre_constants.pyc matches C:\Python26\Lib\sre_constants.py
import sre_constants # precompiled from C:\Python26\Lib\sre_constants.pyc
import operator # builtin
# C:\Python26\Lib\encodings\cp1252.pyc matches C:\Python26\Lib\encodings\cp1252.py
import encodings.cp1252 # precompiled from C:\Python26\Lib\encodings\cp1252.pyc
import PyQt4 # directory C:\Python26\lib\site-packages\PyQt4
# C:\Python26\lib\site-packages\PyQt4\__init__.pyc matches C:\Python26\lib\site-packages\PyQt4\__init__.py
import PyQt4 # precompiled from C:\Python26\lib\site-packages\PyQt4\__init__.pyc
import sip # dynamically loaded from C:\Python26\lib\site-packages\sip.pyd
import PyQt4.QtCore # dynamically loaded from C:\Python26\lib\site-packages\PyQt4\QtCore.pyd
import PyQt4.QtGui # dynamically loaded from C:\Python26\lib\site-packages\PyQt4\QtGui.pyd
Importing module: tables
import tables # directory C:\Python26\lib\site-packages\tables
# C:\Python26\lib\site-packages\tables\__init__.pyc matches C:\Python26\lib\site-packages\tables\__init__.py
import tables # precompiled from C:\Python26\lib\site-packages\tables\__init__.pyc
Traceback (most recent call last):
  File "C:\Documents and Settings\vmas\Mis documentos\vitables_tip\mswindows\launcher_script.py", line 3, in <module>
    import tables
  File "C:\Python26\lib\site-packages\tables\__init__.py", line 63, in <module>
    from tables.utilsExtension import getPyTablesVersion, getHDF5Version
ImportError: DLL load failed: Cannot find the specified module.

C:\Documents and Settings\vmas\Mis documentos\vitables_tip\mswindows>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: launcher_script.py
Type: application/octet-stream
Size: 119 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110111/bffb8a02/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sib.py
Type: application/octet-stream
Size: 44900 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110111/bffb8a02/attachment-0003.obj>


More information about the PyQt mailing list