[PyQt] pyqtdeploy : can't import pyd

Phil Thompson phil at riverbankcomputing.com
Tue Feb 10 09:42:31 GMT 2015


On 10/02/2015 9:30 am, MOHAMED BLACK wrote:
> hi
> i still have more *.pyd that can't import
> pyodbc from https://code.google.com/p/pyodbc/
> i build it from source and it's always working 
> py2exe,cx_freeze,pyinstaller
> but with pyqtdeploy when import the app exit with no messages "no 
> stdout"
> 
> so all the *.pyd 's i know doesn't work with
> pyqtdeploy(Cython,pywin32,pyodbc)
> FYI : i do copy them to the *.exe directory cause if not a message is 
> raise
> about missing *.pyd
> 
> so what is the right way to import *.pyd files? with static python+qt 
> in
> pyqtdeploy
> 
> thanks in advance :)
> 
> win xp sp3
> vs 2010 sp1
> python 3.4.2
> qt 5.4
> latest Cython,pywin32,pyodbc
> latest snapshot pyqt5,sip,pyqtdeploy

A statically compiled Python cannot import .pyd files. The Python 
interpreter has to be built as a DLL. This was the reason for adding the 
"Use standard Python shared library" options on the "Standard Library" 
tab.

Phil


More information about the PyQt mailing list